Package: iftop Version: 0.17-17 Severity: normal
Hi, iftop -i tun results in a segfault for me, whereas jnettop -i tun works fine. # gdb --args iftop -i tun GNU gdb (GDB) 7.2-debian Copyright (C) 2010 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 "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/sbin/iftop...Reading symbols from /usr/lib/debug/usr/sbin/iftop...done. done. (gdb) run Starting program: /usr/sbin/iftop -i tun [Thread debugging using libthread_db enabled] interface: tun Program received signal SIGSEGV, Segmentation fault. 0x00000000004083a7 in get_addrs_ioctl (interface=0x60e060 "tun", if_hw_addr=<value optimized out>, if_ip_addr=0x60c6b8, if_ip6_addr=0x60c670) at addrs_ioctl.c:135 135 addrs_ioctl.c: No such file or directory. in addrs_ioctl.c (gdb) bt #0 0x00000000004083a7 in get_addrs_ioctl (interface=0x60e060 "tun", if_hw_addr=<value optimized out>, if_ip_addr=0x60c6b8, if_ip6_addr=0x60c670) at addrs_ioctl.c:135 #1 0x0000000000403536 in packet_init () at iftop.c:621 #2 0x0000000000404328 in main (argc=3, argv=0x7fffffffe3b8) at iftop.c:722 (gdb) bt full #0 0x00000000004083a7 in get_addrs_ioctl (interface=0x60e060 "tun", if_hw_addr=<value optimized out>, if_ip_addr=0x60c6b8, if_ip6_addr=0x60c670) at addrs_ioctl.c:135 s = <value optimized out> ifr = {ifr_ifrn = {ifrn_name = "tun", '\000' <repeats 12 times>}, ifr_ifru = {ifru_addr = {sa_family = 65534, sa_data = '\000' <repeats 13 times>}, ifru_dstaddr = { sa_family = 65534, sa_data = '\000' <repeats 13 times>}, ifru_broadaddr = {sa_family = 65534, sa_data = '\000' <repeats 13 times>}, ifru_netmask = { sa_family = 65534, sa_data = '\000' <repeats 13 times>}, ifru_hwaddr = {sa_family = 65534, sa_data = '\000' <repeats 13 times>}, ifru_flags = -2, ifru_ivalue = 65534, ifru_mtu = 65534, ifru_map = { mem_start = 65534, mem_end = 0, base_addr = 0, irq = 0 '\000', dma = 0 '\000', port = 0 '\000'}, ifru_slave = "\376\377", '\000' <repeats 13 times>, ifru_newname = "\376\377", '\000' <repeats 13 times>, ifru_data = 0xfffe <Address 0xfffe out of bounds>}} got_hw_addr = 1 got_ip_addr = 0 got_ip6_addr = 0 ifa = 0x60f050 ---Type <return> to continue, or q <return> to quit--- ifas = 0x60eee0 #1 0x0000000000403536 in packet_init () at iftop.c:621 errbuf = "\260\343\377\377\377\177\000\000\000\000\000\000\000\000\000\000@\002\000\000\000\000\000\000\270\356\327\001\060\000\000\000\310\356\327\001\060\000\000\000y\360\252\001\060\000\000\000\070\002\000\000\000\000\000\000\201\361\246\001\060\000\000\000p\350`\000\000\000\000\000\200\341\377\377\377\177\000\000 \000\000\000\000\000\000\000\270\356\327\001\060\000\000\000\310\356\327\001\060", '\000' <repeats 11 times>, "\004\000\000\000\000\000\000\000`\356\327\001\002\000\000\000@\000\000\000\000\000\000\000\001\000\000\000\002\000\000\000\360\354`\000\000\000\000\000\320\354`\000\000\000\000\000@2@\000\000\000\000\000\000\000\000\004\000\000\000\000 \360`\002\060", '\000' <repeats 74 times> m = <value optimized out> dlt = <value optimized out> result = <value optimized out> #2 0x0000000000404328 in main (argc=3, argv=0x7fffffffe3b8) at iftop.c:722 thread = 4204176 sa = {__sigaction_handler = {sa_handler = 0x403240 <finish>, sa_sigaction = 0x403240 <finish>}, sa_mask = {__val = { 0 <repeats 16 times>}}, sa_flags = 0, sa_restorer = 0} (gdb) # ifconfig -a eth0 Link encap:Ethernet HWaddr 00:23:54:5e:5d:d5 inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::223:54ff:fe5e:5dd5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:19465713 errors:0 dropped:0 overruns:0 frame:0 TX packets:21001115 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13551266367 (12.6 GiB) TX bytes:18967823839 (17.6 GiB) Interrupt:42 Base address:0x4000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:190582 errors:0 dropped:0 overruns:0 frame:0 TX packets:190582 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:17828646 (17.0 MiB) TX bytes:17828646 (17.0 MiB) tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet6 addr: 2001:c08:3700:ffff::17:d407/128 Scope:Global UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1 RX packets:28421 errors:0 dropped:0 overruns:0 frame:0 TX packets:39940 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:3708848 (3.5 MiB) TX bytes:42570465 (40.5 MiB) -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-git6 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages iftop depends on: ii libc6 2.13-4 Embedded GNU C Library: Shared lib ii libncurses5 5.9-1 shared libraries for terminal hand ii libpcap0.8 1.1.1-6 system interface for user-level pa iftop recommends no packages. iftop suggests no packages. -- debconf-show failed -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org