[ 
https://issues.apache.org/jira/browse/AXIS2C-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Supun Kamburugamuva updated AXIS2C-1266:
----------------------------------------

    Attachment: jira-1266.patch

Here is a patch. Please test and verify.

> axis2_msg_recv_make_new_svc_obj can lead to a seg fault in a threaded 
> situation
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1266
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1266
>             Project: Axis2-C
>          Issue Type: Bug
>         Environment: WIndows
>            Reporter: Supun Kamburugamuva
>         Attachments: jira-1266.patch
>
>
> msg_recv.c function axis2_msg_recv_make_new_svc_obj.
> In this function we load the service dll if it is not loaded already. This 
> dll loading happens when the first request comes to the service. it is 
> possible to have two threads concurrently accessing this function for the 
> first time. i.e. Two requests to the same service at the same time. Then this 
> function leads to a seg fault. This is the situation.
> First thread executes to the line 161 then second thread runs.
> When second thread accesses line 143 the loaded dll is still not set to the 
> axis2_svc.
> So the second thread will also try to load the same dll and causes a seg 
> fault.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to