https://issues.apache.org/ooo/show_bug.cgi?id=123001

--- Comment #1 from Yuri Dario <[email protected]> ---
This issue is related to two different bugs: 
1) in pthread emulation, destroy of mutex leaves it in wrong state, fixed in
ports svn at netlabs.org;
2) threads are killed before dll unloading (affects SAL3 cache thread).

Bug #2 has been difficult to discover. SAL3 starts a thread for cache
monitoring using at dll loading using global constructor. Then it declares a
function as __attribute__(destructor) to call it on unloading.
But when the main process exits with exit(), the runtime in the end calls
DosExit and then unloads dlls. But DosExit kills all running threads, so the
destructor function does not find the running thread.
The solution is to declare such function in atexit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to