From: Director De J. <dj...@gm...> - 2005-12-29 03:04:21
|
Hi! I=B4m a slight developer from spain... but I'm sure The Valgrind Proyect is a universal "key" achievement for the free (and not free!) developers community. I=B4m very happy with the tool. It=B4s simply amazing. Thanks! However I have a very terrible and strange trouble. Yes!. Terrible and stra= nge. Ok! I'm developing with gcc C++ and ImageMagick 6.2.5 libraries in Fedora Core 4 environment. (Valgrind 3.1.0 version)(Valgrind 2.4.1 version) A very simple program... ------------------------------------------------------ #include <Magick++.h> #include <iostream> using namespace std; using namespace Magick; int main(int argc,char **argv) { // Construct the image object. Seperating image construction from the // the read operation ensures that a failure to read the image file // doesn't render the image object useless. Image image; try { // Read a file into image object image.read( "Frame--0000.bmp" ); } catch( Exception &error_ ) { cout << "Caught exception: " << error_.what() << endl; return 1; } return 0; } --------------------------------------- I launch Valgrind memcheck with... valgrind --tool=3Dmemcheck -v --leak-check=3Dfull --log-file=3DTRAZA ./imagemagick-valgrind and I wait...and wait...and wait.... Valgrind is frozen, shocked, deadlocked? I don=B4t know. Ctrl+C and here is the log: ---------------------------------------------------------------------------= ------------- =3D=3D23892=3D=3D Memcheck, a memory error detector. =3D=3D23892=3D=3D Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward = et al. =3D=3D23892=3D=3D Using LibVEX rev 1471, a library for dynamic binary trans= lation. =3D=3D23892=3D=3D Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. =3D=3D23892=3D=3D Using valgrind-3.1.0, a dynamic binary instrumentation fr= amework. =3D=3D23892=3D=3D Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward = et al. =3D=3D23892=3D=3D =3D=3D23892=3D=3D My PID =3D 23892, parent PID =3D 2884. Prog and args are= : =3D=3D23892=3D=3D ./imagemagick-valgrind =3D=3D23892=3D=3D --23892-- --23892-- Command line --23892-- ./imagemagick-valgrind --23892-- Startup, with flags: --23892-- --tool=3Dmemcheck --23892-- -v --23892-- --leak-check=3Dfull --23892-- --log-file=3DTRAZAH --23892-- Contents of /proc/version: --23892-- Linux version 2.6.14-1.1653_FC4smp (bhc...@hs...) (gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)) #1 SMP Tue Dec 13 21:46:01 EST 2005 --23892-- Arch and subarch: X86, x86-sse2 --23892-- Valgrind library directory: /usr/local/lib/valgrind --23892-- Reading syms from /lib/ld-2.3.90.so (0xBE1000) --23892-- Reading syms from /home/baluarte/Projects/ImageMagick-Valgrind/src/imagemagick-valgrind (0x8048000) --23892-- Reading syms from /usr/local/lib/valgrind/x86-linux/memcheck (0xB0000000) --23892-- object doesn't have a dynamic symbol table --23892-- Reading suppressions file: /usr/local/lib/valgrind/default.supp --23892-- REDIR: 0xBF5CB0 (index) redirected to 0xB001B71E (vgPlain_x86_linux_REDIR_FOR_index) --23892-- Reading syms from /usr/local/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000) --23892-- Reading syms from /usr/local/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000) --23892-- Reading syms from /usr/local/lib/libMagick++.so.9.0.5 (0x4008000) --23892-- Reading syms from /usr/local/lib/libWand.so.9.0.5 (0x408B000) --23892-- Reading syms from /usr/local/lib/libMagick.so.9.0.5 (0x40BF000) --23892-- Reading syms from /lib/libdl-2.3.90.so (0xD53000) --23892-- Reading syms from /usr/lib/libtiff.so.3.7.1 (0x4446000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/lib/libfreetype.so.6.3.7 (0x1D7000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/lib/libjpeg.so.62.0.0 (0x384000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/lib/libpng12.so.0.1.2.8 (0x48C000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/X11R6/lib/libdpstk.so.1.0 (0x449B000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/X11R6/lib/libdps.so.1.0 (0xD93000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/X11R6/lib/libXext.so.6.4 (0xD82000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/X11R6/lib/libXt.so.6.0 (0x44A4000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/X11R6/lib/libSM.so.6.0 (0x379000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/X11R6/lib/libICE.so.6.3 (0x35D000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/X11R6/lib/libX11.so.6.2 (0x101000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/lib/libbz2.so.1.0.2 (0x44FA000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/lib/libxml2.so.2.6.20 (0x3EB2000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /usr/lib/libz.so.1.2.2.2 (0xD59000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /lib/libpthread-2.3.90.so (0xD6E000) --23892-- Reading syms from /usr/lib/libstdc++.so.6.0.7 (0x27C000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /lib/libm-2.3.90.so (0xD2C000) --23892-- Reading syms from /lib/libgcc_s-4.0.2-20051126.so.1 (0x270000) --23892-- object doesn't have a symbol table --23892-- Reading syms from /lib/libc-2.3.90.so (0xBFE000) --23892-- REDIR: 0xBE17F0 (_dl_sysinfo_int80) redirected to 0xB001B71B (???= ) --23892-- REDIR: 0xC6A310 (memset) redirected to 0x4006128 (memset) --23892-- REDIR: 0xC6A760 (memcpy) redirected to 0x40061E0 (memcpy) --23892-- REDIR: 0xC694B0 (rindex) redirected to 0x4005CC0 (rindex) --23892-- REDIR: 0xC63C5D (calloc) redirected to 0x40056AA (calloc) --23892-- REDIR: 0x327600 (operator new(unsigned)) redirected to 0x400476A (operator new(unsigned)) --23892-- REDIR: 0xC63F53 (malloc) redirected to 0x40043CF (malloc) --23892-- REDIR: 0xC61F29 (free) redirected to 0x4004EEE (free) --23892-- REDIR: 0xC68C20 (strcpy) redirected to 0x4006444 (strcpy) --23892-- REDIR: 0xC64464 (realloc) redirected to 0x4005755 (realloc) =3D=3D23892=3D=3D =3D=3D23892=3D=3D Process terminating with default action of signal 2 (SIGI= NT) =3D=3D23892=3D=3D at 0xD78903: __msync_nocancel (in /lib/libpthread-2.3.= 90.so) =3D=3D23892=3D=3D by 0x4103034: CloseBlob (blob.c:466) =3D=3D23892=3D=3D by 0x41ABC1E: SetImageInfo (image.c:2920) =3D=3D23892=3D=3D by 0x412F2EE: ReadImage (constitute.c:340) =3D=3D23892=3D=3D by 0x40663A1: Magick::Image::read(std::string const&) = (in /usr/local/lib/libMagick++.so.9.0.5) =3D=3D23892=3D=3D by 0x8048DA6: main (main.cc:26) =3D=3D23892=3D=3D =3D=3D23892=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 41 f= rom 1) --23892-- --23892-- supp: 41 Fedora-Core-5-hack2 =3D=3D23892=3D=3D malloc/free: in use at exit: 1,931,436 bytes in 1,151 blo= cks. =3D=3D23892=3D=3D malloc/free: 1,515 allocs, 364 frees, 3,432,510 bytes all= ocated. =3D=3D23892=3D=3D =3D=3D23892=3D=3D searching for pointers to 1,151 not-freed blocks. =3D=3D23892=3D=3D checked 1,590,612 bytes. =3D=3D23892=3D=3D =3D=3D23892=3D=3D LEAK SUMMARY: =3D=3D23892=3D=3D definitely lost: 0 bytes in 0 blocks. =3D=3D23892=3D=3D possibly lost: 0 bytes in 0 blocks. =3D=3D23892=3D=3D still reachable: 1,931,436 bytes in 1,151 blocks. =3D=3D23892=3D=3D suppressed: 0 bytes in 0 blocks. =3D=3D23892=3D=3D Reachable blocks (those to which a pointer was found) are= not shown. =3D=3D23892=3D=3D To see them, rerun with: --show-reachable=3Dyes --23892-- memcheck: sanity checks: 28 cheap, 2 expensive --23892-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --23892-- memcheck: auxmaps: 0 searches, 0 comparisons --23892-- memcheck: secondaries: 101 issued (6464k, 6M) --23892-- memcheck: secondaries: 145 accessible and distinguished (9280k, = 9M) --23892-- tt/tc: 10,042 tt lookups requiring 10,467 probes --23892-- tt/tc: 10,042 fast-cache updates, 2 flushes --23892-- translate: new 4,985 (110,589 -> 1,774,653; ratio 160:10) [0 scs] --23892-- translate: dumped 0 (0 -> ??) --23892-- translate: discarded 0 (0 -> ??) --23892-- scheduler: 1,407,104 jumps (bb entries). --23892-- scheduler: 28/16,094 major/minor sched events. --23892-- sanity: 29 cheap, 2 expensive checks. --23892-- exectx: 30,011 lists, 1,509 contexts (avg 0 per list) --23892-- exectx: 1,558 searches, 81 full compares (51 per 1000) --23892-- exectx: 9,853 cmp2, 80 cmp4, 0 cmpAll ---------------------------------------------------------------------------= ------------- Ok! What is the strange? This sample...(and my source of ten thousand codelines) was beaten by Valgrind without any trouble. One, two, three... a hundred times... but, suddenly! Imagemagick "reads" freeze Valgrind. I have uninstalled Valgrind completely... and I have uninstalled ImageMagick completely. After that, I have configured, maked and installed Valgrind and ImageMagick without troubles... but... my weak efforts are futile. In anothers computers (with FC4) the trouble is reproduced. At the beginning there are not any trouble... but suddenly, the problem go back in just a very few weeks. Sigh!!! I'm frustrated. Any idea? Any question? Thanks in advance. I=B4m sorry for my abominable english. |