|
From: Christian P. <tr...@ge...> - 2005-07-22 01:54:09
|
Hi, The following is partly the output of my test code: =3D=3D23198=3D=3D Invalid read of size 8 =3D=3D23198=3D=3D at 0x140EEDB10743: (within /lib/ld-2.3.5.so) =3D=3D23198=3D=3D by 0x140EEDB06871: (within /lib/ld-2.3.5.so) =3D=3D23198=3D=3D by 0x140EF0E709CB: (within /lib/libc-2.3.5.so) =3D=3D23198=3D=3D by 0x140EEDB0B40F: (within /lib/ld-2.3.5.so) =3D=3D23198=3D=3D by 0x140EF0E71589: _dl_open (in /lib/libc-2.3.5.so) =3D=3D23198=3D=3D by 0x140EF02740B3: (within /lib/libdl-2.3.5.so) =3D=3D23198=3D=3D by 0x140EEDB0B40F: (within /lib/ld-2.3.5.so) =3D=3D23198=3D=3D by 0x140EF02745B1: (within /lib/libdl-2.3.5.so) =3D=3D23198=3D=3D by 0x140EF02740F1: dlopen (in /lib/libdl-2.3.5.so) =3D=3D23198=3D=3D by 0x140EEE899E67: System::Runtime::TLibrary::TLibrary= (System::TStringBase<char> const&, System::TStringBase<char> const&) (TLibr= ary.cpp:41) =3D=3D23198=3D=3D by 0x140EEE89AE4A: System::Runtime::TLibraryMgr::loadL= ibrary(System::TStringBase<char> const&) (TLibraryMgr.cpp:94) =3D=3D23198=3D=3D by 0x410931: main (yacsd.cpp:348) =3D=3D23198=3D=3D Address 0x140EF0FCE020 is 16 bytes inside a block of siz= e 22 alloc'd =3D=3D23198=3D=3D at 0x140EEDD1D3A0: operator new(unsigned long) (vg_rep= lace_malloc.c:168) =3D=3D23198=3D=3D by 0x140EEE3D243D: System::TStringRep<char>::create(un= signed) (String.cpp:82) =3D=3D23198=3D=3D by 0x140EEE3D1721: System::TStringBase<char>::TStringB= ase(char const*) (String.cpp:345) =3D=3D23198=3D=3D by 0x410924: main (yacsd.cpp:347) However, "Invalid read of size 8" and "Address XXXX is 16 bytes inside a bl= ock of size 22 alloc'd"=20 are two error messages I can't really bring together (nor really understand= alone); Do they belong together anyway? And, while trying to find out what exactly goes wrong in my code, I shall f= irst clarify those messages (especially the second one): The test application is a simple main() that just instanciates a C++ class = for library loading=20 and actually loads one - so, it's a two-liner. And I really can't find what= I am doing wrong there. The String class is really very heavily in use, but valgrind seems to compl= ain only when I am loading a library via TLibraryMgr.loadLibrary(); Does someone know what exactly valgrind here is complaining about? Thanks in advance, Christian Parpart. =2D-=20 03:41:58 up 120 days, 16:49, 0 users, load average: 4.15, 4.52, 4.30 |