Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 452029 Details for
Bug 581068
kde-plasma/kactivitymanagerd: segfaults with <dev-qt/qtcore-5.7.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
qtcore-5.6.1-kactivitymanagerd-segfaults.patch
qtcore-5.6.1-kactivitymanagerd-segfaults.patch (text/plain), 1.93 KB, created by
Marco Genasci
on 2016-10-31 16:49:57 UTC
(
hide
)
Description:
qtcore-5.6.1-kactivitymanagerd-segfaults.patch
Filename:
MIME Type:
Creator:
Marco Genasci
Created:
2016-10-31 16:49:57 UTC
Size:
1.93 KB
patch
obsolete
>diff -Naur qtbase-opensource-src-5.6.1.orig/src/corelib/plugin/qfactoryloader.cpp qtbase-opensource-src-5.6.1/src/corelib/plugin/qfactoryloader.cpp >--- qtbase-opensource-src-5.6.1.orig/src/corelib/plugin/qfactoryloader.cpp 2016-10-31 16:51:05.058042123 +0100 >+++ qtbase-opensource-src-5.6.1/src/corelib/plugin/qfactoryloader.cpp 2016-10-31 16:52:50.488044482 +0100 >@@ -208,10 +208,12 @@ > ++keyUsageCount; > } > } >- if (keyUsageCount || keys.isEmpty()) >+ if (keyUsageCount || keys.isEmpty()) { >+ library->setLoadHints(QLibrary::PreventUnloadHint); // once loaded, don't unload > d->libraryList += library; >- else >+ } else { > library->release(); >+ } > } > } > #else >diff -Naur qtbase-opensource-src-5.6.1.orig/src/corelib/plugin/qpluginloader.cpp qtbase-opensource-src-5.6.1/src/corelib/plugin/qpluginloader.cpp >--- qtbase-opensource-src-5.6.1.orig/src/corelib/plugin/qpluginloader.cpp 2016-10-31 16:51:05.057042123 +0100 >+++ qtbase-opensource-src-5.6.1/src/corelib/plugin/qpluginloader.cpp 2016-10-31 16:54:49.756047150 +0100 >@@ -148,6 +148,7 @@ > : QObject(parent), d(0), did_load(false) > { > setFileName(fileName); >+ setLoadHints(QLibrary::PreventUnloadHint); > } > > /*! >@@ -342,7 +343,7 @@ > void QPluginLoader::setFileName(const QString &fileName) > { > #if defined(QT_SHARED) >- QLibrary::LoadHints lh; >+ QLibrary::LoadHints lh = QLibrary::PreventUnloadHint; > if (d) { > lh = d->loadHints(); > d->release(); >@@ -391,7 +392,7 @@ > \brief Give the load() function some hints on how it should behave. > > You can give hints on how the symbols in the plugin are >- resolved. By default, none of the hints are set. >+ resolved. By default since Qt 5.7, QLibrary::PreventUnloadHint is set. > > See the documentation of QLibrary::loadHints for a complete > description of how this property works.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 581068
:
431824
|
434898
|
434900
| 452029