[Qt-interest] memory problem in QtCore 4.6.0
Thiago Macieira
thiago at kde.org
Wed Dec 9 08:42:53 CET 2009
Em Quarta-feira 9. Dezembro 2009, às 08.01.04, Jos van den Oever escreveu:
> 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
> ==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
> Could someone try to confirm this memory problem?
That error comes from libc. Please address them to your distribution.
$ valgrind ./main
==13742== Memcheck, a memory error detector
==13742== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==13742== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==13742== Command: ./main
==13742==
==13742==
==13742== HEAP SUMMARY:
==13742== in use at exit: 0 bytes in 0 blocks
==13742== total heap usage: 9 allocs, 9 frees, 356 bytes allocated
==13742==
==13742== All heap blocks were freed -- no leaks are possible
==13742==
==13742== For counts of detected and suppressed errors, rerun with: -v
==13742== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 33 from 6)
$ rpm -q glibc
glibc-2.10.1-5mnb2
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091209/4797f898/attachment.bin
More information about the Qt-interest-old
mailing list