You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2021/04/03 18:36:00 UTC

[jira] [Updated] (DISPATCH-2030) core_link_endpoint.c: runtime error: store to misaligned address

     [ https://issues.apache.org/jira/browse/DISPATCH-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiri Daněk updated DISPATCH-2030:
---------------------------------
    Description: 
https://github.com/jiridanek/qpid-dispatch/runs/2259640865#step:9:1308

{noformat}
56: ../src/router_core/core_link_endpoint.c:143:25: runtime error: store to misaligned address 0x61600011dd9c for type 'uint64_t', which requires 8 byte alignment
56: 0x61600011dd9c: note: pointer points here
56:   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
56:               ^ 
56:     #0 0x7fdb81066f7f in qdrc_endpoint_delivery_CT ../src/router_core/core_link_endpoint.c:143
56:     #1 0x7fdb8110a395 in source_send ../src/router_core/modules/test_hooks/core_test_hooks.c:110
56:     #2 0x7fdb810f8964 in qdr_link_flow_CT ../src/router_core/transfer.c:431
56:     #3 0x7fdb810d37c8 in router_core_thread ../src/router_core/router_core_thread.c:239
56:     #4 0x7fdb809dd608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
56:     #5 0x7fdb7ff97292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
56: 
56: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/router_core/core_link_endpoint.c:143:25 in 
{noformat}

https://github.com/jiridanek/qpid-dispatch/runs/2259640847#step:9:1674

{noformat}
59: ../src/router_core/core_link_endpoint.c:143:25: runtime error: store to misaligned address 0x616000117d9c for type 'uint64_t', which requires 8 byte alignment
59: 0x616000117d9c: note: pointer points here
59:   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
59:               ^ 
59:     #0 0x7f0e89f77f7f in qdrc_endpoint_delivery_CT ../src/router_core/core_link_endpoint.c:143
59:     #1 0x7f0e89f7f292 in _flush_send_queue_CT ../src/router_core/core_client_api.c:288
59:     #2 0x7f0e89f82b4e in _send_request_CT ../src/router_core/core_client_api.c:270
59:     #3 0x7f0e89f82b4e in qdrc_client_request_CT ../src/router_core/core_client_api.c:259
59:     #4 0x7f0e8a01d154 in _do_send ../src/router_core/modules/test_hooks/core_test_hooks.c:551
59:     #5 0x7f0e89f8128f in _sender_flow_CT ../src/router_core/core_client_api.c:448
59:     #6 0x7f0e8a009964 in qdr_link_flow_CT ../src/router_core/transfer.c:431
59:     #7 0x7f0e89fe47c8 in router_core_thread ../src/router_core/router_core_thread.c:239
59:     #8 0x7f0e898ee608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
59:     #9 0x7f0e88ea8292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
59: 
59: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/router_core/core_link_endpoint.c:143:25 in 
{noformat}

And also https://travis-ci.com/github/apache/qpid-dispatch/jobs/495867996#L3473

{noformat}
16: /home/travis/build/apache/qpid-dispatch/src/router_core/core_link_endpoint.c:124:5: runtime error: store to misaligned address 0xffff8cc0f79c for type 'uint64_t' (aka 'unsigned long'), which requires 8 byte alignment
16: 0xffff8cc0f79c: note: pointer points here
16:   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
16:               ^ 
16:     #0 0xffff9cd01d14 in qdrc_endpoint_send_CT /home/travis/build/apache/qpid-dispatch/src/router_core/core_link_endpoint.c:124:24
16:     #1 0xffff9cd0c4b4 in _flush_send_queue_CT /home/travis/build/apache/qpid-dispatch/src/router_core/core_client_api.c:292:9
16:     #2 0xffff9cd087e4 in _send_request_CT /home/travis/build/apache/qpid-dispatch/src/router_core/core_client_api.c:270:5
16:     #3 0xffff9cd087e4 in qdrc_client_request_CT /home/travis/build/apache/qpid-dispatch/src/router_core/core_client_api.c:259:5
16:     #4 0xffff9cddefcc in qcm_addr_lookup_process_pending_requests_CT /home/travis/build/apache/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:484:30
16:     #5 0xffff9cdd98f8 in qcm_addr_lookup_CT /home/travis/build/apache/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:561:9
16:     #6 0xffff9cce091c in qdr_link_inbound_first_attach_CT /home/travis/build/apache/qpid-dispatch/src/router_core/connections.c
16:     #7 0xffff9cd83380 in router_core_thread /home/travis/build/apache/qpid-dispatch/src/router_core/router_core_thread.c:239:13
16:     #8 0xffff9c8024f8 in start_thread (/lib/aarch64-linux-gnu/libpthread.so.0+0x84f8)
16:     #9 0xffff9c0ccf28  (/lib/aarch64-linux-gnu/libc.so.6+0xd3f28)
16: 
16: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/travis/build/apache/qpid-dispatch/src/router_core/core_link_endpoint.c:124:5 in 
{noformat}

  was:
https://github.com/jiridanek/qpid-dispatch/runs/2259640865#step:9:1308

{noformat}
56: ../src/router_core/core_link_endpoint.c:143:25: runtime error: store to misaligned address 0x61600011dd9c for type 'uint64_t', which requires 8 byte alignment
56: 0x61600011dd9c: note: pointer points here
56:   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
56:               ^ 
56:     #0 0x7fdb81066f7f in qdrc_endpoint_delivery_CT ../src/router_core/core_link_endpoint.c:143
56:     #1 0x7fdb8110a395 in source_send ../src/router_core/modules/test_hooks/core_test_hooks.c:110
56:     #2 0x7fdb810f8964 in qdr_link_flow_CT ../src/router_core/transfer.c:431
56:     #3 0x7fdb810d37c8 in router_core_thread ../src/router_core/router_core_thread.c:239
56:     #4 0x7fdb809dd608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
56:     #5 0x7fdb7ff97292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
56: 
56: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/router_core/core_link_endpoint.c:143:25 in 
{noformat}

https://github.com/jiridanek/qpid-dispatch/runs/2259640847#step:9:1674

{noformat}
59: ../src/router_core/core_link_endpoint.c:143:25: runtime error: store to misaligned address 0x616000117d9c for type 'uint64_t', which requires 8 byte alignment
59: 0x616000117d9c: note: pointer points here
59:   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
59:               ^ 
59:     #0 0x7f0e89f77f7f in qdrc_endpoint_delivery_CT ../src/router_core/core_link_endpoint.c:143
59:     #1 0x7f0e89f7f292 in _flush_send_queue_CT ../src/router_core/core_client_api.c:288
59:     #2 0x7f0e89f82b4e in _send_request_CT ../src/router_core/core_client_api.c:270
59:     #3 0x7f0e89f82b4e in qdrc_client_request_CT ../src/router_core/core_client_api.c:259
59:     #4 0x7f0e8a01d154 in _do_send ../src/router_core/modules/test_hooks/core_test_hooks.c:551
59:     #5 0x7f0e89f8128f in _sender_flow_CT ../src/router_core/core_client_api.c:448
59:     #6 0x7f0e8a009964 in qdr_link_flow_CT ../src/router_core/transfer.c:431
59:     #7 0x7f0e89fe47c8 in router_core_thread ../src/router_core/router_core_thread.c:239
59:     #8 0x7f0e898ee608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
59:     #9 0x7f0e88ea8292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
59: 
59: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/router_core/core_link_endpoint.c:143:25 in 
{noformat}

And also

{noformat}
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/router_core/core_link_endpoint.c:143:5 in 
../src/router_core/core_link_endpoint.c:124:5: runtime error: store to misaligned address 0x616000137e9c for type 'uint64_t' (aka 'unsigned long'), which requires 8 byte alignment
0x616000137e9c: note: pointer points here
{noformat}

(I did not get a stacktrace for this one, sorry)


> core_link_endpoint.c: runtime error: store to misaligned address
> ----------------------------------------------------------------
>
>                 Key: DISPATCH-2030
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2030
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 1.16.0
>            Reporter: Jiri Daněk
>            Priority: Major
>
> https://github.com/jiridanek/qpid-dispatch/runs/2259640865#step:9:1308
> {noformat}
> 56: ../src/router_core/core_link_endpoint.c:143:25: runtime error: store to misaligned address 0x61600011dd9c for type 'uint64_t', which requires 8 byte alignment
> 56: 0x61600011dd9c: note: pointer points here
> 56:   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> 56:               ^ 
> 56:     #0 0x7fdb81066f7f in qdrc_endpoint_delivery_CT ../src/router_core/core_link_endpoint.c:143
> 56:     #1 0x7fdb8110a395 in source_send ../src/router_core/modules/test_hooks/core_test_hooks.c:110
> 56:     #2 0x7fdb810f8964 in qdr_link_flow_CT ../src/router_core/transfer.c:431
> 56:     #3 0x7fdb810d37c8 in router_core_thread ../src/router_core/router_core_thread.c:239
> 56:     #4 0x7fdb809dd608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
> 56:     #5 0x7fdb7ff97292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
> 56: 
> 56: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/router_core/core_link_endpoint.c:143:25 in 
> {noformat}
> https://github.com/jiridanek/qpid-dispatch/runs/2259640847#step:9:1674
> {noformat}
> 59: ../src/router_core/core_link_endpoint.c:143:25: runtime error: store to misaligned address 0x616000117d9c for type 'uint64_t', which requires 8 byte alignment
> 59: 0x616000117d9c: note: pointer points here
> 59:   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> 59:               ^ 
> 59:     #0 0x7f0e89f77f7f in qdrc_endpoint_delivery_CT ../src/router_core/core_link_endpoint.c:143
> 59:     #1 0x7f0e89f7f292 in _flush_send_queue_CT ../src/router_core/core_client_api.c:288
> 59:     #2 0x7f0e89f82b4e in _send_request_CT ../src/router_core/core_client_api.c:270
> 59:     #3 0x7f0e89f82b4e in qdrc_client_request_CT ../src/router_core/core_client_api.c:259
> 59:     #4 0x7f0e8a01d154 in _do_send ../src/router_core/modules/test_hooks/core_test_hooks.c:551
> 59:     #5 0x7f0e89f8128f in _sender_flow_CT ../src/router_core/core_client_api.c:448
> 59:     #6 0x7f0e8a009964 in qdr_link_flow_CT ../src/router_core/transfer.c:431
> 59:     #7 0x7f0e89fe47c8 in router_core_thread ../src/router_core/router_core_thread.c:239
> 59:     #8 0x7f0e898ee608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
> 59:     #9 0x7f0e88ea8292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
> 59: 
> 59: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/router_core/core_link_endpoint.c:143:25 in 
> {noformat}
> And also https://travis-ci.com/github/apache/qpid-dispatch/jobs/495867996#L3473
> {noformat}
> 16: /home/travis/build/apache/qpid-dispatch/src/router_core/core_link_endpoint.c:124:5: runtime error: store to misaligned address 0xffff8cc0f79c for type 'uint64_t' (aka 'unsigned long'), which requires 8 byte alignment
> 16: 0xffff8cc0f79c: note: pointer points here
> 16:   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> 16:               ^ 
> 16:     #0 0xffff9cd01d14 in qdrc_endpoint_send_CT /home/travis/build/apache/qpid-dispatch/src/router_core/core_link_endpoint.c:124:24
> 16:     #1 0xffff9cd0c4b4 in _flush_send_queue_CT /home/travis/build/apache/qpid-dispatch/src/router_core/core_client_api.c:292:9
> 16:     #2 0xffff9cd087e4 in _send_request_CT /home/travis/build/apache/qpid-dispatch/src/router_core/core_client_api.c:270:5
> 16:     #3 0xffff9cd087e4 in qdrc_client_request_CT /home/travis/build/apache/qpid-dispatch/src/router_core/core_client_api.c:259:5
> 16:     #4 0xffff9cddefcc in qcm_addr_lookup_process_pending_requests_CT /home/travis/build/apache/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:484:30
> 16:     #5 0xffff9cdd98f8 in qcm_addr_lookup_CT /home/travis/build/apache/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:561:9
> 16:     #6 0xffff9cce091c in qdr_link_inbound_first_attach_CT /home/travis/build/apache/qpid-dispatch/src/router_core/connections.c
> 16:     #7 0xffff9cd83380 in router_core_thread /home/travis/build/apache/qpid-dispatch/src/router_core/router_core_thread.c:239:13
> 16:     #8 0xffff9c8024f8 in start_thread (/lib/aarch64-linux-gnu/libpthread.so.0+0x84f8)
> 16:     #9 0xffff9c0ccf28  (/lib/aarch64-linux-gnu/libc.so.6+0xd3f28)
> 16: 
> 16: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/travis/build/apache/qpid-dispatch/src/router_core/core_link_endpoint.c:124:5 in 
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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