axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushshantha Chandradasa (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2C-515) the sample dynamic_client segfault on Linux: double free or corruption
Date Wed, 24 Jan 2007 11:04:49 GMT

    [ https://issues.apache.org/jira/browse/AXIS2C-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466989
] 

Dushshantha Chandradasa commented on AXIS2C-515:
------------------------------------------------

Here is the Valgrind report i got.

==26419== Invalid free() / delete / delete[]
==26419==    at 0x401CFCF: free (vg_replace_malloc.c:235)
==26419==    by 0x41AB59B: xmlBufferFree (in /usr/lib/libxml2.so.2.6.24)
==26419==    by 0x40B4A82: axis2_libxml2_writer_wrapper_free (libxml2_writer_wrapper.c:644)
==26419==    by 0x4043DEB: axiom_output_free (om_output.c:131)
==26419==    by 0x8048F03: main (dynamic_client.c:259)
==26419==  Address 0x46BFE20 is 0 bytes inside a block of size 4,096 free'd
==26419==    at 0x401CFCF: free (vg_replace_malloc.c:235)
==26419==    by 0x40273F2: axis2_allocator_free_impl (allocator.c:77)
==26419==    by 0x8048EF7: main (dynamic_client.c:258)
==26419==
==26419== Invalid read of size 4
==26419==    at 0x4528184: axis2_addr_out_handler_invoke (addr_out_handler.c:133)
==26419==    by 0x407C3AE: axis2_phase_invoke (phase.c:362)
==26419==    by 0x407FB7B: axis2_engine_invoke_phases (engine.c:780)
==26419==    by 0x40801F4: axis2_engine_send (engine.c:298)
==26419==    by 0x409E485: axis2_mep_client_two_way_send (mep_client.c:631)
==26419==    by 0x40A04BC: axis2_op_client_execute (op_client.c:556)
==26419==    by 0x40A237D: axis2_svc_client_send_receive (svc_client.c:920)
==26419==    by 0x8048F3D: main (dynamic_client.c:122)
==26419==  Address 0x46B4458 is 16 bytes before a block of size 48 alloc'd
==26419==    at 0x401C422: malloc (vg_replace_malloc.c:149)
==26419==    by 0x40273A5: axis2_allocator_malloc_impl (allocator.c:65)
==26419==    by 0x4029A5C: axis2_strdup (string.c:209)
==26419==    by 0x409C613: axis2_endpoint_ref_create (endpoint_ref.c:70)
==26419==    by 0x408B791: axis2_client_utils_create_axis2_svc (client_utils.c:365)
==26419==    by 0x40A1AF9: axis2_svc_client_create_for_dynamic_invocation (svc_client.c:296)
==26419==    by 0x8048C80: main (dynamic_client.c:110)
==26419==
==26419== Jump to the invalid address stated on the next line
==26419==    at 0x0: ???
==26419==    by 0x407C3AE: axis2_phase_invoke (phase.c:362)
==26419==    by 0x407FB7B: axis2_engine_invoke_phases (engine.c:780)
==26419==    by 0x40801F4: axis2_engine_send (engine.c:298)
==26419==    by 0x409E485: axis2_mep_client_two_way_send (mep_client.c:631)
==26419==    by 0x40A04BC: axis2_op_client_execute (op_client.c:556)
==26419==    by 0x40A237D: axis2_svc_client_send_receive (svc_client.c:920)
==26419==    by 0x8048F3D: main (dynamic_client.c:122)
==26419==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26419==
==26419== Process terminating with default action of signal 11 (SIGSEGV)
==26419==  Bad permissions for mapped region at address 0x0
==26419==    at 0x0: ???
==26419==    by 0x407C3AE: axis2_phase_invoke (phase.c:362)
==26419==    by 0x407FB7B: axis2_engine_invoke_phases (engine.c:780)
==26419==    by 0x40801F4: axis2_engine_send (engine.c:298)
==26419==    by 0x409E485: axis2_mep_client_two_way_send (mep_client.c:631)
==26419==    by 0x40A04BC: axis2_op_client_execute (op_client.c:556)
==26419==    by 0x40A237D: axis2_svc_client_send_receive (svc_client.c:920)
==26419==    by 0x8048F3D: main (dynamic_client.c:122)
==26419==
==26419== ERROR SUMMARY: 70 errors from 21 contexts (suppressed: 43 from 1)
==26419== malloc/free: in use at exit: 684,870 bytes in 19,577 blocks.
==26419== malloc/free: 27,458 allocs, 7,888 frees, 1,320,142 bytes allocated.
==26419== For counts of detected errors, rerun with: -v
==26419== searching for pointers to 19,577 not-freed blocks.
==26419== checked 496,216 bytes.
==26419==
==26419== LEAK SUMMARY:
==26419==    definitely lost: 478,139 bytes in 14,984 blocks.
==26419==      possibly lost: 0 bytes in 0 blocks.
==26419==    still reachable: 206,731 bytes in 4,593 blocks.
==26419==         suppressed: 0 bytes in 0 blocks.
==26419== Use --leak-check=full to see details of leaked memory.
Segmentation fault


> the sample dynamic_client segfault on Linux: double free or corruption
> ----------------------------------------------------------------------
>
>                 Key: AXIS2C-515
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-515
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>         Environment: Linux
>            Reporter: Dushshantha Chandradasa
>
> The sample dynamic_client segfaults with the message:
> *** glibc detected *** ./dynamic_client: double free or corruption (!prev): 0x000000000065ed50
***
> ======= Backtrace: =========
> /lib64/libc.so.6[0x2b7c278a837e]
> /lib64/libc.so.6(__libc_free+0x6c)[0x2b7c278a999c]
> /usr/lib64/libxml2.so.2(xmlBufferFree+0x2e)[0x2b7c272dcfae]
> /root/axis2Test/c/deploy/lib/libaxis2_parser.so.0(axis2_libxml2_writer_wrapper_free+0x30)[0x2b7c26d339d0]
> /root/axis2Test/c/deploy/lib/libaxis2_axiom.so.0(axiom_output_free+0x88)[0x2b7c26c185d8]
> ./dynamic_client[0x401293]
> /lib64/libc.so.6(__libc_start_main+0xf4)[0x2b7c2785a154]
> ...

-- 
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


Mime
View raw message