bug-gnu-emacs
[Top][All Lists]
Advanced

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

debugging emacs


From: Adam
Subject: debugging emacs
Date: Mon, 25 Jun 2001 13:11:46 -0500 (EST)

hello,
        I had been looking over the tips for debugging emacs in
        info pages  Emacs:Bugs:Checklist for bug reports. There
        are valuable tips for debugging it with gdb..

        what i'm trying to debug is look-as-if-it-had-hung
        condition. However it seems gdb gets thoroughly confused
        by the select() call and does not know how to get out of it.

        I have attached sample debug session below. suggestions
        how to get around this?

[adam@pepsi src]$ gdb ../../build/src/emacs-20.7.1
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 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 "i386-redhat-linux"...
DISPLAY = :0.0
TERM = xterm
Breakpoint 1 at 0x8096552: file /usr/src/emacs/emacs-20.7/src/emacs.c,
line 282.
Breakpoint 2 at 0x808797e: file /usr/src/emacs/emacs-20.7/src/xterm.c,
line 5335.
(gdb) run
Starting program:
/usr/src/emacs/emacs-20.7/src/../../build/src/emacs-20.7.1 -geometry
80x40+0+0

Program received signal SIGTSTP, Stopped (user).
0x4033190e in __select () from /lib/i686/libc.so.6
(gdb) finish
Run till exit from #0  0x4033190e in __select () from /lib/i686/libc.so.6
warning: Cannot insert breakpoint 0:
Cannot access memory at address 0x0
(gdb) bt
#0  0x4033190e in __select () from /lib/i686/libc.so.6
#1  0x00000000 in __strtol_internal (nptr=0x78 <Address 0x78 out of
bounds>,
    endptr=0x0, base=1, group=1)
(gdb) xbacktrace
Attempt to extract a component of a value that is not a structure pointer.
(gdb) quit
The program is running.  Exit anyway? (y or n) y
[adam@pepsi src]$ gdb ../../build/src/emacs-20.7.1 -q
DISPLAY = :0.0
TERM = xterm
Breakpoint 1 at 0x8096552: file /usr/src/emacs/emacs-20.7/src/emacs.c,
line 282.
Breakpoint 2 at 0x808797e: file /usr/src/emacs/emacs-20.7/src/xterm.c,
line 5335.
(gdb) run
Starting program:
/usr/src/emacs/emacs-20.7/src/../../build/src/emacs-20.7.1 -geometry
80x40+0+0

Program received signal SIGTSTP, Stopped (user).
0x4033190e in __select () from /lib/i686/libc.so.6
(gdb) finish
Run till exit from #0  0x4033190e in __select () from /lib/i686/libc.so.6
warning: Cannot insert breakpoint 0:
Cannot access memory at address 0x0
(gdb) bt
#0  0x4033190e in __select () from /lib/i686/libc.so.6
#1  0x00000000 in __strtol_internal (nptr=0x78 <Address 0x78 out of
bounds>,
    endptr=0x0, base=1, group=1)
(gdb) xbacktrace
Attempt to extract a component of a value that is not a structure pointer.
(gdb)


-- 
Adam
http://www.eax.com      The Supreme Headquarters of the 32 bit registers





reply via email to

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