You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Ivan Pechorin (JIRA)" <ji...@apache.org> on 2012/06/05 13:35:22 UTC
[jira] [Created] (AXIS2C-1595) Memory leak in
src/core/transport/http/common/http_worker.c: array_list allocated by
axutil_tokenize()
Ivan Pechorin created AXIS2C-1595:
-------------------------------------
Summary: Memory leak in src/core/transport/http/common/http_worker.c: array_list allocated by axutil_tokenize()
Key: AXIS2C-1595
URL: https://issues.apache.org/jira/browse/AXIS2C-1595
Project: Axis2-C
Issue Type: Bug
Components: util
Affects Versions: Current (Nightly)
Reporter: Ivan Pechorin
Attachments: axis2-c-http_worker-arraylist-leak.diff
There are 3 places in src/core/transport/http/common/http_worker.c where axutil_tokenize() is called, but the axutil_array_list_t allocated inside it is not freed.
HP aC++ on HP-UX reports these leaks with the same call stacks:
These range in size from 80 to 80 bytes and are allocated
#0 axutil_allocator_malloc_impl() at allocator.c:99
#1 axutil_array_list_create() at array_list.c:57
#2 axutil_tokenize() at string_util.c:40
#3 axis2_http_worker_process_request() at http_worker.c:312
80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
#0 axutil_allocator_malloc_impl() at allocator.c:99
#1 axutil_array_list_create() at array_list.c:57
#2 axutil_tokenize() at string_util.c:40
#3 axis2_http_worker_process_request() at http_worker.c:350
80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
#0 axutil_allocator_malloc_impl() at allocator.c:99
#1 axutil_array_list_create() at array_list.c:57
#2 axutil_tokenize() at string_util.c:40
#3 axis2_http_worker_process_request() at http_worker.c:395
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] [Commented] (AXIS2C-1595) Memory leak in
src/core/transport/http/common/http_worker.c: array_list allocated by
axutil_tokenize()
Posted by "Alex Mantaut (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497079#comment-13497079 ]
Alex Mantaut commented on AXIS2C-1595:
--------------------------------------
Ivan, Can you attach a test case for this leaks?
> Memory leak in src/core/transport/http/common/http_worker.c: array_list allocated by axutil_tokenize()
> ------------------------------------------------------------------------------------------------------
>
> Key: AXIS2C-1595
> URL: https://issues.apache.org/jira/browse/AXIS2C-1595
> Project: Axis2-C
> Issue Type: Bug
> Components: transport/http
> Affects Versions: Current (Nightly)
> Reporter: Ivan Pechorin
> Attachments: axis2-c-http_worker-arraylist-leak.diff, axis2-c-http_worker-request_params.diff
>
>
> There are 3 places in src/core/transport/http/common/http_worker.c where axutil_tokenize() is called, but the axutil_array_list_t allocated inside it is not freed.
> HP aC++ on HP-UX reports these leaks with the same call stacks:
> These range in size from 80 to 80 bytes and are allocated
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:312
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:350
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:395
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] [Commented] (AXIS2C-1595) Memory leak in
src/core/transport/http/common/http_worker.c: array_list allocated by
axutil_tokenize()
Posted by "Ivan Pechorin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289406#comment-13289406 ]
Ivan Pechorin commented on AXIS2C-1595:
---------------------------------------
There's one more leak in http_worker.c:
axis2_http_transport_utils_get_request_params() allocates its return value (hash) via axutil_hash_make(),
but when it is called at http_worker.c:477, it is never freed. It should be freed with axutil_hash_free()
> Memory leak in src/core/transport/http/common/http_worker.c: array_list allocated by axutil_tokenize()
> ------------------------------------------------------------------------------------------------------
>
> Key: AXIS2C-1595
> URL: https://issues.apache.org/jira/browse/AXIS2C-1595
> Project: Axis2-C
> Issue Type: Bug
> Components: util
> Affects Versions: Current (Nightly)
> Reporter: Ivan Pechorin
> Attachments: axis2-c-http_worker-arraylist-leak.diff
>
>
> There are 3 places in src/core/transport/http/common/http_worker.c where axutil_tokenize() is called, but the axutil_array_list_t allocated inside it is not freed.
> HP aC++ on HP-UX reports these leaks with the same call stacks:
> These range in size from 80 to 80 bytes and are allocated
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:312
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:350
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:395
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] [Updated] (AXIS2C-1595) Memory leak in
src/core/transport/http/common/http_worker.c: array_list allocated by
axutil_tokenize()
Posted by "Ivan Pechorin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Pechorin updated AXIS2C-1595:
----------------------------------
Attachment: axis2-c-http_worker-arraylist-leak.diff
Patch is attached.
> Memory leak in src/core/transport/http/common/http_worker.c: array_list allocated by axutil_tokenize()
> ------------------------------------------------------------------------------------------------------
>
> Key: AXIS2C-1595
> URL: https://issues.apache.org/jira/browse/AXIS2C-1595
> Project: Axis2-C
> Issue Type: Bug
> Components: util
> Affects Versions: Current (Nightly)
> Reporter: Ivan Pechorin
> Attachments: axis2-c-http_worker-arraylist-leak.diff
>
>
> There are 3 places in src/core/transport/http/common/http_worker.c where axutil_tokenize() is called, but the axutil_array_list_t allocated inside it is not freed.
> HP aC++ on HP-UX reports these leaks with the same call stacks:
> These range in size from 80 to 80 bytes and are allocated
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:312
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:350
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:395
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] [Commented] (AXIS2C-1595) Memory leak in
src/core/transport/http/common/http_worker.c: array_list allocated by
axutil_tokenize()
Posted by "Ivan Pechorin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496870#comment-13496870 ]
Ivan Pechorin commented on AXIS2C-1595:
---------------------------------------
Is there any maintainer who can review and commit this patch? Or the project is already dead?
> Memory leak in src/core/transport/http/common/http_worker.c: array_list allocated by axutil_tokenize()
> ------------------------------------------------------------------------------------------------------
>
> Key: AXIS2C-1595
> URL: https://issues.apache.org/jira/browse/AXIS2C-1595
> Project: Axis2-C
> Issue Type: Bug
> Components: transport/http
> Affects Versions: Current (Nightly)
> Reporter: Ivan Pechorin
> Attachments: axis2-c-http_worker-arraylist-leak.diff, axis2-c-http_worker-request_params.diff
>
>
> There are 3 places in src/core/transport/http/common/http_worker.c where axutil_tokenize() is called, but the axutil_array_list_t allocated inside it is not freed.
> HP aC++ on HP-UX reports these leaks with the same call stacks:
> These range in size from 80 to 80 bytes and are allocated
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:312
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:350
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:395
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] [Updated] (AXIS2C-1595) Memory leak in
src/core/transport/http/common/http_worker.c: array_list allocated by
axutil_tokenize()
Posted by "Ivan Pechorin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Pechorin updated AXIS2C-1595:
----------------------------------
Component/s: (was: util)
transport/http
> Memory leak in src/core/transport/http/common/http_worker.c: array_list allocated by axutil_tokenize()
> ------------------------------------------------------------------------------------------------------
>
> Key: AXIS2C-1595
> URL: https://issues.apache.org/jira/browse/AXIS2C-1595
> Project: Axis2-C
> Issue Type: Bug
> Components: transport/http
> Affects Versions: Current (Nightly)
> Reporter: Ivan Pechorin
> Attachments: axis2-c-http_worker-arraylist-leak.diff, axis2-c-http_worker-request_params.diff
>
>
> There are 3 places in src/core/transport/http/common/http_worker.c where axutil_tokenize() is called, but the axutil_array_list_t allocated inside it is not freed.
> HP aC++ on HP-UX reports these leaks with the same call stacks:
> These range in size from 80 to 80 bytes and are allocated
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:312
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:350
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:395
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] [Updated] (AXIS2C-1595) Memory leak in
src/core/transport/http/common/http_worker.c: array_list allocated by
axutil_tokenize()
Posted by "Ivan Pechorin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Pechorin updated AXIS2C-1595:
----------------------------------
Attachment: axis2-c-http_worker-request_params.diff
Patch is attached.
> Memory leak in src/core/transport/http/common/http_worker.c: array_list allocated by axutil_tokenize()
> ------------------------------------------------------------------------------------------------------
>
> Key: AXIS2C-1595
> URL: https://issues.apache.org/jira/browse/AXIS2C-1595
> Project: Axis2-C
> Issue Type: Bug
> Components: util
> Affects Versions: Current (Nightly)
> Reporter: Ivan Pechorin
> Attachments: axis2-c-http_worker-arraylist-leak.diff, axis2-c-http_worker-request_params.diff
>
>
> There are 3 places in src/core/transport/http/common/http_worker.c where axutil_tokenize() is called, but the axutil_array_list_t allocated inside it is not freed.
> HP aC++ on HP-UX reports these leaks with the same call stacks:
> These range in size from 80 to 80 bytes and are allocated
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:312
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:350
> 80 bytes leaked at 0x60000000013b3f10 (0.18% of all bytes leaked)
> #0 axutil_allocator_malloc_impl() at allocator.c:99
> #1 axutil_array_list_create() at array_list.c:57
> #2 axutil_tokenize() at string_util.c:40
> #3 axis2_http_worker_process_request() at http_worker.c:395
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org