diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-07-11 13:45:37 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-07-11 15:11:40 -0300 |
commit | 3cd72edf63eedb3e95ae24c974e9b500dc5c9fa0 (patch) | |
tree | 3acf8c5a4df1a1c3573f3ec3be8e944b2af8deb4 /malloc.h | |
parent | d0093c5cefb7f7a4143f3bb03743633823229cc6 (diff) | |
download | glibc-3cd72edf63eedb3e95ae24c974e9b500dc5c9fa0.tar.gz |
stdlib: Testcase to show wrong atexit execution order
This testcase is based on the one discussed on libc-help [1]
[1] https://github.com/mulle-nat/ld-so-breakage
The atexit calls are done by the DSO constructors and program expects
the handlers to be executed in the reverse order the library are
loaded.
The issue is _dl_fini might re-sort the order when libraries are
unloaded and the __cxa_finalize (called by __do_global_dtors_aux
set in arrayfini from DSO) might in turn call its registered atexit
in a wrong order.
Diffstat (limited to 'malloc.h')
0 files changed, 0 insertions, 0 deletions