From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs crashes when I try to quit Date: Thu, 04 Apr 2013 19:45:19 +0300 Message-ID: <83wqsifdnk.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1365093918 8283 80.91.229.3 (4 Apr 2013 16:45:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 16:45:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miguel Ruiz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 04 18:45:46 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UNnIG-0007Ae-2F for ged-emacs-devel@m.gmane.org; Thu, 04 Apr 2013 18:45:44 +0200 Original-Received: from localhost ([::1]:40439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNnHr-0005QS-92 for ged-emacs-devel@m.gmane.org; Thu, 04 Apr 2013 12:45:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNnHh-0005QI-7o for emacs-devel@gnu.org; Thu, 04 Apr 2013 12:45:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNnHb-0005ly-0J for emacs-devel@gnu.org; Thu, 04 Apr 2013 12:45:09 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:46829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNnHa-0005eb-OJ for emacs-devel@gnu.org; Thu, 04 Apr 2013 12:45:02 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MKQ00E00P5WG900@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 04 Apr 2013 19:44:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKQ00E90P6H9650@a-mtaout20.012.net.il>; Thu, 04 Apr 2013 19:44:42 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158649 Archived-At: > Date: Thu, 4 Apr 2013 07:45:59 +0200 > From: Miguel Ruiz > > AFAIK, libgcc_s_dw2-1.dll is statically linked so it is irrelevant the > origin of the file. A DLL can never be statically linked. If you want to be sure whether or not your executables depend on that DLL, use the "depends" tool, which you can download from the net -- just run it as in "depends emacs.exe" and it will show a window with all the DLLs that the binary wants to load. Or use objdump that you already have, like this: objdump -x emacs.exe | fgrep "DLL Name:" The latter only shows the names of the DLLs, not their absolute file names. > I have experienced the same crashes and I can confirm two things: > - No crashes with gcc v3.x.x > - No crashes with gcc v4.5 sjlj > > And this threadmight > confirm the last point. > > Now I am going to build with tdm-gcc-4.7.1-2 > MinGW > sjlj , and test stability. If anyone > would like to test my binaries, please, let me know: I will be pleased. If the above methods show that your binary depends on libgcc_s_dw2-1.dll, you _must_ tell your users which one of them is actually linked into the binary. The "depends" tool will show you a full path to the DLL which the binary will use, and the linker links against the DLL which came with the version of GCC you used to compile Emacs. You should tell the users "get libgcc_s_dw2-1.dll from GCC version 4.x.y that you find on this-and-that site". Thanks.