From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 532 invoked by alias); 16 Jul 2002 20:16:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 511 invoked from network); 16 Jul 2002 20:16:00 -0000 Received: from unknown (HELO uclink4.berkeley.edu) (128.32.25.39) by sources.redhat.com with SMTP; 16 Jul 2002 20:16:00 -0000 Received: from zhangl (p1.almaden.ibm.com [198.4.83.52]) by uclink4.berkeley.edu (8.12.3/8.12.3) with SMTP id g6GKG0we024528 for ; Tue, 16 Jul 2002 13:16:00 -0700 (PDT) Message-ID: <008001ea898d$73096110$9a0a0109@zhangl> From: "Lucy Zhang" To: Subject: problem loading libpthread.so Date: Tue, 16 Jul 2002 13:16:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-07/txt/msg00161.txt.bz2 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 , 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 , 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
, 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