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 "Frederic Heem (JIRA)" <ji...@apache.org> on 2008/07/02 19:03:45 UTC

[jira] Created: (AXIS2C-1226) memory leak in http_tranport_utils.c

memory leak in http_tranport_utils.c
------------------------------------

                 Key: AXIS2C-1226
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1226
             Project: Axis2-C
          Issue Type: Bug
          Components: transport/http
    Affects Versions: Current (Nightly)
         Environment: linux fc6
            Reporter: Frederic Heem


Here is the valgrind output that shows the memory leaks:

==17334== 176 (32 direct, 144 indirect) bytes in 2 blocks are definitely lost in loss record 83 of 123
==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
==17334==    by 0x40129DF: axis2_http_status_line_create (http_status_line.c:46)
==17334==    by 0x40176AC: axis2_http_worker_process_request (http_worker.c:1244)
==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)
==17334==
==17334==
==17334== 384 bytes in 10 blocks are definitely lost in loss record 94 of 123
==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
==17334==    by 0x4051258: axutil_strdup (string.c:282)
==17334==    by 0x4017D96: axis2_http_transport_utils_get_value_from_content_type (http_transport_utils.c:2197)
==17334==    by 0x40199F0: axis2_http_transport_utils_process_http_post_request (http_transport_utils.c:319)
==17334==    by 0x4016B03: axis2_http_worker_process_request (http_worker.c:908)
==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-1226) memory leak in http_tranport_utils.c

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Supun Kamburugamuva resolved AXIS2C-1226.
-----------------------------------------

    Resolution: Fixed
      Assignee: Supun Kamburugamuva

Patch applied. Thanks Rajika for the patch and Frederic for testing.

> memory leak in http_tranport_utils.c
> ------------------------------------
>
>                 Key: AXIS2C-1226
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1226
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>            Assignee: Supun Kamburugamuva
>         Attachments: http_transport_utils.patch
>
>
> Here is the valgrind output that shows the memory leaks:
> ==17334== 176 (32 direct, 144 indirect) bytes in 2 blocks are definitely lost in loss record 83 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x40129DF: axis2_http_status_line_create (http_status_line.c:46)
> ==17334==    by 0x40176AC: axis2_http_worker_process_request (http_worker.c:1244)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)
> ==17334==
> ==17334==
> ==17334== 384 bytes in 10 blocks are definitely lost in loss record 94 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x4051258: axutil_strdup (string.c:282)
> ==17334==    by 0x4017D96: axis2_http_transport_utils_get_value_from_content_type (http_transport_utils.c:2197)
> ==17334==    by 0x40199F0: axis2_http_transport_utils_process_http_post_request (http_transport_utils.c:319)
> ==17334==    by 0x4016B03: axis2_http_worker_process_request (http_worker.c:908)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-1226) memory leak in http_tranport_utils.c

Posted by "Frederic Heem (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610189#action_12610189 ] 

Frederic Heem commented on AXIS2C-1226:
---------------------------------------

Great, these leaks has gone, please commit if you can.
Regards,
 

> memory leak in http_tranport_utils.c
> ------------------------------------
>
>                 Key: AXIS2C-1226
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1226
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>         Attachments: http_transport_utils.patch
>
>
> Here is the valgrind output that shows the memory leaks:
> ==17334== 176 (32 direct, 144 indirect) bytes in 2 blocks are definitely lost in loss record 83 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x40129DF: axis2_http_status_line_create (http_status_line.c:46)
> ==17334==    by 0x40176AC: axis2_http_worker_process_request (http_worker.c:1244)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)
> ==17334==
> ==17334==
> ==17334== 384 bytes in 10 blocks are definitely lost in loss record 94 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x4051258: axutil_strdup (string.c:282)
> ==17334==    by 0x4017D96: axis2_http_transport_utils_get_value_from_content_type (http_transport_utils.c:2197)
> ==17334==    by 0x40199F0: axis2_http_transport_utils_process_http_post_request (http_transport_utils.c:319)
> ==17334==    by 0x4016B03: axis2_http_worker_process_request (http_worker.c:908)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1226) memory leak in http_tranport_utils.c

Posted by "Rajika Kumarasiri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajika Kumarasiri updated AXIS2C-1226:
--------------------------------------

    Attachment: http_transport_utils.patch

This patch contains a fix to the problem. Can you apply and see weather it fix the problem in your scenario ? 

> memory leak in http_tranport_utils.c
> ------------------------------------
>
>                 Key: AXIS2C-1226
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1226
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>         Attachments: http_transport_utils.patch
>
>
> Here is the valgrind output that shows the memory leaks:
> ==17334== 176 (32 direct, 144 indirect) bytes in 2 blocks are definitely lost in loss record 83 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x40129DF: axis2_http_status_line_create (http_status_line.c:46)
> ==17334==    by 0x40176AC: axis2_http_worker_process_request (http_worker.c:1244)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)
> ==17334==
> ==17334==
> ==17334== 384 bytes in 10 blocks are definitely lost in loss record 94 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x4051258: axutil_strdup (string.c:282)
> ==17334==    by 0x4017D96: axis2_http_transport_utils_get_value_from_content_type (http_transport_utils.c:2197)
> ==17334==    by 0x40199F0: axis2_http_transport_utils_process_http_post_request (http_transport_utils.c:319)
> ==17334==    by 0x4016B03: axis2_http_worker_process_request (http_worker.c:908)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-1226) memory leak in http_tranport_utils.c

Posted by "Rajika Kumarasiri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609976#action_12609976 ] 

Rajika Kumarasiri commented on AXIS2C-1226:
-------------------------------------------

Are you running simple_axis2_server with a given sample ? What are your valgrind command line options used ?


> memory leak in http_tranport_utils.c
> ------------------------------------
>
>                 Key: AXIS2C-1226
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1226
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>
> Here is the valgrind output that shows the memory leaks:
> ==17334== 176 (32 direct, 144 indirect) bytes in 2 blocks are definitely lost in loss record 83 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x40129DF: axis2_http_status_line_create (http_status_line.c:46)
> ==17334==    by 0x40176AC: axis2_http_worker_process_request (http_worker.c:1244)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)
> ==17334==
> ==17334==
> ==17334== 384 bytes in 10 blocks are definitely lost in loss record 94 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x4051258: axutil_strdup (string.c:282)
> ==17334==    by 0x4017D96: axis2_http_transport_utils_get_value_from_content_type (http_transport_utils.c:2197)
> ==17334==    by 0x40199F0: axis2_http_transport_utils_process_http_post_request (http_transport_utils.c:319)
> ==17334==    by 0x4016B03: axis2_http_worker_process_request (http_worker.c:908)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-1226) memory leak in http_tranport_utils.c

Posted by "Frederic Heem (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609979#action_12609979 ] 

Frederic Heem commented on AXIS2C-1226:
---------------------------------------

Here is the valgrind command line:
valgrind --leak-check=full ./axis2_http_server -f /dev/stderr 
Let me know if you need more information.
Regards,

> memory leak in http_tranport_utils.c
> ------------------------------------
>
>                 Key: AXIS2C-1226
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1226
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>
> Here is the valgrind output that shows the memory leaks:
> ==17334== 176 (32 direct, 144 indirect) bytes in 2 blocks are definitely lost in loss record 83 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x40129DF: axis2_http_status_line_create (http_status_line.c:46)
> ==17334==    by 0x40176AC: axis2_http_worker_process_request (http_worker.c:1244)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)
> ==17334==
> ==17334==
> ==17334== 384 bytes in 10 blocks are definitely lost in loss record 94 of 123
> ==17334==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17334==    by 0x4051258: axutil_strdup (string.c:282)
> ==17334==    by 0x4017D96: axis2_http_transport_utils_get_value_from_content_type (http_transport_utils.c:2197)
> ==17334==    by 0x40199F0: axis2_http_transport_utils_process_http_post_request (http_transport_utils.c:319)
> ==17334==    by 0x4016B03: axis2_http_worker_process_request (http_worker.c:908)
> ==17334==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17334==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17334==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17334==    by 0x71323D: clone (in /lib/libc-2.5.so)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org