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 17:24:31 +0400 Message-ID: <5197810F.6030400@yandex.ru> References: <83d2tu49lu.fsf@gnu.org> <8338u4o39r.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> 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 1368883505 23932 80.91.229.3 (18 May 2013 13:25:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 May 2013 13:25:05 +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 15:25:03 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 1Udh8A-00049x-F7 for ged-emacs-devel@m.gmane.org; Sat, 18 May 2013 15:25:02 +0200 Original-Received: from localhost ([::1]:56778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udh8A-0000U2-0U for ged-emacs-devel@m.gmane.org; Sat, 18 May 2013 09:25:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udh7z-0000Tk-T7 for emacs-devel@gnu.org; Sat, 18 May 2013 09:24:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Udh7s-0000Z4-4m for emacs-devel@gnu.org; Sat, 18 May 2013 09:24:51 -0400 Original-Received: from mail-lb0-f181.google.com ([209.85.217.181]:39312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udh7j-0000XQ-8O; Sat, 18 May 2013 09:24:35 -0400 Original-Received: by mail-lb0-f181.google.com with SMTP id w20so4793563lbh.26 for ; Sat, 18 May 2013 06:24:34 -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=PA0O0unqyh2hyeMDGM5HmQDrom4fk4ZTF+E1Kh4Zp6E=; b=fMwrRp7xwUoyFPTkCUHDNLSSO8MudQAeRCVv63crF9p+EbCgisddm/P6IxhOMAN1y6 G0w0XqxfJOjpu/V7Y7gW8Ny35j2Zt7UJ3a7E/8zhFZfzNKxopJMSMtLP8e6vHnFAay0f 2A423YTPes4iLS0ws8CvouMWicUPD1WziqE9z3+0LXT6Po03Y3lPjZDs5UUk5P+QK5kb cEs+x1xFhiDNtFiMLuM/5W+uoMGYOiq3KqyNYdDA4wKsJLbf6gFG3FMLEtCQLiis4s91 FegD006pA1mE9HBSe2rzqydczM1/77ehWsu1zQuS0ybClMgCLAL0pfd63uSN0Nou3p22 UzjQ== X-Received: by 10.112.144.165 with SMTP id sn5mr24291520lbb.48.1368883473807; Sat, 18 May 2013 06:24:33 -0700 (PDT) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPSA id z10sm6498203lbv.14.2013.05.18.06.24.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 06:24:31 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <83sj1ky7sy.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.181 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:159660 Archived-At: On 18.05.2013 13:08, Eli Zaretskii wrote: >> > What exactly happens when you try to produce a >>> backtrace? >> >> I get the output I sent in the previous email. > > So the problem is that the backtrace stops early, is that right? I guess so. > 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. (gdb) run Starting program: c:\Users\gutov\vc\emacs-bzr\trunk\src\emacs.exe [New Thread 3904.0xd54] [New Thread 3904.0x4a8] [New Thread 3904.0x568] [New Thread 3904.0xbac] [New Thread 3904.0xf7c] [New Thread 3904.0xab4] [New Thread 3904.0x624] [New Thread 3904.0xc50] [New Thread 3904.0x1228] Breakpoint 4, unload_dlls () at w32.c:7473 7473 FreeLibrary (lh); (gdb) p loaded_from $26 = 95127070 (gdb) xcar $27 = 0x3871131 (gdb) xstring $28 = (struct Lisp_String *) 0x3871130 <__register_frame_info+59183408> "libpng14-14.dll" (gdb) bt #0 unload_dlls () at w32.c:7473 #1 0x011ce311 in term_ntproc (ignored=0) at w32.c:7535 #2 0x010b9531 in shut_down_emacs (sig=0, stuff=54704154) at emacs.c:1940 #3 0x010b9433 in Fkill_emacs (arg=54704154) at emacs.c:1838 #4 0x0113b830 in Ffuncall (nargs=1, args=0x88f024) at eval.c:2674 #5 0x01176df0 in exec_byte_code (bytestr=19202657, vector=19202677, maxdepth=20, args_template=54704154, nargs=0, args=0x0) at bytecode.c:900 #6 0x0113c134 in funcall_lambda (fun=19202629, nargs=1, arg_vector=0x342b81a <__register_frame_info+54704154>) at eval.c:2906 #7 0x0113ba57 in Ffuncall (nargs=2, args=0x88f314) at eval.c:2723 #8 0x01176df0 in exec_byte_code (bytestr=19203113, vector=19203133, maxdepth=12, args_template=54704154, nargs=0, args=0x0) at bytecode.c:900 #9 0x0113c134 in funcall_lambda (fun=19203085, nargs=1, arg_vector=0x342b81a <__register_frame_info+54704154>) at eval.c:2906 #10 0x0113ba57 in Ffuncall (nargs=2, args=0x88f640) at eval.c:2723 #11 0x011375dd in Fcall_interactively (function=56693026, record_flag=54704154, keys=54725981) at callint.c:839 #12 0x0113b87b in Ffuncall (nargs=4, args=0x88f87c) at eval.c:2681 #13 0x01176df0 in exec_byte_code (bytestr=19423041, vector=19423061, maxdepth=52, args_template=4100, nargs=1, args=0x88fb80) at bytecode.c:900 #14 0x0113bead in funcall_lambda (fun=19423021, nargs=1, arg_vector=0x1004) at eval.c:2840 #15 0x0113ba57 in Ffuncall (nargs=2, args=0x88fb78) at eval.c:2723 #16 0x0113b366 in call1 (fn=54745858, arg1=56693026) at eval.c:2468 #17 0x010bb96e in command_loop_1 () at keyboard.c:1578 #18 0x01139155 in internal_condition_case (bfun=0x10bb289 , handlers=54750330, hfun=0x10bac81 ) at eval.c:1193 #19 0x010bb003 in command_loop_2 (ignore=54704154) at keyboard.c:1167 #20 0x01138ccd in internal_catch (tag=54744306, func=0x10bafdf , arg=54704154) at eval.c:964 #21 0x010bafbb in command_loop () at keyboard.c:1146 #22 0x010ba8c7 in recursive_edit_1 () at keyboard.c:779 #23 0x010baa18 in Frecursive_edit () at keyboard.c:843 #24 0x010b8df0 in main (argc=1, argv=0xbc2e30) at emacs.c:1531 Lisp Backtrace: "kill-emacs" (0x88f028) "save-buffers-kill-emacs" (0x88f318) "save-buffers-kill-terminal" (0x88f644) "call-interactively" (0x88f880) "command-execute" (0x88fb7c) (gdb) c Continuing. Breakpoint 3, 0x75e58e76 in msvcrt!abort () from C:\windows\syswow64\msvcrt.dll (gdb) bt #0 0x75e58e76 in msvcrt!abort () from C:\windows\syswow64\msvcrt.dll #1 0x6e956f62 in libgcc_s_dw2-1!__deregister_frame_info_bases () from J:\Apps\System\MinGW\bin\libgcc_s_dw2-1.dll #2 0x00000000 in ?? () Lisp Backtrace: "kill-emacs" (0x88f028) "save-buffers-kill-emacs" (0x88f318) "save-buffers-kill-terminal" (0x88f644) "call-interactively" (0x88f880) "command-execute" (0x88fb7c) (gdb) c Continuing. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Breakpoint 4, unload_dlls () at w32.c:7473 7473 FreeLibrary (lh); (gdb) p loaded_from $29 = 95127070 (gdb) xcar $30 = 0x3871131 (gdb) xstring $31 = (struct Lisp_String *) 0x3871130 <__register_frame_info+59183408> "libpng14-14.dll" (gdb) c Continuing. Breakpoint 4, unload_dlls () at w32.c:7473 7473 FreeLibrary (lh); (gdb) p loaded_from $32 = 99874734 (gdb) xcar $33 = 0x3630561 (gdb) xstring $34 = (struct Lisp_String *) 0x3630560 <__register_frame_info+56821088> "libgnutls-28.dll" (gdb) c Continuing. Warning: Lisp directory `c:/Users/gutov/vc/emacs-bzr/trunk/../site-lisp': No such file or directory [New Thread 3904.0x13a0] [Inferior 1 (process 3904) exited with code 03] (gdb)