Skip to content

Instantly share code, notes, and snippets.

@dscharrer
Created February 23, 2019 10:54
Show Gist options
  • Save dscharrer/d3620c0411a9e471e3a533498cae2559 to your computer and use it in GitHub Desktop.
Save dscharrer/d3620c0411a9e471e3a533498cae2559 to your computer and use it in GitHub Desktop.
==28554==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x6080000001a0 in thread T0:
object passed to delete has wrong type:
size of the allocated type: 96 bytes;
size of the deallocated type: 64 bytes.
[ 24%] Built target arxunpak
[ 24%] Building CXX object CMakeFiles/arxsavetool.dir/tools/savetool/SaveTool.cpp.o
#0 0x7fbab53252f5 in operator delete(void*, unsigned long) (/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libasan.so.5+0x1752f5)
#1 0x7fbab4f9d571 in CppUnit::TestSuite::deleteContents() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/src/cppunit/TestSuite.cpp:29
#2 0x7fbab4f9d5a6 in CppUnit::TestSuite::~TestSuite() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/src/cppunit/TestSuite.cpp:19
#3 0x7fbab4f9d5c8 in CppUnit::TestSuite::~TestSuite() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/src/cppunit/TestSuite.cpp:20
#4 0x7fbab4f9d571 in CppUnit::TestSuite::deleteContents() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/src/cppunit/TestSuite.cpp:29
#5 0x7fbab4f9d5a6 in CppUnit::TestSuite::~TestSuite() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/src/cppunit/TestSuite.cpp:19
#6 0x7fbab4f9d246 in CppUnit::TestRunner::WrappingSuite::~WrappingSuite() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/include/cppunit/TestRunner.h:100
#7 0x7fbab4f9d246 in CppUnit::TestRunner::WrappingSuite::~WrappingSuite() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/include/cppunit/TestRunner.h:100
#8 0x562ccf9acb23 in main (/home/dscharrer/pro/arx/build/test/arxtest+0x4b0b23)
#9 0x7fbab3eac4cd in __libc_start_main ../csu/libc-start.c:308
#10 0x562ccf9b1419 in _start (/home/dscharrer/pro/arx/build/test/arxtest+0x4b5419)
0x6080000001a0 is located 0 bytes inside of 96-byte region [0x6080000001a0,0x608000000200)
allocated by thread T0 here:
#0 0x7fbab53232b4 in operator new(unsigned long) (/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libasan.so.5+0x1732b4)
#1 0x562ccfaca82b in CppUnit::TestSuiteFactory<ColorTest>::makeTest() (/home/dscharrer/pro/arx/build/test/arxtest+0x5ce82b)
SUMMARY: AddressSanitizer: new-delete-type-mismatch (/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libasan.so.5+0x1752f5) in operator delete(void*, unsigned long)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment