start processing processing event 0 particle 0 has daughters: 2 3 4 5 and parents: The const particle still has the same relations: daughters: 2 3 4 5 and parents: particle 1 has daughters: 2 3 4 5 and parents: The const particle still has the same relations: daughters: 2 3 4 5 and parents: particle 2 has daughters: 6 7 8 9 and parents: 0 1 The const particle still has the same relations: daughters: 6 7 8 9 and parents: 0 1 particle 3 has daughters: 6 7 8 9 and parents: 0 1 The const particle still has the same relations: daughters: 6 7 8 9 and parents: 0 1 particle 4 has daughters: and parents: 0 1 The const particle still has the same relations: daughters: and parents: 0 1 particle 5 has daughters: and parents: 0 1 The const particle still has the same relations: daughters: and parents: 0 1 particle 6 has daughters: and parents: 2 3 The const particle still has the same relations: daughters: and parents: 2 3 particle 7 has daughters: and parents: 2 3 The const particle still has the same relations: daughters: and parents: 2 3 particle 8 has daughters: and parents: 2 3 The const particle still has the same relations: daughters: and parents: 2 3 particle 9 has daughters: and parents: 2 3 ================================================================= ==1270230==ERROR: AddressSanitizer: heap-use-after-free on address 0x6060000ce2a8 at pc 0x7f049f083261 bp 0x7ffdbdeb3970 sp 0x7ffdbdeb3960 READ of size 4 at 0x6060000ce2a8 thread T0 #0 0x7f049f083260 in podio::ObjBase::release() ../include/podio/ObjBase.h:25 #1 0x7f049f083260 in ConstExampleCluster::~ConstExampleCluster() ../tests/src/ExampleClusterConst.cc:43 #2 0x7f049f0fd430 in ExampleWithOneRelationObj::~ExampleWithOneRelationObj() ../tests/src/ExampleWithOneRelationObj.cc:28 #3 0x7f049f0fd475 in ExampleWithOneRelationObj::~ExampleWithOneRelationObj() ../tests/src/ExampleWithOneRelationObj.cc:29 #4 0x7f049f0f3e89 in ExampleWithOneRelationCollection::clear() ../tests/src/ExampleWithOneRelationCollection.cc:60 #5 0x7f049f01489d in podio::EventStore::clearCollections() ../src/EventStore.cc:123 #6 0x55a79f0c42f7 in void write(podio::EventStore&, podio::ROOTWriter&) ../tests/write_test.h:260 #7 0x55a79f0bc864 in main ../tests/write.cpp:8 #8 0x7f049ec3b0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #9 0x55a79f0bcb3d in _start (../build/tests/write+0x6b3d) 0x6060000ce2a8 is located 8 bytes inside of 64-byte region [0x6060000ce2a0,0x6060000ce2e0) freed by thread T0 here: #0 0x7f049f26b025 in operator delete(void*, unsigned long) (/lib/x86_64-linux-gnu/libasan.so.5+0x111025) #1 0x7f049f075e99 in ExampleClusterCollection::clear() ../tests/src/ExampleClusterCollection.cc:85 #2 0x7f049f01489d in podio::EventStore::clearCollections() ../src/EventStore.cc:123 #3 0x55a79f0c42f7 in void write(podio::EventStore&, podio::ROOTWriter&) ../tests/write_test.h:260 #4 0x55a79f0bc864 in main ../tests/write.cpp:8 #5 0x7f049ec3b0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) previously allocated by thread T0 here: #0 0x7f049f269947 in operator new(unsigned long) (/lib/x86_64-linux-gnu/libasan.so.5+0x10f947) #1 0x7f049f071b28 in ExampleCluster::ExampleCluster() ../tests/src/ExampleCluster.cc:15 #2 0x55a79f0c3139 in void write(podio::EventStore&, podio::ROOTWriter&) ../tests/write_test.h:167 #3 0x55a79f0bc864 in main ../tests/write.cpp:8 #4 0x7f049ec3b0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) SUMMARY: AddressSanitizer: heap-use-after-free ../include/podio/ObjBase.h:25 in podio::ObjBase::release() Shadow bytes around the buggy address: 0x0c0c80011c00: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 0x0c0c80011c10: 00 00 00 00 fa fa fa fa fd fd fd fd fd fd fd fd 0x0c0c80011c20: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa 0x0c0c80011c30: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd 0x0c0c80011c40: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fd =>0x0c0c80011c50: fa fa fa fa fd[fd]fd fd fd fd fd fd fa fa fa fa 0x0c0c80011c60: fd fd fd fd fd fd fd fa fa fa fa fa fd fd fd fd 0x0c0c80011c70: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fa 0x0c0c80011c80: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa 0x0c0c80011c90: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 0x0c0c80011ca0: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 00 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 ==1270230==ABORTING