Hello all,

I'm running ntop 4.10 (32 Bit version) or 5.0 (always 32 bit version) and they 
just crashes when the binary start with segfaults either daemon
mode or not.
I'm running on VM Slackware Current on physical server with CPU I7 and 24GB mem.
Into dmesg file i found this :

dmesg  | grep ntop

[1232095.316759] ntop[12004]: segfault at 0 ip b7438f1f sp bfe810b0 error 4 in 
libc-2.15.so[b739a000+17a000]
[1232452.483032] ntop[12184]: segfault at 0 ip b73e6f1f sp bfbf53b0 error 4 in 
libc-2.15.so[b7348000+17a000]
[1232456.918648] ntop[12185]: segfault at 0 ip b7356f1f sp bfd194b0 error 4 in 
libc-2.15.so[b72b8000+17a000]
[1232468.630957] ntop[12192]: segfault at 0 ip b73faf1f sp bffad590 error 4 in 
libc-2.15.so[b735c000+17a000]
[1232480.051064] ntop[12196]: segfault at 0 ip b73a9f1f sp bff9b9c0 error 4 in 
libc-2.15.so[b730b000+17a000]

FYI here is my kernel and glibc version:

uname -a
Linux monitoring 3.2.23 #2 Thu Jul 12 22:32:00 CDT 2012 i686 Intel(R) Core(TM) 
i7 CPU 920  @ 2.67GHz GenuineIntel GNU/Linux

ldd --version
ldd (GNU libc) 2.15
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Until a few months ago the same VM with NTOP 4.10 worked without any problems, 
probably after some updates (kernel, Glibc) has stopped
working but I can not find where is the problem.

>From gdb debug i found :

gdb /usr/bin/ntop
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/ntop...(no debugging symbols found)...done.
(gdb) set args --w3c -u ntop -i eth0 -t 6 -d
(gdb) run
Starting program: /usr/bin/ntop --w3c -u ntop -i eth0 -t 6 -d
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
  File
"/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3200.3-gdb.py",
line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Sun Aug  5 15:37:25 2012  [globals-core.c:83] Initializing gdbm databases
Sun Aug  5 15:37:25 2012  [initialize.c:528] Opening database 
'/var/lib/ntop/prefsCache.db'
Sun Aug  5 15:37:25 2012  [initialize.c:528] Opening database 
'/var/lib/ntop/ntop_pw.db'
Sun Aug  5 15:37:25 2012  [prefs.c:237] NOTE: Reading preferences file entries
Sun Aug  5 15:37:25 2012  [prefs.c:342] NOTE: Processing parameters (pass2)
Sun Aug  5 15:37:25 2012  [admin.c:1065] Setting administrator password...
Sun Aug  5 15:37:25 2012  [admin.c:1072] Admin password set...
Sun Aug  5 15:37:25 2012  [main.c:578] ntop v.5.0 (32 bit)
Sun Aug  5 15:37:25 2012  [main.c:579] Configured on Aug  5 2012 11:27:26, 
built on Aug  5 2012 11:28:32.
Sun Aug  5 15:37:25 2012  [main.c:580] Copyright 1998-2012 by Luca Deri 
<[email protected]>
Sun Aug  5 15:37:25 2012  [main.c:581] Get the freshest ntop from 
http://www.ntop.org/
Sun Aug  5 15:37:25 2012  [main.c:585] NOTE: ntop is running from '/usr/bin'
Sun Aug  5 15:37:25 2012  [main.c:586] NOTE: (but see warning on manpage for 
the --instance parameter)
Sun Aug  5 15:37:25 2012  [main.c:588] NOTE: ntop libraries are in '/usr/lib'
Sun Aug  5 15:37:25 2012  [main.c:594] Initializing ntop
Sun Aug  5 15:37:25 2012  [initialize.c:112] Initializing IP services
Sun Aug  5 15:37:25 2012  [initialize.c:1040] Initializing network devices 
[eth0]

Program received signal SIGSEGV, Segmentation fault.
0xb7c3ef1f in __opendirat () from /lib/libc.so.6
(gdb) backtrace
#0  0xb7c3ef1f in __opendirat () from /lib/libc.so.6
#1  0xb7c3ef9d in opendir () from /lib/libc.so.6
#2  0xb6dcc3ae in ?? () from /usr/lib/libusb-1.0.so.0
#3  0xb6dc456b in libusb_get_device_list () from /usr/lib/libusb-1.0.so.0
#4  0xb6dfdae5 in canusb_platform_finddevs () from /usr/lib/libpcap.so.1
#5  0xb6df9ebb in pcap_platform_finddevs () from /usr/lib/libpcap.so.1
#6  0xb6dfdf08 in pcap_findalldevs () from /usr/lib/libpcap.so.1
#7  0xb7d73fdf in initDevices () from /usr/lib/libntop-5.0.so
#8  0xb7d64076 in initNtop () from /usr/lib/libntop-5.0.so
#9  0x0804a990 in ?? ()
#10 0xb7bb95a5 in __libc_start_main () from /lib/libc.so.6
#11 0x0804b4f5 in ?? ()

Who can help me? thanks in advance

Regards,
Claudio Mantegna

<<attachment: claudio_mantegna.vcf>>

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

Reply via email to