all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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: Tue, 12 Feb 2008 10:49:29 +0100	[thread overview]
Message-ID: <forq38$g2k$1@ger.gmane.org> (raw)
In-Reply-To: <u7ihaq09v.fsf@gnu.org>

Eli Zaretskii wrote:
>> From: Eric Lilja <mindcooler@gmail.com>
>> Date: Mon, 11 Feb 2008 23:57:00 +0100
>>
>> I'm doing a fresh build right now (I wonder if I should have disabled 
>> the new font backend this time to see what happened, oh well).
> 
> The default is to build with font backend disabled, so if you didn't
> _enable_ it, you are building without it.

Yes, sorry.

> 
>> Could you explain how exactly I would do that in gdb?
> 
> From the src directory:
> 
>   gdb ./oo-spd/i386/emacs.exe
>   (gdb) break init_user_info
>   (gdb) run -Q
> 
> Then, when it stops in init_user_info, type:
> 
>   (gdb) until 619
> 
> (619 is the number of the line where it calls
> get_sid_sub_authority_count.)
> 
> When it stops at line 619, type "step" repeatedly to step through
> get_sid_sub_authority_count, and see what happens there.
> 
> If you compiled with optimizations, it could be that
> get_sid_sub_authority_count is inlined, and you will have difficulties
> stepping through it.  If that happens, please recompile without
> optimizations (edit gmake.defs to remove the -U2 compiler switch, then
> run configure, make, make install to rebuild).
> 
>> If I copy the source along with the binaries, will gdb be able to
>> find it and I can put a breakpoint in there?
> 
> If it doesn't find the sources, use the `dir' command to tell GDB
> where to find the sources.  This command accepts a name of a directory
> and adds it to the list of directories where GDB looks for sources.
> 
> Btw, is that a 32-bit Vista or a 64-bit one?
> 
> 
> 

It's a 32-bit vista. Here's my new gdb session:

$ 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 0x114ad94: file w32fns.c, line 9317.
Breakpoint 2 at 0x10a01d4: file sysdep.c, line 1319.
(gdb) break init_user_info
Breakpoint 3 at 0x1080d4c: file w32.c, line 598.
(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.d
ll
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:598
598       DWORD        length = sizeof (name), dlength = sizeof 
(domain), trash;
(gdb) until 619
init_user_info () at w32.c:619
619               DWORD n_subauthorities =
(gdb) step
get_sid_sub_authority_count (pSid=0x82f288) at w32.c:388
388     {
(gdb) step
392       if (is_windows_9x () == TRUE)
(gdb) step
is_windows_9x () at w32.c:179
179       if (g_b_init_is_windows_9x == 0)
(gdb) step
190     }
(gdb) step
get_sid_sub_authority_count (pSid=0x82f288) at w32.c:396
396       if (g_b_init_get_sid_sub_authority_count == 0)
(gdb) step
404       if (s_pfn_Get_Sid_Sub_Authority_Count == NULL)
(gdb) step
408       return (s_pfn_Get_Sid_Sub_Authority_Count (pSid));
(gdb) step
409     }
(gdb) step
get_sid_sub_authority_count (pSid=0x0) at w32.c:408
408       return (s_pfn_Get_Sid_Sub_Authority_Count (pSid));
(gdb) step
0x77df986b in ntdll!_fltused ()
(gdb) step
Single stepping until exit from function ntdll!_fltused,
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x77df9871 in ntdll!_fltused ()
(gdb)

Hope this helps!

- Eric





  reply	other threads:[~2008-02-12  9:49 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 [this message]
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
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='forq38$g2k$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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.