Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#103 closed defect (fixed)

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

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.

Attachments (1)

dll_exit.zip (39.2 KB) - added by Yuri Dario 18 years ago.

Download all attachments as: .zip

Change History (8)

Changed 18 years ago by Yuri Dario

Attachment: dll_exit.zip added

comment:1 Changed 18 years ago by kkkkoaaa

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

comment:5 Changed 18 years ago by bird

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

comment:6 Changed 18 years ago by bird

Resolution: fixed
Status: newclosed

(In [2786]) Fixed problems with fork() and module loading/unloading. Fixes #76. Fixed atexit() and on_exit() problem with callbacks in unloaded DLLs. Fixes #103.

comment:7 Changed 18 years ago by bird

(In [2787]) Fixed problems with fork() and module loading/unloading. Fixes #76. Fixed atexit() and on_exit() problem with callbacks in unloaded DLLs. Fixes #103.

Note: See TracTickets for help on using tickets.