[Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?
Thiago Macieira
thiago.macieira at intel.com
Mon Jan 29 20:17:44 CET 2018
On segunda-feira, 29 de janeiro de 2018 10:49:21 PST René J. V. Bertin wrote:
> This is a platform theme plugin, it uses KF5 libraries but is not a KDE
> plugin. It gets loaded automatically by Qt, and apparently also unloaded
> automatically. If you set a breakpoint in ~QPlatformThemePlugin you'll
> probably see (like I) that you get there from
> QFactoryLoaderPrivate::~QFactoryLoaderPrivate().
>
> On Linux (Mac will do the same, with the equivalent platform theme plugin):
[cut]
The plugins aren't unloaded when you call unload(), but they are unloaded when
the application exits. There's no way to avoid that.
Your crash happens after the QLibrary private global static has finished
running.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list