Closed ThisALV closed 9 months ago
The exit routine executed after main returned already calls libc_fini_array. Calling it again within __libnx_exit calls the destructor for static objects a second time which results in a segfault when static/global objects are used in a program.
exit
main
libc_fini_array
__libnx_exit
The
exit
routine executed aftermain
returned already callslibc_fini_array
. Calling it again within__libnx_exit
calls the destructor for static objects a second time which results in a segfault when static/global objects are used in a program.