[Qt-interest] memory problem in QtCore 4.6.0
Jos van den Oever
jvdoever at gmail.com
Wed Dec 9 08:01:04 CET 2009
Running a simple program that links to QtCore gives me a memory error:
===
echo "int main() { return 0; }" > main.cpp
/usr/bin/c++ main.cpp -o main -lQtCore
valgrind ./main
===
prints
==6246== Memcheck, a memory error detector.
==6246== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==6246== Using LibVEX rev 1884, a library for dynamic binary translation.
==6246== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==6246== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation
framework.
==6246== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==6246== For more details, rerun with: -v
==6246==
==6246== Invalid free() / delete / delete[]
==6246== at 0x4C265AF: free (vg_replace_malloc.c:323)
==6246== by 0x59E30EA: (within /lib/libc-2.9.so)
==6246== by 0x59E2C81: (within /lib/libc-2.9.so)
==6246== by 0x4A215A0: _vgnU_freeres (vg_preloaded.c:60)
==6246== by 0x58F5764: exit (exit.c:90)
==6246== by 0x58DD5AC: (below main) (libc-start.c:252)
==6246== Address 0x404b9b0 is not stack'd, malloc'd or (recently) free'd
==6246==
==6246== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 8 from 1)
==6246== malloc/free: in use at exit: 0 bytes in 0 blocks.
==6246== malloc/free: 9 allocs, 10 frees, 456 bytes allocated.
==6246== For counts of detected errors, rerun with: -v
==6246== All heap blocks were freed -- no leaks are possible.
This happens on my self-compiled QtCore.
CXXFLAGS='-mtune=native -march=native'
/home/oever/src/qt/qt-everywhere-opensource-src-4.6.0/configure
-prefix /home/oever/src/qt/qt-everywhere-opensource-src-4.6.0
I have another KUbuntu system (also 9.04) with the same configuration
and there I do not see this error. All versions of the relevant
libraries are the same: the default versions of Kubuntu Jaunty.
Could someone try to confirm this memory problem?
Cheers,
Jos
More information about the Qt-interest-old
mailing list