You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/04/03 15:54:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17314282#comment-17314282 ] 

ASF GitHub Bot commented on DISPATCH-2030:
------------------------------------------

jiridanek opened a new pull request #1101:
URL: https://github.com/apache/qpid-dispatch/pull/1101


   1. UBSAN is not killing the process the moment undefined behavior is detected. This is easily fixed by doing `set(RUNTIME_UBSAN_ENV_OPTIONS "halt_on_error=1 abort_on_error=1")`, but then the tests timeout all the time. Not useful.
   2. UBSAN is not printing diagnostics. That is fixed by doing `set(RUNTIME_UBSAN_ENV_OPTIONS "print_stacktrace=1 print_summary=1")`
   3. ASAN has extra checks that can be enabled. Enabling them does not find any new issues, so far. But it sounds like a sensible thing to turn on, for the future. `set(RUNTIME_ASAN_ENV_OPTIONS "strict_string_checks=1 detect_stack_use_after_return=1 check_initialization_order=1 strict_init_order=1")`
   4. System tests don't print `.out` files produced by running routers, even if there are messages from sanitizers in them. Let's fix that. This means that tests become _quite_ chatty. Maybe not something that should be turned on forever, but now it's good to see the UBSAN messages.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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



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