This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11644] Hang in throw when unloading a library
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2003 15:15:55 -0000
- Subject: [Bug c++/11644] Hang in throw when unloading a library
- References: <20030723121224.11644.peter.rost@freenet.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11644
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-08-19 15:15 -------
Two possible problems that make your code not working:
1 You need g++ and libstdc++ that are thread-enabled.
See this link for more info
http://gcc.gnu.org/bugs.html#nonbugs_cxx
2 The exception is thrown inside __fini_lib through the
function call chain:
main -> unloadLib -> dlclose -> __fini_Lib
If the dlclose in your C library is not built with
exception unwinding, thrown exception cannot propagate
back to main.