Opened 19 years ago

Last modified 18 years ago

#103 closed defect

libc: atexit() callbacks in dlls are called after dlclose()/DosFreeModule() on the DLL — at Version 5

Reported by: Yuri Dario Owned by: bird
Priority: normal Milestone: libc-0.6.2
Component: libc-backend Version: 0.6
Severity: normal Keywords: dlclose DosFreeModule atexit on_exit
Cc:

Description (last modified by bird)

Use atexit()/on_exit() to register a callback residing in a dynamically loaded DLL. Then unload the DLL. When exit() eventually is called, the application crashes because the callback code isn't there anylonger.

Change History (6)

by Yuri Dario, 19 years ago

Attachment: dll_exit.zip added

comment:1 by kkkkoaaa, 18 years ago

Keep a good job up! http://quick-adult-links.com

comment:5 by bird, 18 years ago

Description: modified (diff)
Keywords: dlclose DosFreeModule atexit on_exit added
Severity: criticalnormal
Summary: Exit list handlers registered from dll are not released on DosFreeModulelibc: atexit() callbacks in dlls are called after dlclose()/DosFreeModule() on the DLL
Type: defect
Version: 0.6.10.6
Note: See TracTickets for help on using tickets.