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: Sat, 18 May 2013 21:21:28 +0300 Message-ID: <83ehd4xi6v.fsf@gnu.org> References: <83d2tu49lu.fsf@gnu.org> <83zjwbkmt2.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1368901346 24044 80.91.229.3 (18 May 2013 18:22:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 May 2013 18:22:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 18 20:22:25 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 1Udllw-0007Fn-NY for ged-emacs-devel@m.gmane.org; Sat, 18 May 2013 20:22:24 +0200 Original-Received: from localhost ([::1]:57562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udllw-0005WJ-5O for ged-emacs-devel@m.gmane.org; Sat, 18 May 2013 14:22:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udllr-0005WC-Uw for emacs-devel@gnu.org; Sat, 18 May 2013 14:22:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Udllq-0005vI-Tv for emacs-devel@gnu.org; Sat, 18 May 2013 14:22:19 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udllq-0005v8-Lf for emacs-devel@gnu.org; Sat, 18 May 2013 14:22:18 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MN000000ATEHY00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 18 May 2013 21:21:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MN0000OSB05DW70@a-mtaout21.012.net.il>; Sat, 18 May 2013 21:21:42 +0300 (IDT) In-reply-to: <51978FFF.6020503@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.169 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:159663 Archived-At: > Date: Sat, 18 May 2013 18:28:15 +0400 > From: Dmitry Gutov > CC: emacs-devel@gnu.org > > >>> Anyway, can you verify that the function unload_dlls is being called > >>> at exit, and that it does unload libgnutls-28.dll? Setting a > >>> breakpoint at the line that calls FreeLibrary should allow you to > >>> display the value of loaded_from variable, which is a list showing the > >>> library and the handle used to load it. > >> > >> It does, but 'abort' breakpoint hits earlier. > >> > >> The sequence is, as gdb sees it, unload libpng14-14.dll, abort from > >> deregister_frame_info_bases, unload libpng14-14.dll again (!), then > >> unload libgnutls-28.dll. > > > > Does libpng14-14.dll depend on libintl as well, or depend on > > libgcc_s_dw2-1.dll in some other way, per chance? > > Nope, its only dependencies are zlib1, kernel32 and msvcrt. OK. Can you try a session that only loads libgnutls, but doesn't load image libraries? I think "emacs -nw" should achieve that, if you then use whatever features that load GnuTLS. The question is, if libgnutls is the only DLL loaded, does Emacs still crash at exit, with and without my unloading patch? Thanks.