celix
celix copied to clipboard
Deadlock in pubsub_websocket_test
Thread 1 (Thread 0x7f204f1d77c0 (LWP 61936)):
#0 0x00007f204ede035e in pthread_rwlock_wrlock () from /lib64/libpthread.so.0
#1 0x00007f204e8b79b8 in serviceRegistry_retainServiceReference (registry=0x147fab0, bundle=0x146b040, reference=0x1499fb0)
at celix-master/libs/framework/src/service_registry.c:485
#2 0x00007f204e8a9eb9 in bundleContext_retainServiceReference (context=0x147fadc, ref=0x80)
at celix-master/libs/framework/src/bundle_context.c:237
#3 0x00007f204e8b92bb in serviceTracker_track.isra.1 (instance=<incomplete type>, reference=0x1499fb0)
at celix-master/libs/framework/src/service_tracker.c:451
#4 0x00007f204e8b987c in serviceTracker_serviceChanged (handle=0x1499a40, event=0x7ffcd0c59b00)
at celix-master/libs/framework/src/service_tracker.c:416
#5 0x00007f204e8b89ce in celix_serviceRegistry_addServiceListener (registry=0x147fadc, bundle=0x80, stringFilter=0x1 <Address 0x1 out of bounds>, listener=0xffffffffffffffff)
at celix-master/libs/framework/src/service_registry.c:1157
#6 0x00007f204e8aa1e2 in bundleContext_addServiceListener (context=0x147fadc, listener=0x80, filter=0x0)
at celix-master/libs/framework/src/bundle_context.c:327
#7 0x00007f204e8b9cec in serviceTracker_open (tracker=0x1499970) at celix-master/libs/framework/src/service_tracker.c:213
#8 0x00007f204e8ba3e9 in celix_serviceTracker_createWithOptions (ctx=0x147fadc, opts=0x80)
at celix-master/libs/framework/src/service_tracker.c:765
#9 0x00007f204e8aaba7 in celix_bundleContext_useServiceWithOptions (ctx=0x0, opts=0x80)
at celix-master/libs/framework/src/bundle_context.c:773
#10 0x00007f204e8aacb0 in celix_bundleContext_useService (ctx=0x0, serviceName=0x80 <Address 0x80 out of bounds>, callbackHandle=0x0, use=0x202)
at celix-master/libs/framework/src/bundle_context.c:743
#11 0x00000000004027f4 in receiveTest (ctx=0x148a7f0)
at RelWithDebInfo/celix/gen/containers/pubsub_websocket_tests/test_runner.cc:97
#12 0x0000000000410f12 in PlatformSpecificSetJmpImplementation (function=0x40e0f0 <helperDoTestBody(void*)>, data=0x146a400)
at UtestPlatform.cpp:144
#13 0x000000000040e573 in Utest::run (this=0x146a400) at CppUTest/Utest.cpp:575
#14 0x00000000004109de in UtestShell::runOneTestInCurrentProcess (this=0x623360 <TEST_PUBSUB_INT_GROUP_recvTest_TestShell_instance>, plugin=0x7ffcd0c59ed0, result=...)
at CppUTest/Utest.cpp:210
#15 0x0000000000410f12 in PlatformSpecificSetJmpImplementation (function=0x40e110 <helperDoRunOneTestInCurrentProcess(void*)>, data=0x7ffcd0c59dc0)
at UtestPlatform.cpp:144
#16 0x000000000040e647 in UtestShell::runOneTest (this=<optimized out>, plugin=<optimized out>, result=...)
at CppUTest/Utest.cpp:184
#17 0x00000000004133e9 in TestRegistry::runAllTests (this=0x624180 <TestRegistry::getCurrentRegistry()::registry>, result=...)
at CppUTest/TestRegistry.cpp:63
#18 0x0000000000404a18 in CommandLineTestRunner::runAllTests (this=this@entry=0x7ffcd0c59f50)
at CppUTest/CommandLineTestRunner.cpp:122
#19 0x0000000000404b07 in CommandLineTestRunner::runAllTestsMain (this=this@entry=0x7ffcd0c59f50)
at CppUTest/CommandLineTestRunner.cpp:81
#20 0x0000000000404c71 in CommandLineTestRunner::RunAllTests (ac=1, av=0x7ffcd0c5a0c8)
at CppUTest/CommandLineTestRunner.cpp:51
#21 0x00007f204c801505 in __libc_start_main () from /lib64/libc.so.6
#22 0x0000000000402673 in _start () at iostream:74
Thread 3 (Thread 0x7f204a58a700 (LWP 61952)):
#0 0x00007f204ede035e in pthread_rwlock_wrlock () from /lib64/libpthread.so.0
#1 0x00007f204e8b8883 in celix_serviceRegistry_addServiceListener (registry=0x147fadc, bundle=0x80, stringFilter=0x7f2040000f20 "\240\327H\001", listener=0xffffffffffffffff)
at celix-master/libs/framework/src/service_registry.c:1122
#2 0x00007f204e8aa1e2 in bundleContext_addServiceListener (context=0x147fadc, listener=0x80, filter=0x0)
at celix-master/libs/framework/src/bundle_context.c:327
#3 0x00007f204e8b9cec in serviceTracker_open (tracker=0x7f2040000b20) at celix-master/libs/framework/src/service_tracker.c:213
#4 0x00007f204e8ba3e9 in celix_serviceTracker_createWithOptions (ctx=0x147fadc, opts=0x80)
at celix-master/libs/framework/src/service_tracker.c:765
#5 0x00007f204e8aaba7 in celix_bundleContext_useServiceWithOptions (ctx=0x4, opts=0x80)
at celix-master/libs/framework/src/bundle_context.c:773
#6 0x00007f204e8aaf11 in celix_bundleContext_findServiceWithOptions (ctx=0x4, opts=0x0)
at celix-master/libs/framework/src/bundle_context.c:872
#7 0x00007f2049b8552e in ?? ()
#8 0x0000000000000000 in ?? ()