celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [celix] Oipo commented on issue #216: libs/framework/gtest/test_framework broken
Date Tue, 05 May 2020 09:58:05 GMT

Oipo commented on issue #216:
URL: https://github.com/apache/celix/issues/216#issuecomment-623963585


   Also gives a thread sanitizer warning, don't know yet if this is because of a wrong test
or not:
   ```
   ==================
   WARNING: ThreadSanitizer: data race (pid=34174)
     Write of size 8 at 0x7b0c00000788 by main thread (mutexes: write M29690370182873360,
write M34193969810243856, write M37853144507482384, write M41512319204720912, write M45452968878670096,
write M48549193622487552, write M52771318273147392, write M56430492970385920, write M60089667667624448,
write M63748842364862976, write M67408017062101504, write M71067191759340032, write M74726366456578560,
write M78385541153817088, write M285):
       #0 arrayList_add /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:187
(libcelix_utils.so.2+0x92b9)
       #1 fw_addBundleListener /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:1490
(libcelix_framework.so.2+0x29f20)
       #2 celix_bundleContext_trackBundlesWithOptions /home/oipo-unencrypted/Programming/celix/libs/framework/src/bundle_context.c:567
(libcelix_framework.so.2+0x2055a)
       #3 celix_bundleContext_trackBundles /home/oipo-unencrypted/Programming/celix/libs/framework/src/bundle_context.c:597
(libcelix_framework.so.2+0x2078b)
       #4 CelixBundleContextBundlesTests_trackBundlesTest_Test::TestBody() /home/oipo-unencrypted/Programming/celix/libs/framework/gtest/src/bundle_context_bundles_tests.cpp:309
(test_framework+0x4c6d7)
       #5 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*,
void (testing::Test::*)(), char const*) <null> (test_framework+0xa59a9)
       #6 main /home/oipo-unencrypted/Programming/celix/libs/framework/gtest/src/run_tests.cpp:24
(test_framework+0x410d0)
   
     Previous read of size 8 at 0x7b0c00000788 by thread T12:
       #0 arrayList_size /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:104
(libcelix_utils.so.2+0x8cd8)
       #1 fw_eventDispatcher /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:2003
(libcelix_framework.so.2+0x2bb6e)
       #2 <null> <null> (libtsan.so.0+0x2b3c6)
   
     Location is heap block of size 48 at 0x7b0c00000780 allocated by main thread:
       #0 calloc <null> (libtsan.so.0+0x2cdbd)
       #1 celix_arrayList_createWithEquals /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:365
(libcelix_utils.so.2+0xa0f6)
       #2 celix_arrayList_create /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:361
(libcelix_utils.so.2+0xa0b8)
       #3 arrayList_createWithEquals /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:45
(libcelix_utils.so.2+0x8843)
       #4 arrayList_create /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:41
(libcelix_utils.so.2+0x8808)
       #5 fw_init /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:404
(libcelix_framework.so.2+0x2521e)
       #6 framework_start /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:527
(libcelix_framework.so.2+0x25d9d)
       #7 celix_frameworkFactory_createFramework /home/oipo-unencrypted/Programming/celix/libs/framework/src/celix_framework_factory.c:33
(libcelix_framework.so.2+0x4845d)
       #8 CelixBundleContextBundlesTests::CelixBundleContextBundlesTests() <null> (test_framework+0x51b3e)
       #9 CelixBundleContextBundlesTests_trackBundlesTest_Test::CelixBundleContextBundlesTests_trackBundlesTest_Test()
/home/oipo-unencrypted/Programming/celix/libs/framework/gtest/src/bundle_context_bundles_tests.cpp:284
(test_framework+0x522a8)
       #10 testing::internal::TestFactoryImpl<CelixBundleContextBundlesTests_trackBundlesTest_Test>::CreateTest()
<null> (test_framework+0x56abb)
       #11 testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase,
testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(),
char const*) <null> (test_framework+0xa5b59)
       #12 main /home/oipo-unencrypted/Programming/celix/libs/framework/gtest/src/run_tests.cpp:24
(test_framework+0x410d0)
   
     Mutex M29690370182873360 is already destroyed.
   
     Mutex M34193969810243856 is already destroyed.
   
     Mutex M37853144507482384 is already destroyed.
   
     Mutex M41512319204720912 is already destroyed.
   
     Mutex M45452968878670096 is already destroyed.
   
     Mutex M48549193622487552 is already destroyed.
   
     Mutex M52771318273147392 is already destroyed.
   
     Mutex M56430492970385920 is already destroyed.
   
     Mutex M60089667667624448 is already destroyed.
   
     Mutex M63748842364862976 is already destroyed.
   
     Mutex M67408017062101504 is already destroyed.
   
     Mutex M71067191759340032 is already destroyed.
   
     Mutex M74726366456578560 is already destroyed.
   
     Mutex M78385541153817088 is already destroyed.
   
     Mutex M285 (0x7b4c00000210) created at:
       #0 pthread_mutex_init <null> (libtsan.so.0+0x2e561)
       #1 celixThreadMutex_create /home/oipo-unencrypted/Programming/celix/libs/utils/src/celix_threads.c:102
(libcelix_utils.so.2+0x1020e)
       #2 framework_create /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:251
(libcelix_framework.so.2+0x244f5)
       #3 celix_frameworkFactory_createFramework /home/oipo-unencrypted/Programming/celix/libs/framework/src/celix_framework_factory.c:30
(libcelix_framework.so.2+0x48430)
       #4 CelixBundleContextBundlesTests::CelixBundleContextBundlesTests() <null> (test_framework+0x51b3e)
       #5 CelixBundleContextBundlesTests_trackBundlesTest_Test::CelixBundleContextBundlesTests_trackBundlesTest_Test()
/home/oipo-unencrypted/Programming/celix/libs/framework/gtest/src/bundle_context_bundles_tests.cpp:284
(test_framework+0x522a8)
       #6 testing::internal::TestFactoryImpl<CelixBundleContextBundlesTests_trackBundlesTest_Test>::CreateTest()
<null> (test_framework+0x56abb)
       #7 testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase,
testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(),
char const*) <null> (test_framework+0xa5b59)
       #8 main /home/oipo-unencrypted/Programming/celix/libs/framework/gtest/src/run_tests.cpp:24
(test_framework+0x410d0)
   
     Thread T12 (tid=34204, running) created by main thread at:
       #0 pthread_create <null> (libtsan.so.0+0x2dc82)
       #1 celixThread_create /home/oipo-unencrypted/Programming/celix/libs/utils/src/celix_threads.c:37
(libcelix_utils.so.2+0xff3d)
       #2 fw_init /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:407
(libcelix_framework.so.2+0x252b4)
       #3 framework_start /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:527
(libcelix_framework.so.2+0x25d9d)
       #4 celix_frameworkFactory_createFramework /home/oipo-unencrypted/Programming/celix/libs/framework/src/celix_framework_factory.c:33
(libcelix_framework.so.2+0x4845d)
       #5 CelixBundleContextBundlesTests::CelixBundleContextBundlesTests() <null> (test_framework+0x51b3e)
       #6 CelixBundleContextBundlesTests_trackBundlesTest_Test::CelixBundleContextBundlesTests_trackBundlesTest_Test()
/home/oipo-unencrypted/Programming/celix/libs/framework/gtest/src/bundle_context_bundles_tests.cpp:284
(test_framework+0x522a8)
       #7 testing::internal::TestFactoryImpl<CelixBundleContextBundlesTests_trackBundlesTest_Test>::CreateTest()
<null> (test_framework+0x56abb)
       #8 testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase,
testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(),
char const*) <null> (test_framework+0xa5b59)
       #9 main /home/oipo-unencrypted/Programming/celix/libs/framework/gtest/src/run_tests.cpp:24
(test_framework+0x410d0)
   
   SUMMARY: ThreadSanitizer: data race /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:187
in arrayList_add
   ==================
   ```


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



Mime
View raw message