Summary: | memory leak around 200k in KLocalePrivate::formatDate | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Jaime Torres <jtamate> |
Component: | klocale | Assignee: | John Layt <jlayt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jlayt |
Priority: | NOR | ||
Version: | SVN | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jaime Torres
2010-11-14 12:52:38 UTC
Looking at now. SVN commit 1197335 by jlayt: Fix a memory leak. Must learn how to do this grinding myself, can you check this fixed it Jaime? CCBUG: 256885 M +2 -0 kdatetimeformatter.cpp M +1 -1 klocalizeddate.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1197335 Yes, the leak is fixed, but doing valgrind --trace-children=yes --leak-check=full --tool=memcheck ./kcalendartest (in the kdelibs/kdecore/tests build folder), there are a lot of jump or move depends on uninitialised value(s) two examples: ==9009== Conditional jump or move depends on uninitialised value(s) ==9009== at 0x5151F4A: KCalendarSystemGregorian::isValid(int, int, int) const (kcalendarsystemgregorian.cpp:221) ==9009== by 0x5149B59: KCalendarSystem::setDate(QDate&, int, int, int) const (kcalendarsystem.cpp:1056) ==9009== by 0x4220D7: KCalendarTest::testKLocalizedDate() (kcalendartest.cpp:2583) ==9009== by 0x42E676: KCalendarTest::qt_metacall(QMetaObject::Call, int, void**) (kcalendartest.moc:175) ==9009== by 0x5E92A20: QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const (qmetaobject.cpp:1578) ==9009== by 0x5E93656: QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) (qmetaobject.cpp:1151) ==9009== by 0x555C0DE: QTest::qInvokeTestMethod(char const*, char const*) (qobjectdefs.h:408) ==9009== by 0x555D1BA: QTest::qExec(QObject*, int, char**) (qtestcase.cpp:1499) ==9009== by 0x42C01C: main (kcalendartest.cpp:19) ==9009== Conditional jump or move depends on uninitialised value(s) ==9009== at 0x5DAE5D6: QDate::isValid(int, int, int) (qdatetime.cpp:1315) ==9009== by 0x5149B59: KCalendarSystem::setDate(QDate&, int, int, int) const (kcalendarsystem.cpp:1056) ==9009== by 0x4220D7: KCalendarTest::testKLocalizedDate() (kcalendartest.cpp:2583) ==9009== by 0x42E676: KCalendarTest::qt_metacall(QMetaObject::Call, int, void**) (kcalendartest.moc:175) ==9009== by 0x5E92A20: QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const (qmetaobject.cpp:1578) ==9009== by 0x5E93656: QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) (qmetaobject.cpp:1151) ==9009== by 0x555C0DE: QTest::qInvokeTestMethod(char const*, char const*) (qobjectdefs.h:408) ==9009== by 0x555D1BA: QTest::qExec(QObject*, int, char**) (qtestcase.cpp:1499) ==9009== by 0x42C01C: main (kcalendartest.cpp:19) The uninitialized values messages are gone in kdelibs branch 4.7. |