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]

problem loading libpthread.so


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


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