You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by GitBox <gi...@apache.org> on 2019/10/17 07:43:09 UTC

[GitHub] [qpid-dispatch] jdanekrh commented on issue #590: DISPATCH-1384 - fix unit_tests test

jdanekrh commented on issue #590: DISPATCH-1384 - fix unit_tests test
URL: https://github.com/apache/qpid-dispatch/pull/590#issuecomment-543049810
 
 
   The `-Wl,-flat_namespace` is not in conflict with sanitizers, e.g. the following is running the sanitizer just fine.
   
       $ cmake .. -DCMAKE_INSTALL_PREFIX=../../install -DUSE_TSAN=ON
       $ make
       $ ctest -R unit_tests -V
   
   ```
   9: 2019-10-17 09:39:52.994660 +0200 DEFAULT (notice) configured pattern '.#.*.policy' optimized and re-written to '.*.#.policy'
   9: ==================
   9: WARNING: ThreadSanitizer: data race (pid=3930)
   9:   Read of size 1 at 0x7b6400014a20 by thread T1 (mutexes: write M309):
   9:   * #0 router_core_thread router_core_thread.c:148 (libqpid-dispatch.dylib:x86_64+0x5fe6d)
   9: 
   9:   Previous write of size 1 at 0x7b6400014a20 by main thread:
   9:   * #0 qdr_core_free router_core.c:103 (libqpid-dispatch.dylib:x86_64+0x5b015)
   9:     #1 qd_router_free router_node.c:1788 (libqpid-dispatch.dylib:x86_64+0x73865)
   9:     #2 qd_dispatch_free dispatch.c:360 (libqpid-dispatch.dylib:x86_64+0x15a8e)
   9:     #3 main run_unit_tests.c:67 (unit_tests:x86_64+0x100003772)
   9: 
   9:   Issue is caused by frames marked with "*".
   9: 
   9:   Location is heap block of size 1152 at 0x7b6400014a00 allocated by main thread:
   9:     #0 malloc <null>:1064000 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x48f1a)
   9:     #1 qdr_core router_core.c:45 (libqpid-dispatch.dylib:x86_64+0x5ac60)
   9:     #2 qd_router_setup_late router_node.c:1762 (libqpid-dispatch.dylib:x86_64+0x72c58)
   9:     #3 ffi_call_unix64 <null>:1064000 (libffi.6.dylib:x86_64+0x4913)
   9:     #4 main run_unit_tests.c:52 (unit_tests:x86_64+0x1000036d0)
   9: 
   9:   Mutex M309 (0x7b1000007c00) created at:
   9:     #0 pthread_mutex_init <null>:1063856 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2b5f3)
   9:     #1 sys_mutex threading.c:42 (libqpid-dispatch.dylib:x86_64+0x31be1)
   9:     #2 qdr_core router_core.c:65 (libqpid-dispatch.dylib:x86_64+0x5ad30)
   9:     #3 qd_router_setup_late router_node.c:1762 (libqpid-dispatch.dylib:x86_64+0x72c58)
   9:     #4 ffi_call_unix64 <null>:1063856 (libffi.6.dylib:x86_64+0x4913)
   9:     #5 main run_unit_tests.c:52 (unit_tests:x86_64+0x1000036d0)
   9: 
   9:   Thread T1 (tid=20228, running) created by main thread at:
   9:     #0 pthread_create <null>:1064048 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a72d)
   9:     #1 sys_thread threading.c:158 (libqpid-dispatch.dylib:x86_64+0x32035)
   9:     #2 qdr_core router_core.c:82 (libqpid-dispatch.dylib:x86_64+0x5adf6)
   9:     #3 qd_router_setup_late router_node.c:1762 (libqpid-dispatch.dylib:x86_64+0x72c58)
   9:     #4 ffi_call_unix64 <null>:1064048 (libffi.6.dylib:x86_64+0x4913)
   9:     #5 main run_unit_tests.c:52 (unit_tests:x86_64+0x1000036d0)
   9: 
   9: SUMMARY: ThreadSanitizer: data race router_core_thread.c:148 in router_core_thread
   9: ==================
   ```

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


With regards,
Apache Git Services

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