From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: MS-Windows build using Posix configury Date: Sat, 18 May 2013 22:42:42 +0400 Message-ID: <5197CBA2.1070408@yandex.ru> 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> <83ehd4xi6v.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368902592 1899 80.91.229.3 (18 May 2013 18:43:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 May 2013 18:43:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 18 20:43:11 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 1Udm63-00075N-3c for ged-emacs-devel@m.gmane.org; Sat, 18 May 2013 20:43:11 +0200 Original-Received: from localhost ([::1]:33656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udm62-0000Lg-Ks for ged-emacs-devel@m.gmane.org; Sat, 18 May 2013 14:43:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udm5s-0000LJ-UY for emacs-devel@gnu.org; Sat, 18 May 2013 14:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Udm5l-0003NQ-7w for emacs-devel@gnu.org; Sat, 18 May 2013 14:43:00 -0400 Original-Received: from mail-lb0-f170.google.com ([209.85.217.170]:35337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udm5b-0003Lm-6W; Sat, 18 May 2013 14:42:43 -0400 Original-Received: by mail-lb0-f170.google.com with SMTP id t13so2676191lbd.29 for ; Sat, 18 May 2013 11:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding:x-antivirus:x-antivirus-status; bh=2b4rhdVSiFqmzwdumNu1OVZ21VJ7O2zje5Sf1MhGYsg=; b=F0MUAlTCvKbIKpNqkIzxfaE6jtDvt2UlL/KPiQrbjq0u0YrAVsF3evR6+kLYnkphmw CASJavHxOcec7IjRbGldxoSrr/24j6D7WctNgN5tN6r8pvoup83Tz5bFr5ruy5B1uwCh 0Cu2JCKP5IQc1ITz3T6dWhX5dJdKeWz7SQvvhkgN9enxb2nA5zRLM6cnPZLrw4Weo0zq ajhIx5cfDSa7SW7w+UlhlOm/U2hBc1N8yOjFqXyQf9WxiBj0r9ewQmawNjNFzRun8i0D 2FZDv7NOJVJWvsnDafoWBupQ/dTZeQzXeZxS6O5rj9NlG1lrkuMKjxoNT4W1xj0B9Jr+ nZaA== X-Received: by 10.112.169.72 with SMTP id ac8mr24293551lbc.115.1368902561768; Sat, 18 May 2013 11:42:41 -0700 (PDT) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPSA id t17sm6918789lbd.11.2013.05.18.11.42.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 11:42:40 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <83ehd4xi6v.fsf@gnu.org> X-Antivirus: avast! (VPS 130518-0, 18.05.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.217.170 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:159664 Archived-At: On 18.05.2013 22:21, Eli Zaretskii wrote: >> 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? I've only tried it with your patch, for now, launching and then quitting Gnus in console Emacs, but it still crashes. 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.