[
https://issues.apache.org/jira/browse/DISPATCH-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16953472#comment-16953472
]
ASF GitHub Bot commented on DISPATCH-1384:
------------------------------------------
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:
[email protected]
> Fix tests in Travis CI on macOS
> -------------------------------
>
> Key: DISPATCH-1384
> URL: https://issues.apache.org/jira/browse/DISPATCH-1384
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Tests
> Reporter: Jiri Daněk
> Assignee: Jiri Daněk
> Priority: Major
>
> {noformat}
> The following tests FAILED:
> 9 - unit_tests (SEGFAULT)
> 23 - system_tests_policy (Timeout)
> 28 - system_tests_sasl_plain (Failed)
> 38 - system_tests_auth_service_plugin (Failed)
> 39 - system_tests_authz_service_plugin (Failed)
> 48 - system_tests_bad_configuration (Failed)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]