The Gentoo qt-core-4.7.1-r1 ebuild is affected by upstream bug 10861: http://bugreports.qt.nokia.com/browse/QTBUG-10861 It calls destroy_current_thread_data_key on dso unload even if the corresponding create_current_thread_data_key wasn't executed before, causing the deletion of thread local data which doesn't belong to QT.
Created attachment 264159 [details, diff] Backported 8c31c from upstream Backported patch from upstream commit: http://qt.gitorious.org/qt/qt/commit/8c31c6529935cd9ee6f99bc38cfd182d5b3182e2 To solve this issue before a revbumped qt-core ebuild arrives, simply drop the attached patch into /etc/portage/patches/x11-libs/qt-core-4.7.1-r1/ and remerge qt-core.
Created attachment 264235 [details, diff] Backported 6cc3f from upstream My previous patch seems to be bad (for reasons I don't understand). It makes qdbus segfault (which might prevent startup of a KDE session). Apparently upstream wasn't satisfied with it either, as they reverted it here: http://qt.gitorious.org/qt/qt/commit/6cc3f97adfb541acfa7bffde6ca8b91fdc980854 That patch introduces a different solution, which is still present in current master. I've backported that instead (which makes for an easier patch as well).
Qt 4.7.2 doesn't contain the fix either, therefore needs the patch as well.
This should be fixed in 4.8
Fixed in 4.8.0