==3771== Memcheck, a memory error detector.
==3771== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==3771== Using LibVEX rev 1884, a library for dynamic binary translation.
==3771== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==3771== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework.
==3771== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==3771== For more details, rerun with: -v
==3771==
==3771== My PID = 3771, parent PID = 3639. Prog and args are:
==3771== ./RegExpTest
==3771==
==3771== Invalid read of size 4
==3771== at 0x40CB52C: QRegExp::matchedLength() const (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x804BF51: RegExpTest::RegExpTest(QString const&, int const&, int const&, RegExpTest::Type const&) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x8049253: main (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== Address 0x4667048 is 1,728 bytes inside a block of size 1,764 free'd
==3771== at 0x4025DFA: free (vg_replace_malloc.c:323)
==3771== by 0x40D08CC: (within /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x40D0A6B: QRegExp::setPattern(QString const&) (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x804A14E: RegExpTest::findBlocks(int) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x804BF51: RegExpTest::RegExpTest(QString const&, int const&, int const&, RegExpTest::Type const&) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x8049253: main (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771==
==3771== Invalid read of size 4
==3771== at 0x40D4BA2: QRegExp::capturedTexts() const (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x40D4DD7: QRegExp::cap(int) const (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x40D4E7F: QRegExp::cap(int) (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x804A6F1: RegExpTest::findBlocks(int) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x804BF51: RegExpTest::RegExpTest(QString const&, int const&, int const&, RegExpTest::Type const&) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x8049253: main (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== Address 0x4667048 is 1,728 bytes inside a block of size 1,764 free'd
==3771== at 0x4025DFA: free (vg_replace_malloc.c:323)
==3771== by 0x40D08CC: (within /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x40D0A6B: QRegExp::setPattern(QString const&) (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x804A14E: RegExpTest::findBlocks(int) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x804BF51: RegExpTest::RegExpTest(QString const&, int const&, int const&, RegExpTest::Type const&) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x8049253: main (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771==
==3771== Invalid read of size 4
==3771== at 0x40D4BB4: QRegExp::capturedTexts() const (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x40D4DD7: QRegExp::cap(int) const (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x40D4E7F: QRegExp::cap(int) (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x804A6F1: RegExpTest::findBlocks(int) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x804BF51: RegExpTest::RegExpTest(QString const&, int const&, int const&, RegExpTest::Type const&) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x8049253: main (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== Address 0x4667044 is 1,724 bytes inside a block of size 1,764 free'd
==3771== at 0x4025DFA: free (vg_replace_malloc.c:323)
==3771== by 0x40D08CC: (within /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x40D0A6B: QRegExp::setPattern(QString const&) (in /usr/lib/libQtCore.so.4.5.0)
==3771== by 0x804A14E: RegExpTest::findBlocks(int) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x804BF51: RegExpTest::RegExpTest(QString const&, int const&, int const&, RegExpTest::Type const&) (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771== by 0x8049253: main (in /home/arjan/C++/RegExpTest/RegExpTest)
==3771==
==3771== ERROR SUMMARY: 37 errors from 3 contexts (suppressed: 33 from 1)
==3771== malloc/free: in use at exit: 0 bytes in 0 blocks.
==3771== malloc/free: 4,856 allocs, 4,856 frees, 849,164 bytes allocated.
==3771== For counts of detected errors, rerun with: -v
==3771== All heap blocks were freed -- no leaks are possible.
Bookmarks