Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356845 - =x11-libs/qt-core-4.7* deletes TLS keys it didn't create
Summary: =x11-libs/qt-core-4.7* deletes TLS keys it didn't create
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Qt Bug Alias
URL: http://bugreports.qt.nokia.com/browse...
Whiteboard:
Keywords:
Depends on:
Blocks: 355731 qt-47-stable-tracker
  Show dependency tree
 
Reported: 2011-02-28 11:33 UTC by Martin von Gagern
Modified: 2012-04-23 10:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Backported 8c31c from upstream (gentoo356845a.patch,1.67 KB, patch)
2011-02-28 11:35 UTC, Martin von Gagern
Details | Diff
Backported 6cc3f from upstream (gentoo356845b.patch,883 bytes, patch)
2011-03-01 09:47 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2011-02-28 11:33:32 UTC
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.
Comment 1 Martin von Gagern 2011-02-28 11:35:52 UTC
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.
Comment 2 Martin von Gagern 2011-03-01 09:47:40 UTC
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).
Comment 3 Martin von Gagern 2011-03-03 15:34:24 UTC
Qt 4.7.2 doesn't contain the fix either, therefore needs the patch as well.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2011-11-10 23:29:53 UTC
This should be fixed in 4.8
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2012-03-12 18:49:24 UTC
Fixed in 4.8.0