PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Qt4 und valgrind



xmarvel
09-01-2006, 18:42
Hi,

Erstmal vorweg hab nicht soviel Erfahrung mit valgrind aber wieso erscheint bei ein simplen Qt Programm in valgrind soviele Fehler ist das euch schonmal aufgefallen?


==7899== ERROR SUMMARY: 97 errors from 23 contexts (suppressed: 0 from 0)
==7899== malloc/free: in use at exit: 617460 bytes in 24312 blocks.
==7899== malloc/free: 139519 allocs, 115207 frees, 8423847 bytes allocated.
==7899== For counts of detected errors, rerun with: -v
==7899== searching for pointers to 24312 not-freed blocks.
==7899== checked 1103096 bytes.


Die meisten Error Meldungen sind in folgender Form:



==7899== Conditional jump or move depends on uninitialised value(s)
==7899== at 0x1B8F4C7D: (within /lib/ld-2.3.5.so)
==7899== by 0x1B8EA24D: (within /lib/ld-2.3.5.so)
==7899== by 0x1C43DA75: (within /lib/tls/i686/cmov/libc-2.3.5.so)
==7899== by 0x1B8EF105: (within /lib/ld-2.3.5.so)
==7899== by 0x1C43E737: _dl_open (in /lib/tls/i686/cmov/libc-2.3.5.so)
==7899== by 0x1C218CE7: (within /lib/tls/i686/cmov/libdl-2.3.5.so)
==7899== by 0x1B8EF105: (within /lib/ld-2.3.5.so)
==7899== by 0x1C2192EA: (within /lib/tls/i686/cmov/libdl-2.3.5.so)
==7899== by 0x1C218D40: dlopen (in /lib/tls/i686/cmov/libdl-2.3.5.so)
==7899== by 0x1C003A4A: (within /usr/lib/libX11.so.6.2.0)
==7899== by 0x1C003C98: _XlcDynamicLoad (in /usr/lib/libX11.so.6.2.0)
==7899== by 0x1C0153F3: _XOpenLC (in /usr/lib/libX11.so.6.2.0)


man kann somit schwer die eigengemachten Fehler finden ...
was ist das alles ist jetzt Qt4 total verbugt oder bin ich das :D

MfG
xmarvel

Christian81
09-01-2006, 21:26
Wenn ld-2.3.5.so zu Qt gehören würde vielleicht, aber so...

Ausserdem muss nicht jede Warnung gleich ein Bug bedeuten. Valgrind weiss auch nicht alles... :)