axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Supun Kamburugamuva" <>
Subject axis2_msg_recv_make_new_svc_obj function with two threads
Date Wed, 17 Sep 2008 11:01:24 GMT
Hi all,

I have a question about the 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. Is it 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. If it can it leads to a seg faults. This is the

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
So the second thread will also try to load the same dll and causes a seg

I have experience this situation. I wonder why this is not happening with
the normal HTTP transport.


Software Engineer, WSO2 Inc

View raw message