Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.17.0
-
None
-
None
Description
https://app.travis-ci.com/github/apache/qpid-dispatch/jobs/524340523#L5020
43: Process 13678 error: exit code 66, expected 0 43: qdrouterd -c router.conf -I /home/travis/build/apache/qpid-dispatch/python 43: /home/travis/build/apache/qpid-dispatch/build/tests/system_test.dir/system_tests_auth_service_plugin/AuthServicePluginTest/setUpClass/router-4.cmd 43: >>>> 43: ================== 43: WARNING: ThreadSanitizer: data race (pid=13678) 43: Read of size 8 at 0x7b3000016250 by thread T2: 43: #0 remote_sasl_list_mechs /home/travis/build/apache/qpid-dispatch/src/remote_sasl.c:431 (qdrouterd+0x893d2) 43: #1 pni_sasl_impl_list_mechs /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/sasl/sasl.c:209 (libqpid-proton-core.so.10+0x17ac2) 43: #2 pni_post_sasl_frame /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/sasl/sasl.c:495 (libqpid-proton-core.so.10+0x17ac2) 43: #3 _thread_init /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x8b231) 43: 43: Previous write of size 8 at 0x7b3000016250 by thread T3: 43: #0 remote_sasl_process_mechanisms /home/travis/build/apache/qpid-dispatch/src/remote_sasl.c:384 (qdrouterd+0x89494) 43: #1 pni_sasl_impl_process_mechanisms /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/sasl/sasl.c:239 (libqpid-proton-core.so.10+0x187a9) 43: #2 pn_do_mechanisms /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/sasl/sasl.c:956 (libqpid-proton-core.so.10+0x187a9) 43: #3 _thread_init /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x8b231) 43: 43: Location is heap block of size 184 at 0x7b3000016200 allocated by thread T2: 43: #0 malloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:651 (libtsan.so.0+0x30323) 43: #1 qd_malloc /home/travis/build/apache/qpid-dispatch/include/qpid/dispatch/ctools.h:229 (qdrouterd+0x8a96a) 43: #2 new_qdr_sasl_relay_t /home/travis/build/apache/qpid-dispatch/src/remote_sasl.c:140 (qdrouterd+0x8a96a) 43: #3 qdr_use_remote_authentication_service /home/travis/build/apache/qpid-dispatch/src/remote_sasl.c:507 (qdrouterd+0x8a96a) 43: #4 on_connection_bound /home/travis/build/apache/qpid-dispatch/src/server.c:755 (qdrouterd+0xe28ef) 43: #5 handle /home/travis/build/apache/qpid-dispatch/src/server.c:1037 (qdrouterd+0xe28ef) 43: #6 thread_run /home/travis/build/apache/qpid-dispatch/src/server.c:1133 (qdrouterd+0xe46f8) 43: #7 _thread_init /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x8b231) 43: 43: Thread T2 (tid=13681, running) created by main thread at: 43: #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962 (libtsan.so.0+0x5ea79) 43: #1 sys_thread /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x8b7f2) 43: #2 qd_server_run /home/travis/build/apache/qpid-dispatch/src/server.c:1522 (qdrouterd+0xe536a) 43: #3 main_process /home/travis/build/apache/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2dc57) 43: #4 main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2d0b2) 43: 43: Thread T3 (tid=13682, running) created by main thread at: 43: #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962 (libtsan.so.0+0x5ea79) 43: #1 sys_thread /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x8b7f2) 43: #2 qd_server_run /home/travis/build/apache/qpid-dispatch/src/server.c:1522 (qdrouterd+0xe536a) 43: #3 main_process /home/travis/build/apache/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2dc57) 43: #4 main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2d0b2)
43: WARNING: ThreadSanitizer: data race (pid=13678) 43: Read of size 1 at 0x7b0400002040 by thread T2: 43: #0 strlen ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:384 (libtsan.so.0+0x32a9f) 43: #1 strlen ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:376 (libtsan.so.0+0x32a9f) 43: #2 pn_strdup /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/util.c:122 (libqpid-proton-core.so.10+0x2a117) 43: #3 _thread_init /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x8b231) 43: 43: Previous write of size 8 at 0x7b0400002040 by thread T3: 43: #0 malloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:651 (libtsan.so.0+0x30323) 43: #1 strdup <null> (libc.so.6+0xa250e) 43: #2 remote_sasl_process_mechanisms /home/travis/build/apache/qpid-dispatch/src/remote_sasl.c:384 (qdrouterd+0x89488) 43: #3 pni_sasl_impl_process_mechanisms /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/sasl/sasl.c:239 (libqpid-proton-core.so.10+0x187a9) 43: #4 pn_do_mechanisms /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/sasl/sasl.c:956 (libqpid-proton-core.so.10+0x187a9) 43: #5 _thread_init /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x8b231) 43: 43: Location is heap block of size 6 at 0x7b0400002040 allocated by thread T3: 43: #0 malloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:651 (libtsan.so.0+0x30323) 43: #1 strdup <null> (libc.so.6+0xa250e) 43: #2 remote_sasl_process_mechanisms /home/travis/build/apache/qpid-dispatch/src/remote_sasl.c:384 (qdrouterd+0x89488) 43: #3 pni_sasl_impl_process_mechanisms /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/sasl/sasl.c:239 (libqpid-proton-core.so.10+0x187a9) 43: #4 pn_do_mechanisms /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/sasl/sasl.c:956 (libqpid-proton-core.so.10+0x187a9) 43: #5 _thread_init /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x8b231) 43: 43: Thread T2 (tid=13681, running) created by main thread at: 43: #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962 (libtsan.so.0+0x5ea79) 43: #1 sys_thread /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x8b7f2) 43: #2 qd_server_run /home/travis/build/apache/qpid-dispatch/src/server.c:1522 (qdrouterd+0xe536a) 43: #3 main_process /home/travis/build/apache/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2dc57) 43: #4 main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2d0b2) 43: 43: Thread T3 (tid=13682, running) created by main thread at: 43: #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962 (libtsan.so.0+0x5ea79) 43: #1 sys_thread /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x8b7f2) 43: #2 qd_server_run /home/travis/build/apache/qpid-dispatch/src/server.c:1522 (qdrouterd+0xe536a) 43: #3 main_process /home/travis/build/apache/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2dc57) 43: #4 main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2d0b2) 43: 43: SUMMARY: ThreadSanitizer: data race /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/util.c:122 in pn_strdup 43: ================== 43: ThreadSanitizer: reported 2 warnings
Attachments
Issue Links
- is duplicated by
-
DISPATCH-2313 TSAN data race in remote_sasl.c
- Open
- relates to
-
DISPATCH-2137 multiple data races in the SASL plugin
- Open