|
Buzzz...
Thanks for playing, but no dice.
You missed the frame command. Without backing up
through the stack into our code, you are listing __kernel_vsyscall. Since gdb doesn't have the sources
for it, you just get the first few lines of ntop's initialization
routine.
All that said and as was pointed out
in another thread
(1) We don't support other people's RPMs. Just no way
to know what version it is, what patches, etc.
(2) Kenneth's comment re stripping symbols may make gdb
fail to show anything in frame 5 anyway.
(3) Use the source and see if it still
fails.
-----Burton
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Randy Gordey Sent: Tuesday, August 02, 2005 9:16 AM To: [email protected] Subject: RE: [Ntop-dev] BUG: build on FC4 First I installed the debuginfo from the rpmbuild [EMAIL PROTECTED] i386]rpm -ihv /usr/src/redhat/RPMS/i386/ntop-debuginfo-3.1-1.2.fc4.rf.i386.rpm
So now I have
[EMAIL PROTECTED] i386]# gdb ntop GNU gdb Red Hat Linux (6.3.0.0-1.21rh) Copyright 2004 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-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) set args -u root -K <snip />
Program received signal SIGABRT, Aborted. [Switching to Thread -1208719680 (LWP 26085)] 0x00979402 in __kernel_vsyscall () (gdb) list 259 /* ************************************ */ 260 261 /* That's the meat */ 262 #ifdef WIN32 263 int ntop_main(int argc, char *argv[]) { 264 #else 265 int main(int argc, char *argv[]) { 266 #endif 267 int i, rc, userSpecified; 268 char ifStr[196] = {0}; (gdb) info stack #0 0x00979402 in __kernel_vsyscall () #1 0x006e71f8 in raise () from /lib/libc.so.6 #2 0x006e8948 in abort () from /lib/libc.so.6 #3 0x0071c52a in __libc_message () from /lib/libc.so.6 #4 0x0079d565 in __chk_fail () from /lib/libc.so.6 #5 0x00e2d484 in initDevices (devices=0x0) at initialize.c:1499 #6 0x00e23e57 in initNtop (devices=0x0) at globals-core.c:599 #7 0x0804aaf5 in main (argc=4, argv=0xbfb57e84) at main.c:471 #8 0x006d3de6 in __libc_start_main () from /lib/libc.so.6 #9 0x08049c01 in _start () (gdb) bt full #0 0x00979402 in __kernel_vsyscall () No symbol table info available. #1 0x006e71f8 in raise () from /lib/libc.so.6 No symbol table info available. #2 0x006e8948 in abort () from /lib/libc.so.6 No symbol table info available. #3 0x0071c52a in __libc_message () from /lib/libc.so.6 No symbol table info available. #4 0x0079d565 in __chk_fail () from /lib/libc.so.6 No symbol table info available. #5 0x00e2d484 in initDevices (devices=0x0) at initialize.c:1499 tmpDev = Variable "tmpDev" is not available. (gdb)
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton Strauss
<snip />
(gdb) frame 5 (gdb) list
<snip />
|
_______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
