axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dumindu Pallewela (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2C-303) axis2_thread_mutex_destroy returns failure on destroying mutexes
Date Fri, 22 Sep 2006 17:57:23 GMT
    [ http://issues.apache.org/jira/browse/AXIS2C-303?page=comments#action_12436946 ] 
            
Dumindu Pallewela commented on AXIS2C-303:
------------------------------------------

The following gdb session implies that this failure occurs only for the conf_ctx_impl->mutex.
Other mutex's were destroyed correctly.
Here the failed mutex has the address 0x806b0c0.


Breakpoint 4, axis2_thread_mutex_create (allocator=0x804a008, flags=0) at thread_unix.c:219
warning: Source file is more recent than executable.
219         new_mutex->allocator = allocator;
(gdb) p new_mutex
$1 = (axis2_thread_mutex_t *) 0x804a060
(gdb) bt
#0  axis2_thread_mutex_create (allocator=0x804a008, flags=0) at thread_unix.c:219
#1  0xa7ee1830 in axis2_log_create (allocator=0x804a008, ops=0x0, stream_name=0x8048df4 "echo.log")
at log.c:94
#2  0xa7edf637 in axis2_env_create_all (log_file=0x8048df4 "echo.log", log_level=AXIS2_LOG_LEVEL_TRACE)
at env.c:38
#3  0x0804887b in main (argc=1, argv=0xafe0aa74) at echo.c:40
(gdb) c
Continuing.
Using endpoint : http://localhost:9090/axis2/services/echo

Breakpoint 4, axis2_thread_mutex_create (allocator=0x804a008, flags=0) at thread_unix.c:219
219         new_mutex->allocator = allocator;
(gdb) p new_mutex
$2 = (axis2_thread_mutex_t *) 0x806b0c0
(gdb) bt
#0  axis2_thread_mutex_create (allocator=0x804a008, flags=0) at thread_unix.c:219
#1  0xa7e75017 in axis2_conf_ctx_create (env=0x804a220, conf=0x804ada8) at conf_ctx.c:173
#2  0xa7e6fdb3 in build_client_conf_ctx (env=0x804a220, axis2_home=0xafe0bdf6 "/home/dummy/axis2/c/deploy")
at conf_init.c:110
#3  0xa7e80850 in axis2_svc_client_init_transports_from_conf_ctx (env=0x804a220, svc_client_impl=0x804a848,
conf_ctx=0x0, client_home=0xafe0bdf6 "/home/dummy/axis2/c/deploy")
    at svc_client.c:1125
#4  0xa7e7f2c1 in axis2_svc_client_create_with_conf_ctx_and_svc (env=0x804a220, client_home=0xafe0bdf6
"/home/dummy/axis2/c/deploy", conf_ctx=0x0, svc=0x0)
    at svc_client.c:401
#5  0xa7e7ebea in axis2_svc_client_create (env=0x804a220, client_home=0xafe0bdf6 "/home/dummy/axis2/c/deploy")
at svc_client.c:228
#6  0x08048983 in main (argc=1, argv=0xafe0aa74) at echo.c:75
(gdb) c
Continuing.

Sending OM : <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples"><text>echo5</text></ns1:echoString>

Breakpoint 4, axis2_thread_mutex_create (allocator=0x804a008, flags=0) at thread_unix.c:219
219         new_mutex->allocator = allocator;
(gdb) p new_mutex
$3 = (axis2_thread_mutex_t *) 0x8095970
(gdb) bt
#0  axis2_thread_mutex_create (allocator=0x804a008, flags=0) at thread_unix.c:219
#1  0xa7e73775 in axis2_op_ctx_create (env=0x804a220, op=0x807bbb8, svc_ctx=0x80988c0) at
op_ctx.c:156
#2  0xa7e7da2e in axis2_op_client_create (env=0x804a220, op=0x807bbb8, svc_ctx=0x80988c0,
options=0x804a5f8) at op_client.c:176
#3  0xa7e8061e in axis2_svc_client_create_op_client (svc_client=0x804a848, env=0x804a220,
op_qname=0x8085440) at svc_client.c:1003
#4  0xa7e801e9 in axis2_svc_client_send_receive (svc_client=0x804a848, env=0x804a220, op_qname=0x8085440,
payload=0x80926a8) at svc_client.c:869
#5  0x08048a58 in main (argc=1, argv=0xafe0aa74) at echo.c:94
(gdb) c
Continuing.

Received OM : <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples"><text>echo5</text></ns1:echoString>

echo client invoke SUCCESSFUL!

Breakpoint 5, axis2_thread_mutex_destroy (mutex=0x806b0c0) at thread_unix.c:248
248         if (0 != pthread_mutex_destroy(&(mutex->mutex)))
(gdb) bt
#0  axis2_thread_mutex_destroy (mutex=0x806b0c0) at thread_unix.c:248
#1  0xa7e75e16 in axis2_conf_ctx_free (conf_ctx=0x8094a18, env=0x804a220) at conf_ctx.c:664
#2  0xa7e81041 in axis2_svc_client_free (svc_client=0x804a848, env=0x804a220) at svc_client.c:1326
#3  0x08048b21 in main (argc=1, argv=0xafe0aa74) at echo.c:114
(gdb) n
250             return AXIS2_FAILURE;
(gdb) n
254     }
(gdb) n
axis2_conf_ctx_free (conf_ctx=0x8094a18, env=0x804a220) at conf_ctx.c:665
665             conf_ctx_impl->mutex = NULL;
(gdb) c
Continuing.

Breakpoint 5, axis2_thread_mutex_destroy (mutex=0x8095970) at thread_unix.c:248
248         if (0 != pthread_mutex_destroy(&(mutex->mutex)))
(gdb) bt
#0  axis2_thread_mutex_destroy (mutex=0x8095970) at thread_unix.c:248
#1  0xa7e73ac5 in axis2_op_ctx_free (op_ctx=0x807bda0, env=0x804a220) at op_ctx.c:269
#2  0xa7e7e8f7 in axis2_op_client_free (op_client=0x8085ab8, env=0x804a220) at op_client.c:654
#3  0xa7e810d7 in axis2_svc_client_free (svc_client=0x804a848, env=0x804a220) at svc_client.c:1344
#4  0x08048b21 in main (argc=1, argv=0xafe0aa74) at echo.c:114
(gdb) n
252         AXIS2_FREE(mutex->allocator, mutex);
(gdb) n
253         return AXIS2_SUCCESS;
(gdb) n
254     }
(gdb) c
Continuing.

Breakpoint 5, axis2_thread_mutex_destroy (mutex=0x804a060) at thread_unix.c:248
248         if (0 != pthread_mutex_destroy(&(mutex->mutex)))
(gdb) bt
#0  axis2_thread_mutex_destroy (mutex=0x804a060) at thread_unix.c:248
#1  0xa7ee1751 in axis2_log_impl_free (allocator=0x804a008, log=0x804a048) at log.c:47
#2  0xa7edf6cf in axis2_env_free (env=0x804a220) at env.c:53
#3  0x08048b4a in main (argc=1, argv=0xafe0aa74) at echo.c:125
(gdb) n
252         AXIS2_FREE(mutex->allocator, mutex);
(gdb) n
253         return AXIS2_SUCCESS;
(gdb) n
254     }
(gdb) c
Continuing.

Program exited normally.



> axis2_thread_mutex_destroy returns failure on destroying mutexes
> ----------------------------------------------------------------
>
>                 Key: AXIS2C-303
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-303
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: platforms/unix
>    Affects Versions: Current (Nightly)
>         Environment: pthreads
>            Reporter: Dumindu Pallewela
>
> The call to axis2_thread_mutex_destroy fails due to the failure occured in pthread_mutex_destroy
in thread_unix.c:axis2_thread_mutex_destroy. Hence the memory allocated for the mutex is also
not free'd.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message