axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damitha Kumarage (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2C-1154) multiple Invalid read of size 4 for client In-Only message
Date Fri, 27 Jun 2008 08:35:47 GMT

    [ https://issues.apache.org/jira/browse/AXIS2C-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608689#action_12608689
] 

Damitha Kumarage commented on AXIS2C-1154:
------------------------------------------

Supun, Your fix makes sense to me. What Frederic doing is from his client application he retrieves
the anonymous svc client and create a new operation for it and call send_robust with that
op name. But he set the wrong MEP for it. What your patch do is check whether the mep is correctly
set for the operation. If not you return failure. I approve that patch. Please commit it.


> multiple Invalid read of size 4 for client In-Only message
> ----------------------------------------------------------
>
>                 Key: AXIS2C-1154
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1154
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>         Environment: linux fc5
>            Reporter: Frederic Heem
>         Attachments: notify_client.c, send_robust.patch
>
>
> When sending an "In-Only" message, valgrind complains about multiple invalid read :
> ==13318== Invalid read of size 4
> ==13318==    at 0x4049F37: axis2_msg_ctx_get_transport_in_desc (msg_ctx.c:1075)
> ==13318==    by 0x405577E: axis2_svc_client_set_http_info (svc_client.c:1703)
> ==13318==    by 0x40563D8: axis2_svc_client_send_robust_with_op_qname (svc_client.c:571)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==  Address 0x423a298 is 48 bytes inside a block of size 264 free'd
> ==13318==    at 0x40053CC: free (vg_replace_malloc.c:323)
> ==13318==    by 0x411289C: axutil_allocator_free_impl (allocator.c:91)
> ==13318==    by 0x404CBE9: axis2_msg_ctx_free (msg_ctx.c:540)
> ==13318==    by 0x4053E3C: axis2_op_client_add_msg_ctx (op_client.c:226)
> ==13318==    by 0x40544E4: axis2_op_client_execute (op_client.c:522)
> ==13318==    by 0x40563C9: axis2_svc_client_send_robust_with_op_qname (svc_client.c:570)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==
> ==13318== Invalid read of size 4
> ==13318==    at 0x4048447: axis2_msg_ctx_get_status_code (msg_ctx.c:2662)
> ==13318==    by 0x4055877: axis2_svc_client_set_http_info (svc_client.c:1756)
> ==13318==    by 0x40563D8: axis2_svc_client_send_robust_with_op_qname (svc_client.c:571)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==  Address 0x423a2f0 is 136 bytes inside a block of size 264 free'd
> ==13318==    at 0x40053CC: free (vg_replace_malloc.c:323)
> ==13318==    by 0x411289C: axutil_allocator_free_impl (allocator.c:91)
> ==13318==    by 0x404CBE9: axis2_msg_ctx_free (msg_ctx.c:540)
> ==13318==    by 0x4053E3C: axis2_op_client_add_msg_ctx (op_client.c:226)
> ==13318==    by 0x40544E4: axis2_op_client_execute (op_client.c:522)
> ==13318==    by 0x40563C9: axis2_svc_client_send_robust_with_op_qname (svc_client.c:570)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==
> ==13318== Invalid read of size 4
> ==13318==    at 0x4048347: axis2_msg_ctx_get_auth_failed (msg_ctx.c:2683)
> ==13318==    by 0x40563E4: axis2_svc_client_send_robust_with_op_qname (svc_client.c:572)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==  Address 0x423a360 is 248 bytes inside a block of size 264 free'd
> ==13318==    at 0x40053CC: free (vg_replace_malloc.c:323)
> ==13318==    by 0x411289C: axutil_allocator_free_impl (allocator.c:91)
> ==13318==    by 0x404CBE9: axis2_msg_ctx_free (msg_ctx.c:540)
> ==13318==    by 0x4053E3C: axis2_op_client_add_msg_ctx (op_client.c:226)
> ==13318==    by 0x40544E4: axis2_op_client_execute (op_client.c:522)
> ==13318==    by 0x40563C9: axis2_svc_client_send_robust_with_op_qname (svc_client.c:570)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==
> ==13318== Invalid read of size 4
> ==13318==    at 0x4048147: axis2_msg_ctx_get_required_auth_is_http (msg_ctx.c:2725)
> ==13318==    by 0x40563F6: axis2_svc_client_send_robust_with_op_qname (svc_client.c:573)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==  Address 0x423a364 is 252 bytes inside a block of size 264 free'd
> ==13318==    at 0x40053CC: free (vg_replace_malloc.c:323)
> ==13318==    by 0x411289C: axutil_allocator_free_impl (allocator.c:91)
> ==13318==    by 0x404CBE9: axis2_msg_ctx_free (msg_ctx.c:540)
> ==13318==    by 0x4053E3C: axis2_op_client_add_msg_ctx (op_client.c:226)
> ==13318==    by 0x40544E4: axis2_op_client_execute (op_client.c:522)
> ==13318==    by 0x40563C9: axis2_svc_client_send_robust_with_op_qname (svc_client.c:570)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==
> ==13318== Invalid read of size 4
> ==13318==    at 0x4048017: axis2_msg_ctx_get_auth_type (msg_ctx.c:2761)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)
> ==13318==  Address 0x423a368 is 256 bytes inside a block of size 264 free'd
> ==13318==    at 0x40053CC: free (vg_replace_malloc.c:323)
> ==13318==    by 0x411289C: axutil_allocator_free_impl (allocator.c:91)
> ==13318==    by 0x404CBE9: axis2_msg_ctx_free (msg_ctx.c:540)
> ==13318==    by 0x4053E3C: axis2_op_client_add_msg_ctx (op_client.c:226)
> ==13318==    by 0x40544E4: axis2_op_client_execute (op_client.c:522)
> ==13318==    by 0x40563C9: axis2_svc_client_send_robust_with_op_qname (svc_client.c:570)
> ==13318==    by 0x804B477: axis2_stub_op_zigbee_PermitJoining (axis2_stub_zigbee.c:1248)
> ==13318==    by 0x804A362: PermitJoining (zigbee_client.c:221)
> ==13318==    by 0x804A523: main (zigbee_client.c:132)

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