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: MS-Windows build using Posix configury Date: Fri, 07 Jun 2013 11:51:49 +0300 Message-ID: <8361xquwuy.fsf@gnu.org> References: <83d2tu49lu.fsf@gnu.org> <83wqrfkjvo.fsf@gnu.org> <838v3qebns.fsf@gnu.org> <83wqr9csah.fsf@gnu.org> <83wqr297da.fsf@gnu.org> <83txm34g6k.fsf@gnu.org> <83d2srt645.fsf@gnu.org> <87y5bfkmsz.fsf@yandex.ru> <834ne3sziw.fsf@gnu.org> <519504DD.1030004@yandex.ru> <8338tmu9m0.fsf@gnu.org> <83hai2rlm0.fsf@gnu.org> <51961D09.7030502@yandex.ru> <83d2spsqa1.fsf@gnu.org> <519638A0.70807@[87.69.4.28]> <837gixsmwh.fsf@gnu.org> <51964CD3.1010106@yandex.ru> <8338tlsibr.fsf@gnu.org> <831u95sdwi.fsf@gnu.org> <83zjvtqwf0.fsf@gnu.org> <51969776.4060206@y> <83txm0rc1o.fsf@gnu.org> <5197371A.20401@yandex.ru> <83sj1ky7sy.fsf@gnu.org> <5197810F.60304@[87.69.4.28]> <83obc8xt4d.fsf@gnu.org> <51978FFF.6020503@yandex.ru> <83ehd4xi6v.fsf@gnu.org> <83bo88xgpk.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1370595188 4336 80.91.229.3 (7 Jun 2013 08:53:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 08:53:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 07 10:53:07 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 1UksPp-0000mY-QM for ged-emacs-devel@m.gmane.org; Fri, 07 Jun 2013 10:52:57 +0200 Original-Received: from localhost ([::1]:37114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UksPp-0000xO-Am for ged-emacs-devel@m.gmane.org; Fri, 07 Jun 2013 04:52:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UksPi-0000vq-1D for emacs-devel@gnu.org; Fri, 07 Jun 2013 04:52:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UksPa-0002sR-F1 for emacs-devel@gnu.org; Fri, 07 Jun 2013 04:52:49 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:46282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UksPa-0002sB-6r for emacs-devel@gnu.org; Fri, 07 Jun 2013 04:52:42 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MO000E00LTIFV00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 07 Jun 2013 11:52:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MO000ELDLYQHW00@a-mtaout20.012.net.il>; Fri, 07 Jun 2013 11:52:03 +0300 (IDT) Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and truncated. In-reply-to: <5197D351.1010109@yandex.ru> 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:160193 Archived-At: > Date: Sat, 18 May 2013 23:15:29 +0400 > From: Dmitry Gutov > CC: emacs-devel@gnu.org > > On 18.05.2013 22:53, Eli Zaretskii wrote: > >> Date: Sat, 18 May 2013 22:42:42 +0400 > >> From: Dmitry Gutov > >> CC: emacs-devel@gnu.org > >> > >> It looks to me that libpng gets loaded by Gnus anyway, because a) the > >> breakpoint on w32.c:7473 still gets hit, the same amount of times, and > >> the car of 'loaded_from' on the first hit is still "libpng14-14.dll", b) > >> 'M-x list-dynamic-libraries' crashes with (wrong-type-argument > >> characterp "J:\\Apps\\System\\MinGW\\bin\\libpng14-14.dll") after Gnus > >> has been launched, just like it does in graphical environment. > > > > I'd be interested to know which sequence of calls causes libpng to be > > loaded by Gnus in a non-GUI session. That sounds like a bug to me. > > I don't mind participating in the troubleshooting, but can't you > reproduce this on your end? I mean both libpng loading in the terminal, > and crash when using libgcc-dw2-dependent libintl. It would be quicker. Just for the record, see this thread on the GCC list: http://gcc.gnu.org/ml/gcc/2013-05/msg00180.html Unfortunately, none of the GCC maintainers said anything interesting in that thread, nor suggested to fix this. However, I think I have a pretty good understanding of what happens here, as I described here: http://gcc.gnu.org/ml/gcc/2013-05/msg00214.html To summarize: . This happens due to a bug in the GCC startup and termination code, which check independently for whether libgcc was loaded as a shared library. When libgcc is not loaded at startup, but is found to be loaded on ext, that code hits an assertion and aborts. . The only way around this, besides not using DLLs that depend on shared libgcc, is to link the program with the -shared-libgcc compiler option.