[Scummvm-tracker] [ScummVM :: Bugs] #15015: COMMON: AGS games lead to a reproducable crash on exiting ScummVM
ScummVM :: Bugs
trac at scummvm.org
Fri Mar 22 19:07:48 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):
Alright, thanks! Looks like {{{-fuse-cxa-atexit}}} only works for glibc
currently.
So, on your platform, unloading a DSO that registers destructors/functions
to be run on exit will always crash when the main program exits.
The good news is that the ScummVM coding conventions forbid constructs
which require such registration (see
[https://wiki.scummvm.org/index.php?title=Coding_Conventions#Use_of_global_.2F_static_variables]).
They still creep into the code sometimes, so should you get similar on-
exit crashes in the future, this might be the cause.
In case you want to open an issue/feature request for this somewhere
(adtools maybe), there is a simplified version of the repro code at
[https://github.com/PushmePullyu/sotest/tree/repro-dlclose-dtors], which
removes the SDL dependency. Not sure if it builds on AmigaOS without
modifications. Note: The build script needs a Bourne-compatible shell.
I suppose this ticket can be closed then?
P.S. Sorry for the delay, has been a super busy week.
--
Ticket URL: <https://bugs.scummvm.org/ticket/15015#comment:21>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list