emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MS-Windows build using Posix configury


From: Dmitry Gutov
Subject: Re: MS-Windows build using Posix configury
Date: Sat, 18 May 2013 17:24:31 +0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

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 <command_loop_1>,
    handlers=54750330, hfun=0x10bac81 <cmd_error>) 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 <command_loop_2>, 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]