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 "Supun Kamburugamuva (JIRA)" <ji...@apache.org> on 2008/09/18 07:59:44 UTC

[jira] Created: (AXIS2C-1266) axis2_msg_recv_make_new_svc_obj can lead to a seg fault in a threaded situation

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


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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1266) axis2_msg_recv_make_new_svc_obj can lead to a seg fault in a threaded situation

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
     [ 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-1266) axis2_msg_recv_make_new_svc_obj can lead to a seg fault in a threaded situation

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

Supun Kamburugamuva resolved AXIS2C-1266.
-----------------------------------------

    Resolution: Fixed
      Assignee: Supun Kamburugamuva

Fixed in the svn head.

> 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
>            Assignee: 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org