This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Fwd: Insight freezes when trying to debug Mozilla]


I'm trying to debug Mozilla using Insight.

When I run mozilla with the debug option the insight debugger comes
up and lets me start mozilla. I click the run button and it starts
and then does a break at main. When I press continue mozilla comes
up but insight never responds again (not screen refresh or button
response.

It seems that gdb is sleeping in sigsuspend.

It appears that gdbtk-hooks.c:693 the code
    turns on a timer
    waits for the timer or a child thread to signal
    turn off the time

I believe that the code at lin-lwp.c:766 the code tries to allow the
timer signal
wake gdb up but this does not appear to happen to gdb sleeps and the
GUI is frozen.

I am running version 20000930 (/usr/local/bin/gdb).

I attached a second gdb to insight's gdb.
Here is the output for the xterm where I was running gdb on gdb:
(/usr/bin/gdb is a non-insight gdb I'm using to debug gdb)
=====================================================================

    [root@localhost gdb]# /usr/bin/gdb /usr/local/bin/gdb
    GNU gdb 19991004
    Copyright 1998 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"...
    Setting up the environment for debugging gdb.
    Breakpoint 1 at 0x810a062: file utils.c, line 735.
    Breakpoint 2 at 0x81074ff: file top.c, line 2897.
    (top-gdb) attach 22239
    Attaching to program: /usr/local/bin/gdb, Pid 22239
    Reading symbols from /usr/lib/libncurses.so.4...done.
    Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
    Reading symbols from /lib/libdl.so.2...done.
    Reading symbols from /lib/libm.so.6...done.
    Reading symbols from /lib/libc.so.6...done.
    Reading symbols from /lib/ld-linux.so.2...done.
    Reading symbols from /lib/libthread_db.so.1...done.
    0x40140deb in __sigsuspend (set=0x83e36c0) at
../sysdeps/unix/sysv/linux/sigsuspend.c:48
    48      ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or
directory.
    (top-gdb) bt
    #0  0x40140deb in __sigsuspend (set=0x83e36c0) at
../sysdeps/unix/sysv/linux/sigsuspend.c:48
    #1  0x80d1092 in lin_lwp_wait (pid=-1, ourstatus=0xbfffc074) at
lin-lwp.c:766
    #2  0x812dd11 in thread_db_wait (pid=-1, ourstatus=0xbfffc074) at
thread-db.c:710
    #3  0x80e1ad7 in gdbtk_wait (pid=-1, ourstatus=0xbfffc074) at
./gdbtk/generic/gdbtk-hooks.c:694
    #4  0x80b269f in wait_for_inferior () at infrun.c:1286
    #5  0x80b252c in proceed (addr=4294967295,
siggnal=TARGET_SIGNAL_DEFAULT, step=0) at infrun.c:1085
    #6  0x80afba3 in continue_command (proc_count_exp=0x0, from_tty=0)
at infcmd.c:399
    #7  0x80e1666 in gdbtk_call_command (cmdblk=0x8418140, arg=0x0,
from_tty=0) at ./gdbtk/generic/gdbtk-hooks.c:513
    #8  0x8105915 in execute_command (p=0x89a4310 "", from_tty=0) at
top.c:1517
    #9  0x80dadb5 in gdb_immediate_command (clientData=0x80dace4,
interp=0x8424fb0, objc=2, objv=0x8425c68) at
./gdbtk/generic/gdbtk-cmds.c:892
    #10 0x80da888 in wrapped_call (opaque_args=0xbfffc284) at
./gdbtk/generic/gdbtk-cmds.c:536
    #11 0x81048d9 in catch_errors (func=0x80da858 <wrapped_call>,
args=0xbfffc284, errstring=0x8356883 "", mask=6) at top.c:607
    #12 0x80da78e in call_wrapper (clientData=0x80dace4,
interp=0x8424fb0, objc=2, objv=0x8425c68) at
./gdbtk/generic/gdbtk-cmds.c:474
    #13 0x82ff5f9 in TclExecuteByteCode (interp=0x8424fb0,
codePtr=0x8789528) at ./../generic/tclExecute.c:955
    #14 0x82de521 in Tcl_EvalObj (interp=0x8424fb0, objPtr=0x853ccf8) at
./../generic/tclBasic.c:2645
    #15 0x83297d1 in TclObjInterpProc (clientData=0x85a8d10,
interp=0x8424fb0, objc=1, objv=0x8425c64) at ./../generic/tclProc.c:996
    #16 0x82ff5f9 in TclExecuteByteCode (interp=0x8424fb0,
codePtr=0x89a4288) at ./../generic/tclExecute.c:955
    #17 0x82de521 in Tcl_EvalObj (interp=0x8424fb0, objPtr=0x897ac40) at
./../generic/tclBasic.c:2645
    #18 0x82eb10d in Tcl_SwitchObjCmd (dummy=0x0, interp=0x8424fb0,
objc=3, objv=0x8425c58)
    ---Type <return> to continue, or q <return> to quit---q
     at ./../generic/tclCmdMZ.c:17Quit
    (top-gdb)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]