Answer the question
In order to leave comments, you need to log in
Do library unload function calls fail?
The crux of the matter is in the title. When an application crashes, is the unloading function of libraries called?
Answer the question
In order to leave comments, you need to log in
When an application crashes, is the unloading function of libraries called?
In Linux, nothing is called during a crash, and it cannot, because the data is corrupted!
But the system can do a post-mortem dump of the process's memory into a so-called core file if asked to do so. And it can be viewed in the debugger, which often helps.
Depends on what kind of crash and how these libraries were loaded.
If any resources were created outside of the crashed process, a leak will occur.
But what was inside the process will be automatically cleaned by the system.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question