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]
Other format: [Raw text]

Re: lin-lwp.c assertion failures


Following up [on] my own post:

I've done the following now to try to track down the failure causes: 
(I'm on an AMD Duron running Debian Woody)
- removed gcc-2.95 and installed gcc-3.1, compiled my library with 
this compiler and tried to attach & continue still with gdb 
5.2.cvs20020401-6 (from Debian).
- removed gcc-3.1 again and reinstalled 2.95.4, recompiled library 
and tried to attach & continue still with same gdb version.
- fetched gdb 5.2 source and ./configure && make && make install, 
used this gdb to attach & continue.

Same thing with all the above.

For gdb 5.2 I've told it to drop a core and got a bt which I'm 
pasting below. Tell me if you need anything else.

Yours,
Christian Jaeger


root@pflanze root# gdb proftpd 18553
GNU gdb 5.2
Copyright 2002 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-linux-gnu"...(no debugging 
symbols found)...
Attaching to program: /usr/sbin/proftpd, process 18553
Reading symbols from /home/chris/avfs-0.9.0-fe6/preload/avfs_preload.so...done.
...
Reading symbols from /lib/libpthread.so.0...done.
[New Thread 1024 (LWP 10218)]
Error while reading shared library symbols:
Can't attach LWP 10218: No such process
Reading symbols from /usr/lib/libwmf-0.2.so.2...done.
...
Loaded symbols for /lib/libnss_compat.so.2
0x4024ce1e in select () from /lib/libc.so.6
(gdb) continue
Continuing.
lin-lwp.c:1105: gdb-internal-error: lin_lwp_wait: Assertion 
`WIFSTOPPED (status) && WSTOPSIG (status) == SIGSTOP' failed.
An internal GDB error was detected.  This may make further
debugging unreliable.  Quit this debugging session? (y or n) y

Create a core file containing the current state of GDB? (y or n) y
Aborted (core dumped)

root@pflanze root# gdb /usr/local/bin/gdb core
GNU gdb 5.2
Copyright 2002 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-linux-gnu"...
Core was generated by `gdb proftpd 18553'.
Program terminated with signal 6, Aborted.
...
(gdb) bt
#0  0x400b5911 in kill () from /lib/libc.so.6
#1  0x400b55f4 in raise () from /lib/libc.so.6
#2  0x400b6d71 in abort () from /lib/libc.so.6
#3  0x080d16bd in internal_verror (file=0x81ae49d "lin-lwp.c", line=1105,
     fmt=0x81ae482 "%s%sAssertion `%s' failed.", ap=0xbffff060) at utils.c:728
#4  0x080d1710 in safe_strerror (errnum=135980189) at utils.c:751
#5  0x080add30 in lin_lwp_wait (ptid={pid = -1, lwp = 0, tid = 0}, 
ourstatus=0xbffff1cc)
     at lin-lwp.c:1105
#6  0x080e8f1d in thread_db_wait (ptid={pid = -1, lwp = 0, tid = 0}, 
ourstatus=0xbffff1cc)
     at thread-db.c:725
#7  0x08092944 in wait_for_inferior () at infrun.c:1238
#8  0x08092782 in proceed (addr=4294967295, 
siggnal=TARGET_SIGNAL_DEFAULT, step=0) at infrun.c:1037
#9  0x0808ffb3 in continue_command (proc_count_exp=0x0, from_tty=1) 
at infcmd.c:528
#10 0x08126ac7 in do_cfunc (c=0x8226cb8, args=0x0, from_tty=1) at 
./cli/cli-decode.c:50
#11 0x080cf403 in execute_command (p=0x821cc51 "", from_tty=1) at top.c:715
#12 0x0809b816 in command_handler (command=0x821cc48 "continue ") at 
event-top.c:504
#13 0x0809be83 in command_line_handler (rl=0x821cc28 "continue ") at 
event-top.c:800
#14 0x0817b68a in rl_callback_read_char () at callback.c:114
#15 0x0809b17b in rl_callback_read_char_wrapper (client_data=0x0) at 
event-top.c:168
#16 0x0809b6ed in stdin_event_handler (error=0, client_data=0x0) at 
event-top.c:418
#17 0x080e16f6 in handle_file_event (event_file_desc=0) at event-loop.c:714
#18 0x080e1206 in process_event () at event-loop.c:335
#19 0x080e1245 in gdb_do_one_event (data=0x0) at event-loop.c:372
#20 0x080cf07b in do_catch_errors (uiout=0x823a198, data=0xbffff5a4) 
at top.c:491
#21 0x080cef45 in catcher (func=0x80cf068 <do_catch_errors>, 
func_uiout=0x823a198,
     func_args=0xbffff5a4, func_val=0xbffff59c, 
func_caught=0xbffff5a0, errstring=0x81c1e60 "",
     mask=6) at top.c:423
#22 0x080cf0bb in catch_errors (func=0x80e121c <gdb_do_one_event>, 
func_args=0x0,
     errstring=0x81c1e60 "", mask=6) at top.c:503
#23 0x080e1283 in start_event_loop () at event-loop.c:416
#24 0x0809b262 in cli_command_loop () at event-top.c:200
#25 0x080710f8 in captured_command_loop (data=0x0) at main.c:94
#26 0x080cf07b in do_catch_errors (uiout=0x823a198, data=0xbffff754) 
at top.c:491
#27 0x080cef45 in catcher (func=0x80cf068 <do_catch_errors>, 
func_uiout=0x823a198,
     func_args=0xbffff754, func_val=0xbffff74c, 
func_caught=0xbffff750, errstring=0x8192cad "",
     mask=6) at top.c:423
#28 0x080cf0bb in catch_errors (func=0x80710e0 
<captured_command_loop>, func_args=0x0,
     errstring=0x8192cad "", mask=6) at top.c:503
#29 0x08071b73 in captured_main (data=0xbffffa24) at main.c:723
#30 0x080cf07b in do_catch_errors (uiout=0x81fe6c0, data=0xbffff9f4) 
at top.c:491
#31 0x080cef45 in catcher (func=0x80cf068 <do_catch_errors>, 
func_uiout=0x81fe6c0,
     func_args=0xbffff9f4, func_val=0xbffff9ec, 
func_caught=0xbffff9f0, errstring=0x8192cad "",
     mask=6) at top.c:423
#32 0x080cf0bb in catch_errors (func=0x807112c <captured_main>, 
func_args=0xbffffa24,
     errstring=0x8192cad "", mask=6) at top.c:503
#33 0x08071b9f in main (argc=3, argv=0xbffffa94) at main.c:734
#34 0x400a565f in __libc_start_main () from /lib/libc.so.6
(gdb)


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