summaryrefslogtreecommitdiff
path: root/stdlib/atexit.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-07-11 13:45:37 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-07-11 15:11:40 -0300
commit3cd72edf63eedb3e95ae24c974e9b500dc5c9fa0 (patch)
tree3acf8c5a4df1a1c3573f3ec3be8e944b2af8deb4 /stdlib/atexit.c
parentd0093c5cefb7f7a4143f3bb03743633823229cc6 (diff)
downloadglibc-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 'stdlib/atexit.c')
0 files changed, 0 insertions, 0 deletions