Even unittests crash on exit on my machine. Backtrace of krita: http://paste.kde.org/148220/ Memcheck of a unittest: http://paste.kde.org/148214/ Happens on openSUSE 11.4 machine, works fine on openSUSE 11.3 laptop. The latter one has lcms1.
Desktop (crash): Qt Version: 4.7.1 KDE Version: 4.6.00 (4.6.0) "release 6" Laptop (no crash): Qt: 4.6.3 KDE: 4.4.4 "release 2"
Can you add a destructor to KoID, like ~KoID() { qDebug() << m_id << m_name; } so we can see which id's are dying?
I think this is caused by the fix for https://bugs.kde.org/show_bug.cgi?id=251606 (Can't launch any koffice application in locale!=en_US with kdelibs >rev 1175322)
Created attachment 68699 [details] patch that makes the colormodel and depth koid's no longer static please test.
Okay, that didn't work either... Fortunately, this only happens in the unittests and only on Dmitry's system...
Well, it happens on both untittests and Krita executable, but only on exit and only on my machine ;)
Git commit 87c5ee4cdcf09cd9d95b7b20ff902bef5a3f3007 by Boudewijn Rempt. Committed on 07/05/2012 at 15:01. Pushed by rempt into branch 'master'. Do not delete some static stuff on exit Depending on the order of deletion and other variables, these delete calls might cause a crash on exit or not. And there's actually no memory leak, since this is all static stuff that's present for the lifetime of the application. In this case, it's better to just quit, than explicitly free all memory. The bytes are gone with the process, and there isn't stuff that needs to be written on quit here. Related: bug 298613 M +3 -1 libs/flake/KoInputDeviceHandlerRegistry.cpp M +3 -1 libs/pigment/lut.h http://commits.kde.org/calligra/87c5ee4cdcf09cd9d95b7b20ff902bef5a3f3007