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:29:45 UTC

[jira] Created: (AXIS2C-1227) engine not freed when server return an error

engine not freed when server return an error
--------------------------------------------

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


In http_worker.c at line 1181, the engine is created but not destroyed, this happens when the server returns a fault.

==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
==17539==    by 0x4016B40: axis2_http_worker_process_request (http_worker.c:1181)
==17539==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
==17539==    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-1227) engine not freed when server return an error

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

Frederic Heem commented on AXIS2C-1227:
---------------------------------------

By the way, there is another leak on the same scenario, msg_ctx is not being freed. 
==19049== 31,978 (528 direct, 31,450 indirect) bytes in 2 blocks are definitely lost in loss record 84 of 91
==19049==    at 0x4005858: malloc (vg_replace_malloc.c:207)
==19049==    by 0x8074862: axis2_msg_ctx_create (msg_ctx.c:230)
==19049==    by 0x4014823: axis2_http_worker_process_request (http_worker.c:279)
==19049==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
==19049==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
==19049==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
==19049==    by 0x71323D: clone (in /lib/libc-2.5.so)



> engine not freed when server return an error
> --------------------------------------------
>
>                 Key: AXIS2C-1227
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1227
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>         Attachments: http_worker.patch
>
>
> In http_worker.c at line 1181, the engine is created but not destroyed, this happens when the server returns a fault.
> ==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
> ==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
> ==17539==    by 0x4016B40: axis2_http_worker_process_request (http_worker.c:1181)
> ==17539==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17539==    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-1227) engine not freed when server return an error

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

Frederic Heem commented on AXIS2C-1227:
---------------------------------------

The patch has been applied and resolves the problem. Please commit and close the issue.
Many thanks.

> engine not freed when server return an error
> --------------------------------------------
>
>                 Key: AXIS2C-1227
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1227
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>         Attachments: http_worker.patch
>
>
> In http_worker.c at line 1181, the engine is created but not destroyed, this happens when the server returns a fault.
> ==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
> ==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
> ==17539==    by 0x4016B40: axis2_http_worker_process_request (http_worker.c:1181)
> ==17539==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17539==    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-1227) engine not freed when server return an error

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

Frederic Heem commented on AXIS2C-1227:
---------------------------------------

Actually, one thing to note is the axis2_http_server output, it's saying the an error occured in writing the response but it is correctly send on the wire:
[Thu Jul  3 14:25:03 2008] [error] rampart_engine.c(364) [rampart][rampart_engine] Cannot find policy. Operation is NULL.
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node Body for Subcode
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node Fault for Subcode
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node Code for Subcode
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node Value for Subcode
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node Subcode for Subcode
[Thu Jul  3 14:25:03 2008] [error] rampart_engine.c(99) [rampart][rampart_engine] Policy creation failed.
[Thu Jul  3 14:25:03 2008] [error] rampart_in_handler.c(114) [rampart][rampart_in_handler] rampart_context creation failed.
[Thu Jul  3 14:25:03 2008] [error] phase.c(216) Handler RampartInHandler invoke failed within phase PreDispatch
[Thu Jul  3 14:25:03 2008] [error] engine.c(693) Invoking phase PreDispatch failed
[Thu Jul  3 14:25:03 2008] [error] engine.c(255) Invoking pre-calculated phases failed
[Thu Jul  3 14:25:03 2008] [error] http_response_writer.c(156) failed to write to streamstring
 of length 2
[Thu Jul  3 14:25:03 2008] [error] simple_http_svr_conn.c(402) Error in writing the response in response writer
[Thu Jul  3 14:25:03 2008] [warning] http_svr_thread.c(288) Error occured in processing request (0.728 seconds)


The response capture by wireshark is:
HTTP/1.1 500 Internal Server Error
Date: Thu Jul  3 14:25:03 2008 GMT
Server: Axis2C/1.4.0 (Simple Axis2 HTTP Server)
Content-Type: application/soap+xml;charset=UTF-8
Content-Length: 795

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header></soapenv:Header><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Sender</soapenv:Value><soapenv:Subcode xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><soapenv:Value>wsse:FailedCheck</soapenv:Value></soapenv:Subcode></soapenv:Code><soapenv:Reason><soapenv:Text xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en">Error in the Internal configuration.</soapenv:Text></soapenv:Reason><soapenv:Detail><wsse:ProblemSecurityHeader xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">rampc:Policy</wsse:ProblemSecurityHeader></soapenv:Detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

> engine not freed when server return an error
> --------------------------------------------
>
>                 Key: AXIS2C-1227
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1227
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>         Attachments: http_worker.patch
>
>
> In http_worker.c at line 1181, the engine is created but not destroyed, this happens when the server returns a fault.
> ==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
> ==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
> ==17539==    by 0x4016B40: axis2_http_worker_process_request (http_worker.c:1181)
> ==17539==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17539==    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-1227) engine not freed when server return an error

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

S.Uthaiyashankar updated AXIS2C-1227:
-------------------------------------

    Fix Version/s: 1.6.0

> engine not freed when server return an error
> --------------------------------------------
>
>                 Key: AXIS2C-1227
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1227
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>            Assignee: Damitha Kumarage
>             Fix For: 1.6.0
>
>         Attachments: http_worker.patch
>
>
> In http_worker.c at line 1181, the engine is created but not destroyed, this happens when the server returns a fault.
> ==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
> ==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
> ==17539==    by 0x4016B40: axis2_http_worker_process_request (http_worker.c:1181)
> ==17539==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17539==    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.


[jira] Assigned: (AXIS2C-1227) engine not freed when server return an error

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

Damitha Kumarage reassigned AXIS2C-1227:
----------------------------------------

    Assignee: Damitha Kumarage

> engine not freed when server return an error
> --------------------------------------------
>
>                 Key: AXIS2C-1227
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1227
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>            Assignee: Damitha Kumarage
>         Attachments: http_worker.patch
>
>
> In http_worker.c at line 1181, the engine is created but not destroyed, this happens when the server returns a fault.
> ==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
> ==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
> ==17539==    by 0x4016B40: axis2_http_worker_process_request (http_worker.c:1181)
> ==17539==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17539==    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-1227) engine not freed when server return an error

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

Rajika Kumarasiri commented on AXIS2C-1227:
-------------------------------------------

Federic,
Is this issue occurs after applying the suggested patch!

> engine not freed when server return an error
> --------------------------------------------
>
>                 Key: AXIS2C-1227
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1227
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>            Assignee: Damitha Kumarage
>         Attachments: http_worker.patch
>
>
> In http_worker.c at line 1181, the engine is created but not destroyed, this happens when the server returns a fault.
> ==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
> ==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
> ==17539==    by 0x4016B40: axis2_http_worker_process_request (http_worker.c:1181)
> ==17539==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17539==    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-1227) engine not freed when server return an error

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

Rajika Kumarasiri updated AXIS2C-1227:
--------------------------------------

    Attachment: http_worker.patch

In case of error the created engine instance should be freed. This patch contains a fix to the problem. Please apply it and see weather it fix your problem

> engine not freed when server return an error
> --------------------------------------------
>
>                 Key: AXIS2C-1227
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1227
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>         Attachments: http_worker.patch
>
>
> In http_worker.c at line 1181, the engine is created but not destroyed, this happens when the server returns a fault.
> ==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
> ==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
> ==17539==    by 0x4016B40: axis2_http_worker_process_request (http_worker.c:1181)
> ==17539==    by 0x4123ED0: axis2_svr_thread_worker_func (http_svr_thread.c:259)
> ==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17539==    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