This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Crashes inside libgcc_s_dw2-1.dll
- From: Eli Zaretskii <eliz at gnu dot org>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 19 May 2013 20:30:58 +0300
- Subject: Crashes inside libgcc_s_dw2-1.dll
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
[Please CC me on replies, as I'm not a subscriber.]
Would someone on the developers' team please comment on this problem:
http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00413.html
In a nutshell, loading a GnuTLS DLL by a MinGW compiled Emacs causes
libintl DLL to be loaded, and if that libintl DLL in turns loads
libgcc_s_dw2-1.dll, the program crashes inside libgcc on exit, when
the runtime unloads all the DLLs loaded by Emacs. A related
discussion on the MinGW mailing list
https://sourceforge.net/mailarchive/message.php?msg_id=30633081
Suggests that this is a general problem with DLLs linked against a
shared libgcc that uses dw2 unwinding.
Is there a bug in libgcc's dw2 unwinding code? Is it a fundamental
mistake to build DLLs that depend on libgcc as a shared library? Or
are the applications using libgcc_s_dw2-1.dll buggy and need to get
their act together in some way (if so, how)? Or anything else?
Thanks in advance.