#wget http://easynews.dl.sourceforge.net/sourceforge/ntop/ntop-3.1.tgz

#tar -xvzf ntop-3.1.tgz

#cd ntop

#./configure (I can attach config.log if you think it will help it didn’t complain about anything other than xmldump plugin)

#make

#make install

 

[EMAIL PROTECTED] ~]# 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

(gdb) r

Starting program: /usr/local/bin/ntop -u root -K

Reading symbols from shared object read from target memory...done.

Loaded system supplied DSO at 0xc08000

[Thread debugging using libthread_db enabled]

[New Thread -1208338752 (LWP 32287)]

Wed Aug  3 10:06:18 2005  Initializing gdbm databases

Wed Aug  3 10:06:18 2005  ntop v.3.1 MT (SSL)

Wed Aug  3 10:06:18 2005  Configured on Aug  3 2005 10:02:06, built on Aug  3 2005 10:03:25.

Wed Aug  3 10:06:18 2005  Copyright 1998-2004 by Luca Deri <[EMAIL PROTECTED]>

Wed Aug  3 10:06:18 2005  Get the freshest ntop from http://www.ntop.org/

Wed Aug  3 10:06:18 2005  Initializing ntop

Wed Aug  3 10:06:18 2005  Checking eth0 for additional devices

Wed Aug  3 10:06:18 2005  Added virtual interface: 'eth0:1'

Wed Aug  3 10:06:18 2005  Resetting traffic statistics for device eth0

Wed Aug  3 10:06:18 2005  DLT: Device 0 [eth0] is 1, mtu 1514, header 14

 

Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread -1208338752 (LWP 32287)]

initNtop (devices=Cannot access memory at address 0x8

) at globals-core.c:602

602       if(myGlobals.runningPref.enableSessionHandling)

(gdb) list

597        */

598       if (myGlobals.capturePackets == FLAG_NTOPSTATE_RUN) {

599           initDevices(devices);

600       }

601

602       if(myGlobals.runningPref.enableSessionHandling)

603         initPassiveSessions();

604

605       /* ********************************** */

606

(gdb) frame 5

Cannot access memory at address 0x4

(gdb) bt full

#0  initNtop (devices=Cannot access memory at address 0x8

) at globals-core.c:602

        value = Cannot access memory at address 0xffffffd0

(gdb)

 

 

Burton, what else would you like to see and I would be happy to try that too.

 

 

Kind Regards


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton Strauss
Sent: Tuesday, August 02, 2005 12:32 PM
To: [email protected]
Subject: RE: [Ntop-dev] BUG: build on FC4

 

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
Sent: Monday, August 01, 2005 5:32 PM
To: [email protected]
Subject: RE: [Ntop-dev] BUG: build on FC4

 

 <snip />

 

(gdb) frame 5

(gdb) list

 

 <snip />

 

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to