Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: multi-thread debugging not working
@ 2002-07-16 19:05 Lucy Zhang
  2002-07-16 19:08 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Lucy Zhang @ 2002-07-16 19:05 UTC (permalink / raw)
  To: gdb


----- Original Message ----- 
From: "Lucy Zhang" <lucyz@uclink4.berkeley.edu>
To: "Dan Kegel" <dkegel@ixiacom.com>; <gdb@source.redhat.com>
Sent: Friday, July 16, 2038 7:05 PM
Subject: Re: multi-thread debugging not working


> Really?
> I'm running on Linux Redhat
> Version 2.2
> Machine i686
> 
> the core dump is converted and has the VMA's for the thread stacks. GDB
> still won't see it?
> 
> ----- Original Message -----
> From: "Dan Kegel" <dkegel@ixiacom.com>
> To: "Lucy Zhang" <lucyz@uclink4.berkeley.edu>
> Sent: Tuesday, July 16, 2002 6:10 PM
> Subject: Re: multi-thread debugging not working
> 
> 
> > What operating system?  Linux by default doesn't do multithreaded core
> dumps.
> >
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread
* problem loading libpthread.so
@ 2002-07-16 13:16 Lucy Zhang
  2002-07-16 13:23 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Lucy Zhang @ 2002-07-16 13:16 UTC (permalink / raw)
  To: gdb

Hi,

I used GDB to debug an ELF core dump which was converted from a different
formatted dump. However when I run GDB I get the following error:
This GDB was configured as "i386-redhat-linux"...
Core was generated by `vlio_test8'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /lib/i686/libpthread.so.0...done.

warning: Unable to set global thread event mask: generic error
Segmentation fault (core dumped)


So I tried to debug GDB using GDB and got the following results:

/work/lucy/lucy1_0524/src/user/elf > gdb gdb -c core
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"...(no debugging symbols
found)...
Core was generated by `gdb -f vlio_test8.020715.042017 -c
elf.020715.042017'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libncurses.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libthread_db.so.1...done.
Loaded symbols for /lib/libthread_db.so.1
#0 td_ta_thr_iter (ta=0x82f7468, callback=0x80e91f0 <thread_db_init+3456>,
cbdata_p=0x0, state=TD_THR_ANY_STATE, ti_pri=-20, ti_sigmask_p=0x0,
ti_user_flags=4294967295) at td_ta_thr_iter.c:28
28 td_ta_thr_iter.c: No such file or directory.
in td_ta_thr_iter.c

(gdb) backtrace
#0 td_ta_thr_iter (ta=0x82f7468, callback=0x80e91f0 <thread_db_init+3456>,
cbdata_p=0x0, state=TD_THR_ANY_STATE, ti_pri=-20, ti_sigmask_p=0x0,
ti_user_flags=4294967295) at td_ta_thr_iter.c:28
#1 0x080e9291 in thread_db_init () at eval.c:41
#2 0x080e8a31 in thread_db_init () at eval.c:41
#3 0x0808845d in symbol_file_add () at eval.c:41
#4 0x080a66c8 in free_so () at eval.c:41
#5 0x080c8f1b in catch_errors () at eval.c:41
#6 0x080a69d9 in solib_add () at eval.c:41
#7 0x080e6698 in default_check_format () at eval.c:41
#8 0x080c8f1b in catch_errors () at eval.c:41
#9 0x080e6996 in default_check_format () at eval.c:41
#10 0x080ba128 in core_file_command () at eval.c:41
#11 0x080c8fa3 in catch_errors () at eval.c:41
#12 0x080c8f1b in catch_errors () at eval.c:41
#13 0x080c8ff0 in catch_command_errors () at eval.c:41
#14 0x0806f1c9 in _start () at eval.c:41
#15 0x080c8f1b in catch_errors () at eval.c:41
#16 0x0806f3b7 in main () at eval.c:41
#17 0x400ac177 in __libc_start_main (main=0x806f390 <main>, argc=5,
ubp_av=0xbffffb4c, init=0x806de0c <_init>, fini=0x818555c <_fini>,
rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffffb3c)
at ../sysdeps/generic/libc-start.c:129

Does anyone know what may have caused the seg fault. I'm not very familiar
with GDB at all. So if anyone has any guess or intuitions about the cause of
this problem please share.

Thank you very much,
Lucy


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-07-18 21:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-16 19:05 multi-thread debugging not working Lucy Zhang
2002-07-16 19:08 ` Daniel Jacobowitz
2002-07-17 12:54   ` Lucy Zhang
  -- strict thread matches above, loose matches on Subject: below --
2002-07-16 13:16 problem loading libpthread.so Lucy Zhang
2002-07-16 13:23 ` Daniel Jacobowitz
2002-07-16 16:54   ` multi-thread debugging not working Lucy Zhang
2002-07-16 18:41     ` Daniel Jacobowitz
2002-07-17 15:08     ` Jim Blandy
2002-07-17 16:30       ` Lucy Zhang
2002-07-18 14:55         ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox