Package: iftop
Version: 0.17-4
Severity: normal

If I ask iftop to listen on two interfaces, it segfaults.

# iftop -i eth0 -i lo
Segmentation fault
# gdb --args iftop -i eth0 -i lo
GNU gdb 6.6-debian
Copyright (C) 2006 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 "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) r
Starting program: /usr/sbin/iftop -i eth0 -i lo
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1210607408 (LWP 18198)]
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210607408 (LWP 18198)]
0xb7de4135 in ?? () from /lib/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7de4135 in ?? () from /lib/i686/cmov/libc.so.6
#1  0x00000000 in ?? ()

After rebuilding with nostrip, the backtrace was just as useless.

If it isn't capable of using multiple interfaces, it should display a
warning and quit instead of just segfaulting.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.20-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iftop depends on:
ii  libc6                         2.5-8      GNU C Library: Shared libraries
ii  libncurses5                   5.5-5      Shared libraries for terminal hand
ii  libpcap0.8                    0.9.5-1    System interface for user-level pa

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to