[Libreoffice] sign off for cherry-pick fix for crash on exit after using search in calc

Caolán McNamara caolanm at redhat.com
Thu Jan 6 09:23:46 PST 2011


i.e. see bug: https://bugzilla.redhat.com/show_bug.cgi?id=666088 for
details. 

Attached is the proposed fix. Don't let the fancy-pants rtl::Static put
you off, its just making the maCache from a global to a static local.

Globals/static locals have their dtors called in reverse order of the
completion of their ctors. Leaving the complex global at its current
scope means it gets shutdown too late on final dlclose of libunotools,
at a point after which all the runtime structure that it needs has been
shutdown. Changing it to a local static ensures it gets dtored before
that.

C.


More information about the LibreOffice mailing list