You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2020/04/14 07:54:05 UTC
[GitHub] [celix] Oipo opened a new issue #191: Aggregated pubsub issues
Oipo opened a new issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191
Leaks:
```
==59785==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 32 byte(s) in 2 object(s) allocated from:
#0 0x7c2b18fa8ce6 in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dce6)
#1 0x7c2b12e94040 in pubsubInterceptorsHandler_addInterceptor /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_spi/src/pubsub_interceptors_handler.c:97
#2 0x7c2b18d33ec7 in serviceTracker_invokeAddService /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_tracker.c:549
#3 0x7c2b18d3300c in serviceTracker_track /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_tracker.c:489
#4 0x7c2b18d3201c in serviceTracker_serviceChanged /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_tracker.c:413
#5 0x7c2b18d2c125 in celix_serviceRegistry_serviceChanged /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_registry.c:1180
#6 0x7c2b18d22ff7 in serviceRegistry_registerServiceInternal /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_registry.c:244
#7 0x7c2b18d22279 in serviceRegistry_registerService /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_registry.c:201
#8 0x7c2b18cfd45e in fw_registerService /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:1377
#9 0x7c2b18ce24e7 in bundleContext_registerService /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle_context.c:168
#10 0x7c2b18ce51ba in celix_bundleContext_registerServiceWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle_context.c:468
#11 0x7c2b13024faf in interceptor_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/examples/pubsub/interceptors/src/ps_interceptor_activator.c:79
#12 0x7c2b13025385 in celix_bundleActivator_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/examples/pubsub/interceptors/src/ps_interceptor_activator.c:94
#13 0x7c2b18cf8e29 in fw_startBundle /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:884
#14 0x7c2b18cd3459 in bundle_startWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle.c:267
#15 0x7c2b18cf6097 in framework_autoStartConfiguredBundlesForList /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:603
#16 0x7c2b18cf5ba1 in framework_autoStartConfiguredBundles /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:570
#17 0x7c2b18cf54ea in framework_start /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:549
#18 0x7c2b18d4d31a in celixLauncher_launchWithProperties /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:172
#19 0x7c2b18d4d279 in celixLauncher_launchWithConfigAndProps /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:157
#20 0x7c2b18d4cff9 in celixLauncher_launchAndWaitForShutdown /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:113
#21 0x58327ced622b in main /home/oipo-unencrypted/Programming/celix-apache/build/celix/gen/containers/pubsub_publisher_zmq/main.c:19
#22 0x7c2b17cd01e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2)
Direct leak of 32 byte(s) in 2 object(s) allocated from:
#0 0x7c2b18fa8ce6 in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dce6)
#1 0x7c2b12e94040 in pubsubInterceptorsHandler_addInterceptor /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_spi/src/pubsub_interceptors_handler.c:97
#2 0x7c2b18d33ec7 in serviceTracker_invokeAddService /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_tracker.c:549
#3 0x7c2b18d3300c in serviceTracker_track /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_tracker.c:489
#4 0x7c2b18d3201c in serviceTracker_serviceChanged /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_tracker.c:413
#5 0x7c2b18d2c125 in celix_serviceRegistry_serviceChanged /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_registry.c:1180
#6 0x7c2b18d22ff7 in serviceRegistry_registerServiceInternal /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_registry.c:244
#7 0x7c2b18d22279 in serviceRegistry_registerService /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/service_registry.c:201
#8 0x7c2b18cfd45e in fw_registerService /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:1377
#9 0x7c2b18ce24e7 in bundleContext_registerService /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle_context.c:168
#10 0x7c2b18ce51ba in celix_bundleContext_registerServiceWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle_context.c:468
#11 0x7c2b13024a1d in interceptor_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/examples/pubsub/interceptors/src/ps_interceptor_activator.c:56
#12 0x7c2b13025385 in celix_bundleActivator_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/examples/pubsub/interceptors/src/ps_interceptor_activator.c:94
#13 0x7c2b18cf8e29 in fw_startBundle /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:884
#14 0x7c2b18cd3459 in bundle_startWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle.c:267
#15 0x7c2b18cf6097 in framework_autoStartConfiguredBundlesForList /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:603
#16 0x7c2b18cf5ba1 in framework_autoStartConfiguredBundles /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:570
#17 0x7c2b18cf54ea in framework_start /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:549
#18 0x7c2b18d4d31a in celixLauncher_launchWithProperties /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:172
#19 0x7c2b18d4d279 in celixLauncher_launchWithConfigAndProps /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:157
#20 0x7c2b18d4cff9 in celixLauncher_launchAndWaitForShutdown /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:113
#21 0x58327ced622b in main /home/oipo-unencrypted/Programming/celix-apache/build/celix/gen/containers/pubsub_publisher_zmq/main.c:19
#22 0x7c2b17cd01e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2)
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7c2b18fa8ce6 in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dce6)
#1 0x7c2b13024ab4 in interceptor_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/examples/pubsub/interceptors/src/ps_interceptor_activator.c:58
#2 0x7c2b13025385 in celix_bundleActivator_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/examples/pubsub/interceptors/src/ps_interceptor_activator.c:94
#3 0x7c2b18cf8e29 in fw_startBundle /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:884
#4 0x7c2b18cd3459 in bundle_startWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle.c:267
#5 0x7c2b18cf6097 in framework_autoStartConfiguredBundlesForList /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:603
#6 0x7c2b18cf5ba1 in framework_autoStartConfiguredBundles /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:570
#7 0x7c2b18cf54ea in framework_start /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:549
#8 0x7c2b18d4d31a in celixLauncher_launchWithProperties /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:172
#9 0x7c2b18d4d279 in celixLauncher_launchWithConfigAndProps /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:157
#10 0x7c2b18d4cff9 in celixLauncher_launchAndWaitForShutdown /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:113
#11 0x58327ced622b in main /home/oipo-unencrypted/Programming/celix-apache/build/celix/gen/containers/pubsub_publisher_zmq/main.c:19
#12 0x7c2b17cd01e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2)
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7c2b18fa8ce6 in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dce6)
#1 0x7c2b1302451b in interceptor_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/examples/pubsub/interceptors/src/ps_interceptor_activator.c:35
#2 0x7c2b13025385 in celix_bundleActivator_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/examples/pubsub/interceptors/src/ps_interceptor_activator.c:94
#3 0x7c2b18cf8e29 in fw_startBundle /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:884
#4 0x7c2b18cd3459 in bundle_startWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle.c:267
#5 0x7c2b18cf6097 in framework_autoStartConfiguredBundlesForList /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:603
#6 0x7c2b18cf5ba1 in framework_autoStartConfiguredBundles /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:570
#7 0x7c2b18cf54ea in framework_start /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:549
#8 0x7c2b18d4d31a in celixLauncher_launchWithProperties /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:172
#9 0x7c2b18d4d279 in celixLauncher_launchWithConfigAndProps /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:157
#10 0x7c2b18d4cff9 in celixLauncher_launchAndWaitForShutdown /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:113
#11 0x58327ced622b in main /home/oipo-unencrypted/Programming/celix-apache/build/celix/gen/containers/pubsub_publisher_zmq/main.c:19
#12 0x7c2b17cd01e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2)
SUMMARY: AddressSanitizer: 144 byte(s) leaked in 6 allocation(s).
```
----------------------------------------------------------------
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
[GitHub] [celix] mdelangthales commented on issue #191: Aggregated pubsub
issues
Posted by GitBox <gi...@apache.org>.
mdelangthales commented on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-613292989
Huge allocation error:
```
==50094==WARNING: AddressSanitizer failed to allocate 0x66342d6162363455 bytes
==50094==AddressSanitizer's allocator is terminating the process instead of returning 0
==50094==If you don't like this behavior set allocator_may_return_null=1
==50094==AddressSanitizer CHECK failed: ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.cc:145 "((0)) != (0)" (0x0, 0x0)
#0 0x7f0a6ca0dead in AsanCheckFailed ../../../../libsanitizer/asan/asan_rtl.cc:65
#1 0x7f0a6ca13b13 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) ../../../../libsanitizer/sanitizer_common/sanitizer_common.cc:157
#2 0x7f0a6ca11cd6 in __sanitizer::ReportAllocatorCannotReturnNull() ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.cc:145
#3 0x7f0a6c968f44 in __sanitizer::CombinedAllocator<__sanitizer::SizeClassAllocator64<105553116266496ul, 4398046511104ul, 0ul, __sanitizer::SizeClassMap<17ul, 128ul, 16ul>, __asan::AsanMapUnmapCallback>, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator64<105553116266496ul, 4398046511104ul, 0ul, __sanitizer::SizeClassMap<17ul, 128ul, 16ul>, __asan::AsanMapUnmapCallback> >, __sanitizer::LargeMmapAllocator<__asan::AsanMapUnmapCallback> >::ReturnNullOrDie() ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.h:1315
#4 0x7f0a6c968f44 in __asan::Allocator::Allocate(unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType, bool) ../../../../libsanitizer/asan/asan_allocator.cc:357
#5 0x7f0a6c968f44 in __asan::asan_malloc(unsigned long, __sanitizer::BufferedStackTrace*) ../../../../libsanitizer/asan/asan_allocator.cc:716
#6 0x7f0a6ca05b05 in __interceptor_malloc ../../../../libsanitizer/asan/asan_malloc_linux.cc:63
#7 0x7f0a6ab5a314 in zmq::msg_t::init_size(unsigned long) /has/fs01/jenkins/workspace/build_tooling/lib_builder/zeromq/lib_builder/zeromq/zeromq-4.3.1/src/msg.cpp:105
#8 0x7f0a6a8c522b in zframe_new czmq-4.2.0/src/zframe.c:59
#9 0x7f0a6a8cc006 in zmsg_addmem czmq-4.2.0/src/zmsg.c:331
#10 0x7f0a60c650cf in psa_zmq_topicPublicationSend bundles/pubsub/pubsub_admin_zmq/src/pubsub_zmq_topic_sender.c:623
...
#18 0x348f807aa0 in start_thread (/lib64/libpthread.so.0+0x348f807aa0)
#19 0x348ece8c4c in __clone (/lib64/libc.so.6+0x348ece8c4c)
```
----------------------------------------------------------------
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
[GitHub] [celix] Oipo edited a comment on issue #191: Aggregated pubsub
issues
Posted by GitBox <gi...@apache.org>.
Oipo edited a comment on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-613284772
Found a heap after use error with the pubsub_zmq_zerocopy_test:
```
=================================================================
==46261==ERROR: AddressSanitizer: heap-use-after-free on address 0x602000012410 at pc 0x7e29d5522480 bp 0x7e29cc97fd70 sp 0x7e29cc97f518
READ of size 12 at 0x602000012410 thread T9 (ZMQbg/IO/0)
#0 0x7e29d552247f (/lib/x86_64-linux-gnu/libasan.so.5+0x9b47f)
#1 0x7e29cfdaee78 (/lib/x86_64-linux-gnu/libzmq.so.5+0x74e78)
#2 0x7e29cfd9f366 (/lib/x86_64-linux-gnu/libzmq.so.5+0x65366)
#3 0x7e29cfd695eb (/lib/x86_64-linux-gnu/libzmq.so.5+0x2f5eb)
#4 0x7e29cfd6589d (/lib/x86_64-linux-gnu/libzmq.so.5+0x2b89d)
#5 0x7e29cfda7e0e (/lib/x86_64-linux-gnu/libzmq.so.5+0x6de0e)
#6 0x7e29d424c668 in start_thread /build/glibc-t7JzpG/glibc-2.30/nptl/pthread_create.c:479
#7 0x7e29d4174322 in clone (/lib/x86_64-linux-gnu/libc.so.6+0x122322)
0x602000012410 is located 0 bytes inside of 12-byte region [0x602000012410,0x60200001241c)
freed by thread T4 here:
#0 0x7e29d55946ef in __interceptor_free (/lib/x86_64-linux-gnu/libasan.so.5+0x10d6ef)
#1 0x7e29d028ea2a in pubsubMsgSerializer_freeSerializeMsg /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_serializer_json/src/pubsub_serializer_impl.c:216
#2 0x7e29cfb7f64c in psa_zmq_topicPublicationSend /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_admin_zmq/src/pubsub_zmq_topic_sender.c:642
#3 0x7e29cfb0c5fd in sut_sendThread /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/test/test/sut_activator.c:96
#4 0x7e29d424c668 in start_thread /build/glibc-t7JzpG/glibc-2.30/nptl/pthread_create.c:479
previously allocated by thread T4 here:
#0 0x7e29d5594ae8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dae8)
#1 0x7e29d50dab14 (/lib/x86_64-linux-gnu/libjansson.so.4+0x5b14)
Thread T9 (ZMQbg/IO/0) created by T2 here:
#0 0x7e29d54c1805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
#1 0x7e29cfda79ac (/lib/x86_64-linux-gnu/libzmq.so.5+0x6d9ac)
Thread T2 created by T0 here:
#0 0x7e29d54c1805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
#1 0x7e29d504f573 in celixThread_create /home/oipo-unencrypted/Programming/celix-apache/libs/utils/src/celix_threads.c:37
#2 0x7e29d0096df3 in pubsub_topologyManager_create /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_topology_manager/src/pubsub_topology_manager.c:90
#3 0x7e29d00948b7 in pstm_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_topology_manager/src/pstm_activator.c:68
#4 0x7e29d0096135 in celix_bundleActivator_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_topology_manager/src/pstm_activator.c:170
#5 0x7e29d52e4e29 in fw_startBundle /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:884
#6 0x7e29d52bf459 in bundle_startWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle.c:267
#7 0x7e29d52e2097 in framework_autoStartConfiguredBundlesForList /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:603
#8 0x7e29d52e1ba1 in framework_autoStartConfiguredBundles /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:570
#9 0x7e29d52e14ea in framework_start /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:549
#10 0x7e29d533931a in celixLauncher_launchWithProperties /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:172
#11 0x7e29d5339279 in celixLauncher_launchWithConfigAndProps /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:157
#12 0x7e29d53391e3 in celixLauncher_launch /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:141
#13 0x58825948dead in TEST_GROUP_CppUTestGroupPUBSUB_INT_GROUP::setup() /home/oipo-unencrypted/Programming/celix-apache/build/celix/gen/containers/pubsub_zmq_zerocopy_tests/test_runner.cc:37
#14 0x58825949cfd1 in PlatformSpecificSetJmpImplementation (/home/oipo-unencrypted/Programming/celix-apache/build/bundles/pubsub/test/pubsub_zmq_zerocopy_tests/pubsub_zmq_zerocopy_tests+0x2cfd1)
#15 0x6030000010bf (<unknown module>)
Thread T4 created by T0 here:
#0 0x7e29d54c1805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
#1 0x7e29cfb0b8d5 in bnd_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/test/test/sut_activator.c:54
#2 0x7e29cfb0bd03 in celix_bundleActivator_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/test/test/sut_activator.c:70
#3 0x7e29d52e4e29 in fw_startBundle /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:884
#4 0x7e29d52bf459 in bundle_startWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle.c:267
#5 0x7e29d52e2097 in framework_autoStartConfiguredBundlesForList /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:603
#6 0x7e29d52e1ba1 in framework_autoStartConfiguredBundles /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:570
#7 0x7e29d52e14ea in framework_start /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:549
#8 0x7e29d533931a in celixLauncher_launchWithProperties /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:172
#9 0x7e29d5339279 in celixLauncher_launchWithConfigAndProps /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:157
#10 0x7e29d53391e3 in celixLauncher_launch /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:141
#11 0x58825948dead in TEST_GROUP_CppUTestGroupPUBSUB_INT_GROUP::setup() /home/oipo-unencrypted/Programming/celix-apache/build/celix/gen/containers/pubsub_zmq_zerocopy_tests/test_runner.cc:37
#12 0x58825949cfd1 in PlatformSpecificSetJmpImplementation (/home/oipo-unencrypted/Programming/celix-apache/build/bundles/pubsub/test/pubsub_zmq_zerocopy_tests/pubsub_zmq_zerocopy_tests+0x2cfd1)
#13 0x6030000010bf (<unknown module>)
SUMMARY: AddressSanitizer: heap-use-after-free (/lib/x86_64-linux-gnu/libasan.so.5+0x9b47f)
Shadow bytes around the buggy address:
0x0c047fffa430: fa fa fd fd fa fa fd fd fa fa fd fa fa fa fd fd
0x0c047fffa440: fa fa fd fd fa fa fd fa fa fa fd fd fa fa fd fd
0x0c047fffa450: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fa
0x0c047fffa460: fa fa fd fd fa fa fd fd fa fa fd fa fa fa fd fd
0x0c047fffa470: fa fa fd fd fa fa fd fa fa fa fd fd fa fa fd fd
=>0x0c047fffa480: fa fa[fd]fd fa fa 00 fa fa fa 00 fa fa fa fd fd
0x0c047fffa490: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fffa4a0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fffa4b0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fa fa
0x0c047fffa4c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fffa4d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==46261==ABORTING
```
----------------------------------------------------------------
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
[GitHub] [celix] Oipo closed issue #191: Aggregated pubsub issues
Posted by GitBox <gi...@apache.org>.
Oipo closed issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191
----------------------------------------------------------------
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
[GitHub] [celix] abroekhuis commented on issue #191: Aggregated pubsub issues
Posted by GitBox <gi...@apache.org>.
abroekhuis commented on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-613291209
ps_interceptor_activator.c:58 -> Not cleaned up properly as well...
Simple/stupid errors, but also really annoying that LeakSanitizer does not work with MacOS CLang :( (https://stackoverflow.com/questions/53456304/mac-os-leaks-sanitizer)
----------------------------------------------------------------
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
[GitHub] [celix] abroekhuis edited a comment on issue #191: Aggregated
pubsub issues
Posted by GitBox <gi...@apache.org>.
abroekhuis edited a comment on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-613291209
ps_interceptor_activator.c:* -> Not cleaned up properly as well...
Simple/stupid errors, but also really annoying that LeakSanitizer does not work with MacOS CLang :( (https://stackoverflow.com/questions/53456304/mac-os-leaks-sanitizer)
----------------------------------------------------------------
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
[GitHub] [celix] abroekhuis commented on issue #191: Aggregated pubsub issues
Posted by GitBox <gi...@apache.org>.
abroekhuis commented on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-613291508
As for the zerocopy version, perhaps @pnoltes has some more info on how/why that should/shouldn't work. The tests where disabled on purpose.
----------------------------------------------------------------
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
[GitHub] [celix] Oipo commented on issue #191: Aggregated pubsub issues
Posted by GitBox <gi...@apache.org>.
Oipo commented on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-613284772
There's currently numerous issues with ZMQ in celix, I'm hijacking this comment for now. If desired, we can split it off to several issues.
Found a heap after use error with the pubsub_zmq_zerocopy_test:
```
=================================================================
==46261==ERROR: AddressSanitizer: heap-use-after-free on address 0x602000012410 at pc 0x7e29d5522480 bp 0x7e29cc97fd70 sp 0x7e29cc97f518
READ of size 12 at 0x602000012410 thread T9 (ZMQbg/IO/0)
#0 0x7e29d552247f (/lib/x86_64-linux-gnu/libasan.so.5+0x9b47f)
#1 0x7e29cfdaee78 (/lib/x86_64-linux-gnu/libzmq.so.5+0x74e78)
#2 0x7e29cfd9f366 (/lib/x86_64-linux-gnu/libzmq.so.5+0x65366)
#3 0x7e29cfd695eb (/lib/x86_64-linux-gnu/libzmq.so.5+0x2f5eb)
#4 0x7e29cfd6589d (/lib/x86_64-linux-gnu/libzmq.so.5+0x2b89d)
#5 0x7e29cfda7e0e (/lib/x86_64-linux-gnu/libzmq.so.5+0x6de0e)
#6 0x7e29d424c668 in start_thread /build/glibc-t7JzpG/glibc-2.30/nptl/pthread_create.c:479
#7 0x7e29d4174322 in clone (/lib/x86_64-linux-gnu/libc.so.6+0x122322)
0x602000012410 is located 0 bytes inside of 12-byte region [0x602000012410,0x60200001241c)
freed by thread T4 here:
#0 0x7e29d55946ef in __interceptor_free (/lib/x86_64-linux-gnu/libasan.so.5+0x10d6ef)
#1 0x7e29d028ea2a in pubsubMsgSerializer_freeSerializeMsg /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_serializer_json/src/pubsub_serializer_impl.c:216
#2 0x7e29cfb7f64c in psa_zmq_topicPublicationSend /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_admin_zmq/src/pubsub_zmq_topic_sender.c:642
#3 0x7e29cfb0c5fd in sut_sendThread /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/test/test/sut_activator.c:96
#4 0x7e29d424c668 in start_thread /build/glibc-t7JzpG/glibc-2.30/nptl/pthread_create.c:479
previously allocated by thread T4 here:
#0 0x7e29d5594ae8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dae8)
#1 0x7e29d50dab14 (/lib/x86_64-linux-gnu/libjansson.so.4+0x5b14)
Thread T9 (ZMQbg/IO/0) created by T2 here:
#0 0x7e29d54c1805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
#1 0x7e29cfda79ac (/lib/x86_64-linux-gnu/libzmq.so.5+0x6d9ac)
Thread T2 created by T0 here:
#0 0x7e29d54c1805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
#1 0x7e29d504f573 in celixThread_create /home/oipo-unencrypted/Programming/celix-apache/libs/utils/src/celix_threads.c:37
#2 0x7e29d0096df3 in pubsub_topologyManager_create /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_topology_manager/src/pubsub_topology_manager.c:90
#3 0x7e29d00948b7 in pstm_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_topology_manager/src/pstm_activator.c:68
#4 0x7e29d0096135 in celix_bundleActivator_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/pubsub_topology_manager/src/pstm_activator.c:170
#5 0x7e29d52e4e29 in fw_startBundle /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:884
#6 0x7e29d52bf459 in bundle_startWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle.c:267
#7 0x7e29d52e2097 in framework_autoStartConfiguredBundlesForList /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:603
#8 0x7e29d52e1ba1 in framework_autoStartConfiguredBundles /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:570
#9 0x7e29d52e14ea in framework_start /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:549
#10 0x7e29d533931a in celixLauncher_launchWithProperties /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:172
#11 0x7e29d5339279 in celixLauncher_launchWithConfigAndProps /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:157
#12 0x7e29d53391e3 in celixLauncher_launch /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:141
#13 0x58825948dead in TEST_GROUP_CppUTestGroupPUBSUB_INT_GROUP::setup() /home/oipo-unencrypted/Programming/celix-apache/build/celix/gen/containers/pubsub_zmq_zerocopy_tests/test_runner.cc:37
#14 0x58825949cfd1 in PlatformSpecificSetJmpImplementation (/home/oipo-unencrypted/Programming/celix-apache/build/bundles/pubsub/test/pubsub_zmq_zerocopy_tests/pubsub_zmq_zerocopy_tests+0x2cfd1)
#15 0x6030000010bf (<unknown module>)
Thread T4 created by T0 here:
#0 0x7e29d54c1805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
#1 0x7e29cfb0b8d5 in bnd_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/test/test/sut_activator.c:54
#2 0x7e29cfb0bd03 in celix_bundleActivator_start /home/oipo-unencrypted/Programming/celix-apache/bundles/pubsub/test/test/sut_activator.c:70
#3 0x7e29d52e4e29 in fw_startBundle /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:884
#4 0x7e29d52bf459 in bundle_startWithOptions /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/bundle.c:267
#5 0x7e29d52e2097 in framework_autoStartConfiguredBundlesForList /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:603
#6 0x7e29d52e1ba1 in framework_autoStartConfiguredBundles /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:570
#7 0x7e29d52e14ea in framework_start /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/framework.c:549
#8 0x7e29d533931a in celixLauncher_launchWithProperties /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:172
#9 0x7e29d5339279 in celixLauncher_launchWithConfigAndProps /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:157
#10 0x7e29d53391e3 in celixLauncher_launch /home/oipo-unencrypted/Programming/celix-apache/libs/framework/src/celix_launcher.c:141
#11 0x58825948dead in TEST_GROUP_CppUTestGroupPUBSUB_INT_GROUP::setup() /home/oipo-unencrypted/Programming/celix-apache/build/celix/gen/containers/pubsub_zmq_zerocopy_tests/test_runner.cc:37
#12 0x58825949cfd1 in PlatformSpecificSetJmpImplementation (/home/oipo-unencrypted/Programming/celix-apache/build/bundles/pubsub/test/pubsub_zmq_zerocopy_tests/pubsub_zmq_zerocopy_tests+0x2cfd1)
#13 0x6030000010bf (<unknown module>)
SUMMARY: AddressSanitizer: heap-use-after-free (/lib/x86_64-linux-gnu/libasan.so.5+0x9b47f)
Shadow bytes around the buggy address:
0x0c047fffa430: fa fa fd fd fa fa fd fd fa fa fd fa fa fa fd fd
0x0c047fffa440: fa fa fd fd fa fa fd fa fa fa fd fd fa fa fd fd
0x0c047fffa450: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fa
0x0c047fffa460: fa fa fd fd fa fa fd fd fa fa fd fa fa fa fd fd
0x0c047fffa470: fa fa fd fd fa fa fd fa fa fa fd fd fa fa fd fd
=>0x0c047fffa480: fa fa[fd]fd fa fa 00 fa fa fa 00 fa fa fa fd fd
0x0c047fffa490: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fffa4a0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fffa4b0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fa fa
0x0c047fffa4c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fffa4d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==46261==ABORTING
```
----------------------------------------------------------------
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
[GitHub] [celix] Oipo commented on issue #191: Aggregated pubsub issues
Posted by GitBox <gi...@apache.org>.
Oipo commented on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-614686263
Fixed in #199
----------------------------------------------------------------
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
[GitHub] [celix] abroekhuis commented on issue #191: Aggregated pubsub issues
Posted by GitBox <gi...@apache.org>.
abroekhuis commented on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-613289988
pubsub_interceptors_handler.c:97 -> entry is never free'd :(. Silly me...
----------------------------------------------------------------
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
[GitHub] [celix] mdelangthales edited a comment on issue #191: Aggregated
pubsub issues
Posted by GitBox <gi...@apache.org>.
mdelangthales edited a comment on issue #191: Aggregated pubsub issues
URL: https://github.com/apache/celix/issues/191#issuecomment-613292989
Huge allocation error:
```
==50094==WARNING: AddressSanitizer failed to allocate 0x66342d6162363455 bytes
==50094==AddressSanitizer's allocator is terminating the process instead of returning 0
==50094==If you don't like this behavior set allocator_may_return_null=1
==50094==AddressSanitizer CHECK failed: ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.cc:145 "((0)) != (0)" (0x0, 0x0)
#0 0x7f0a6ca0dead in AsanCheckFailed ../../../../libsanitizer/asan/asan_rtl.cc:65
#1 0x7f0a6ca13b13 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) ../../../../libsanitizer/sanitizer_common/sanitizer_common.cc:157
#2 0x7f0a6ca11cd6 in __sanitizer::ReportAllocatorCannotReturnNull() ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.cc:145
#3 0x7f0a6c968f44 in __sanitizer::CombinedAllocator<__sanitizer::SizeClassAllocator64<105553116266496ul, 4398046511104ul, 0ul, __sanitizer::SizeClassMap<17ul, 128ul, 16ul>, __asan::AsanMapUnmapCallback>, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator64<105553116266496ul, 4398046511104ul, 0ul, __sanitizer::SizeClassMap<17ul, 128ul, 16ul>, __asan::AsanMapUnmapCallback> >, __sanitizer::LargeMmapAllocator<__asan::AsanMapUnmapCallback> >::ReturnNullOrDie() ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.h:1315
#4 0x7f0a6c968f44 in __asan::Allocator::Allocate(unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType, bool) ../../../../libsanitizer/asan/asan_allocator.cc:357
#5 0x7f0a6c968f44 in __asan::asan_malloc(unsigned long, __sanitizer::BufferedStackTrace*) ../../../../libsanitizer/asan/asan_allocator.cc:716
#6 0x7f0a6ca05b05 in __interceptor_malloc ../../../../libsanitizer/asan/asan_malloc_linux.cc:63
#7 0x7f0a6ab5a314 in zmq::msg_t::init_size(unsigned long) zeromq-4.3.1/src/msg.cpp:105
#8 0x7f0a6a8c522b in zframe_new czmq-4.2.0/src/zframe.c:59
#9 0x7f0a6a8cc006 in zmsg_addmem czmq-4.2.0/src/zmsg.c:331
#10 0x7f0a60c650cf in psa_zmq_topicPublicationSend bundles/pubsub/pubsub_admin_zmq/src/pubsub_zmq_topic_sender.c:623
...
#18 0x348f807aa0 in start_thread (/lib64/libpthread.so.0+0x348f807aa0)
#19 0x348ece8c4c in __clone (/lib64/libc.so.6+0x348ece8c4c)
```
----------------------------------------------------------------
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