[Scummvm-tracker] [ScummVM :: Bugs] #15015: COMMON: AGS games lead to a reproducable crash on exiting ScummVM
ScummVM :: Bugs
trac at scummvm.org
Sun Mar 17 19:21:49 UTC 2024
#15015: COMMON: AGS games lead to a reproducable crash on exiting ScummVM
--------------------+--------------------------
Reporter: raziel- | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: AGS
Version: | Resolution:
Keywords: | Game:
--------------------+--------------------------
Comment (by PushmePullyu):
For reference: PR is at https://github.com/scummvm/scummvm/pull/5713
Since the removal of the static fixed the AGS crash, there seems to be
some problem with DSO unloading and dtors of statics.
Dtors registered from a DSO _seem_ to run on program exit instead of SO
unload (or maybe they are run twice). Perhaps your libc / build is not
using !__cxa_atexit?
From the gcc manpage:
-fuse-cxa-atexit
Register destructors for objects with static storage duration with the
"!__cxa_atexit" function rather than the "atexit" function. This option is
required for fully standards-compliant handling of static destructors, but
only works if your C library supports "!__cxa_atexit".
--
Ticket URL: <https://bugs.scummvm.org/ticket/15015#comment:12>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list