From: Eric Lilja <mindcooler@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: emacs 23.0.60.1 built today (11th feb 2008) crashes under Vista
Date: Sun, 17 Feb 2008 14:09:33 +0100 [thread overview]
Message-ID: <fp9bma$cke$1@ger.gmane.org> (raw)
In-Reply-To: <u63woky8a.fsf@gnu.org>
Eli Zaretskii wrote:
>> From: Eric Lilja <mindcooler@gmail.com>
>> Date: Sat, 16 Feb 2008 23:10:23 +0100
>>
>> Eli Zaretskii wrote:
>>>> Date: Thu, 14 Feb 2008 23:44:36 +0200
>>>> From: Eli Zaretskii <eliz@gnu.org>
>>>> Cc: emacs-devel@gnu.org
>>>>
>>>> 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
next prev parent reply other threads:[~2008-02-17 13:09 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 12:11 emacs 23.0.60.1 built today (11th feb 2008) crashes under Vista Eric Lilja
2008-02-11 12:26 ` Jason Rumney
2008-02-11 12:30 ` Eric Lilja
2008-02-11 12:40 ` Jason Rumney
2008-02-11 12:48 ` Eric Lilja
2008-02-11 12:51 ` Jason Rumney
2008-02-11 13:10 ` Eric Lilja
2008-02-11 21:52 ` Eli Zaretskii
2008-02-11 22:57 ` Eric Lilja
2008-02-12 4:14 ` Eli Zaretskii
2008-02-12 9:49 ` Eric Lilja
2008-02-13 20:22 ` Eli Zaretskii
2008-02-13 22:57 ` Eric Lilja
2008-02-14 0:03 ` Juanma Barranquero
2008-02-14 0:44 ` Eric Lilja
2008-02-14 0:54 ` Juanma Barranquero
2008-02-14 1:06 ` Eric Lilja
2008-02-14 1:18 ` Eric Lilja
2008-02-14 8:32 ` Jason Rumney
2008-02-14 19:59 ` Eli Zaretskii
2008-02-14 19:47 ` Eli Zaretskii
2008-02-14 20:12 ` Eric Lilja
2008-02-14 21:44 ` Eli Zaretskii
2008-02-16 17:07 ` Eli Zaretskii
2008-02-16 22:10 ` Eric Lilja
2008-02-17 4:23 ` Eli Zaretskii
2008-02-17 13:09 ` Eric Lilja [this message]
2008-02-17 15:09 ` Eli Zaretskii
2008-02-17 15:47 ` Eric Lilja
2008-02-17 15:51 ` Eric Lilja
2008-02-17 16:48 ` Eli Zaretskii
2008-02-17 16:46 ` Eli Zaretskii
2008-02-17 16:59 ` Eric Lilja
2008-02-14 0:57 ` Kenichi Handa
2008-02-12 17:45 ` Richard Stallman
2008-02-14 21:10 ` Eric Hanchrow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='fp9bma$cke$1@ger.gmane.org' \
--to=mindcooler@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).