emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs 23.0.60.1 built today (11th feb 2008) crashes under Vista


From: Eric Lilja
Subject: Re: emacs 23.0.60.1 built today (11th feb 2008) crashes under Vista
Date: Sun, 17 Feb 2008 14:09:33 +0100
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Eli Zaretskii wrote:
From: Eric Lilja <address@hidden>
Date: Sat, 16 Feb 2008 23:10:23 +0100

Eli Zaretskii wrote:
Date: Thu, 14 Feb 2008 23:44:36 +0200
From: Eli Zaretskii <address@hidden>
Cc: address@hidden

Thanks, I will try to fix w32.c when I have time, hopefully soon.
Could you please try again with the latest version in CVS?



Still crashes I'm afraid.

Hmm... there's something I'm missing here, obviously.

Could you please again step through the call to
get_sid_sub_authority_count, and print the value of pSid at each step?
The command "display/x pSid" should do that; please type this command
as soon as you step into get_sid_sub_authority_count, and then
continue with the "next" command until the crash.  I also need the to
see value of user_token.User.Sid inside init_user_info, immediately
before the call to get_sid_sub_authority_count.

Thanks, and sorry for the mess.




As you know, I'm not very good at gdb. I had some problems when debugging this (and here I'm refering to the "Cannot find bounds of current function", see below). Hope this log helps, if not, I can attempt to redo it in a proper way, with your guidance.


$ gdb ./oo-spd/i386/emacs.exe
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
Environment variable "DISPLAY" not defined.
TERM = cygwin
Breakpoint 1 at 0x114b0c4: file w32fns.c, line 9317.
Breakpoint 2 at 0x10a0434: file sysdep.c, line 1319.
(gdb) break init_user_info
Breakpoint 3 at 0x1080f9c: file w32.c, line 599.
(gdb) run -Q
Starting program: /home/mindcooler/emacs/src/oo-spd/i386/emacs.exe -Q
Loaded symbols for /cygdrive/c/Windows/system32/ntdll.dll
Loaded symbols for /cygdrive/c/Windows/system32/kernel32.dll
Loaded symbols for /cygdrive/c/Windows/system32/msvcrt.dll
Loaded symbols for /cygdrive/c/Windows/system32/advapi32.dll
Loaded symbols for /cygdrive/c/Windows/system32/rpcrt4.dll
Loaded symbols for /cygdrive/c/Windows/WinSxS/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100/comctl32.dll
Loaded symbols for /cygdrive/c/Windows/system32/gdi32.dll
Loaded symbols for /cygdrive/c/Windows/system32/user32.dll
Loaded symbols for /cygdrive/c/Windows/system32/shlwapi.dll
Loaded symbols for /cygdrive/c/Windows/system32/comdlg32.dll
Loaded symbols for /cygdrive/c/Windows/system32/shell32.dll
Loaded symbols for /cygdrive/c/Windows/system32/mpr.dll
Loaded symbols for /cygdrive/c/Windows/system32/ole32.dll
Loaded symbols for /cygdrive/c/Windows/system32/winmm.dll
Loaded symbols for /cygdrive/c/Windows/system32/oleaut32.dll
Loaded symbols for /cygdrive/c/Windows/system32/oleacc.dll
Loaded symbols for /cygdrive/c/Windows/system32/winspool.drv

Breakpoint 3, init_user_info () at w32.c:599
599 DWORD length = sizeof (name), dlength = sizeof (domain), trash;
(gdb) n
600       HANDLE       token = NULL;
(gdb) n
606       if (open_process_token (GetCurrentProcess (), TOKEN_QUERY, &token)
(gdb) n
613           strcpy (the_passwd.pw_name, name);
(gdb) s
615           if (stricmp ("administrator", name) == 0)
(gdb) s
624               DWORD n_subauthorities =
(gdb) print user_token.User.Sid
$1 = (PSID) 0x82ea68
(gdb) s
get_sid_sub_authority_count (pSid=0x82ea68) at w32.c:389
389     {
(gdb) display/x pSid
1: /x pSid = 0x82f270
(gdb) n
393       if (is_windows_9x () == TRUE)
1: /x pSid = 0x82ea68
(gdb) n
397       if (g_b_init_get_sid_sub_authority_count == 0)
1: /x pSid = 0x82ea68
(gdb) n
405       if (s_pfn_Get_Sid_Sub_Authority_Count == NULL)
1: /x pSid = 0x82ea68
(gdb) n
409       return (s_pfn_Get_Sid_Sub_Authority_Count (pSid));
1: /x pSid = 0x82ea68
(gdb) n
410     }
1: /x pSid = 0x82ea68
(gdb) n
get_sid_sub_authority_count (pSid=0x0) at w32.c:409
409       return (s_pfn_Get_Sid_Sub_Authority_Count (pSid));
1: /x pSid = 0x82f270
(gdb) n
0x77df986b in ?? ()
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) s
Cannot find bounds of current function
(gdb) step out
No symbol "out" in current context.
(gdb) n
Cannot find bounds of current function
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x77df986b in ?? ()
(gdb) bt
#0  0x77df986b in ?? ()
#1  0x010811cd in init_user_info () at w32.c:624
#2  0x010839b0 in init_environment (argv=0x922960) at w32.c:1303
#3  0x0100260e in main (argc=2, argv=0x922960) at emacs.c:1506
(gdb)

This was with a fresh checkout performed just an hour ago.

- Eric





reply via email to

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