This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
symtab/1495: No information from symbol table
- From: nik at kemsu dot ru
- To: gdb-gnats at sources dot redhat dot com
- Date: 26 Dec 2003 06:44:59 -0000
- Subject: symtab/1495: No information from symbol table
- Reply-to: nik at kemsu dot ru
>Number: 1495
>Category: symtab
>Synopsis: No information from symbol table
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Dec 26 06:48:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: nik@kemsu.ru
>Release: 5.3
>Organization:
>Environment:
RedHat 6.2. Intel.
>Description:
Typescript:
"[root@radius chessd]# 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".
(gdb) file bin/chessd
Reading symbols from bin/chessd...done.
(gdb) attach 3822
Attaching to program: /usr/local/debug2-chessd/chessd/bin/chessd, Pid 3822
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/local/debug2-chessd/chessd/./lib/chessd.so...done.
0x1f717e in __select () from /lib/libc.so.6
(gdb) bt
#0 0x1f717e in __select () from /lib/libc.so.6
#1 0x2ac73c in ?? () from /usr/local/debug2-chessd/chessd/./lib/chessd.so
#2 0x8048d78 in main_event_loop () at ficsmain.c:90
#3 0x8049222 in main (argc=5, argv=0xbffffa44) at ficsmain.c:232
(gdb) f 1
#1 0x2ac73c in ?? () from /usr/local/debug2-chessd/chessd/./lib/chessd.so
(gdb) l
175 snprintf(cmd, sizeof(cmd), "/home/fics/bin/backtrace %d > /home/fics/chessd/segv_%d 2>&1",
176 (int)getpid(), (int)getpid());
177 system(cmd);
178 _exit(1);
179 }
180
181 int main(int argc, char *argv[])
182 {
183 int i, foreground, port;
184 void (*timeseal_init)(const char * ) = chessd_function("timeseal_init");
(gdb) quit
The program is running. Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/local/debug2-chessd/chessd/bin/chessd, Pid 3822
Press any key to continue..."
GDB wrote: "Reading symbols from /usr/local/debug2-chessd/chessd/./lib/chessd.so...done." The path is very strange, 'cause .so lays at "/usr/local/debug2-chessd/chessd/lib/chessd.so", not in "/usr/local/debug2-chessd/chessd/./lib/chessd.so". But reading is done. OK. So what that means: "0x2ac73c in ?? () from /usr/local/debug2-chessd/chessd/./lib/chessd.so". If GDB read symbol table, why function is: "?? ()"?? 'list' command in this case showed rubbish too.
P.S. All files that is included in .so was compiled with gcc '-g' flag.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: