Your message dated Sat, 23 Sep 2006 15:52:09 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#387605: link detection exceptions aren't caught
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: guessnet
Version: 0.39-2
Severity: normal
See the gdb session attached. It appears that IFace.cc:276 is never
reached.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (750, 'unstable'), (500, 'testing'), (250, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-2-686
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages guessnet depends on:
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-13 GCC support library
ii libnet1 1.1.2.1-2 library for the construction and h
ii libpcap0.7 0.7.2-7 System interface for user-level pa
ii libstdc++6 4.1.1-13 The GNU Standard C++ Library v3
guessnet recommends no packages.
-- no debconf information
--
.''`. martin f. krafft <[EMAIL PROTECTED]>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
Script started on Fri 15 Sep 2006 12:42:35 CEST
GNU gdb 6.4.90-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"...Using host libthread_db library
"/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) set args -C /tmp/vit.lG2097 cable
(gdb) b IFace.cc:273
Breakpoint 1 at 0x80631f3: file IFace.cc, line 273.
(gdb) run
Starting program: /home/madduck/debian/pkg/guessnet/trunk/src/guessnet -C
/tmp/vit.lG2097 cable
[Thread debugging using libthread_db enabled]
[New Thread -1480173888 (LWP 20477)]
[Switching to Thread -1480173888 (LWP 20477)]
Breakpoint 1, detect_beat_auto (fd=6, iface=0x80b11cc "cable") at IFace.cc:273
273 interface_status_t status =
interface_detect_beat_mii(fd, iface);
(gdb) s
interface_detect_beat_mii (fd=6, iface=0x80b11cc "cable") at IFace.cc:94
94 memset(&ifr, 0, sizeof(ifr));
(gdb) n
95 strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)-1);
(gdb)
97 if (ioctl(fd, SIOCGMIIPHY, &ifr) == -1)
(gdb)
98 throw wibble::exception::MII("SIOCGMIIPHY failed");
(gdb) bt
#0 interface_detect_beat_mii (fd=6, iface=0x80b11cc "cable") at IFace.cc:98
#1 0x08063205 in detect_beat_auto (fd=6, iface=0x80b11cc "cable")
at IFace.cc:273
#2 0x080636ff in IFace::update (this=0xafb94400) at IFace.cc:424
#3 0x08063aa1 in IFace (this=0xafb94400, [EMAIL PROTECTED]) at IFace.cc:387
#4 0x08086bcb in main (argc=4, argv=0xafb94534) at guessnet.cc:400
(gdb) n
Link beat detection (mii) failed: Operation not permitted
Link beat detection (ethtool) failed: Operation not permitted
Link beat detection (wlan) failed: [EMAIL PROTECTED],[EMAIL PROTECTED]
Link beat detection (priv) failed: [EMAIL PROTECTED]
,�D�����������`
[EMAIL PROTECTED]
Breakpoint 1, detect_beat_auto (fd=6, iface=0x80b11cc "cable") at IFace.cc:273
273 interface_status_t status =
interface_detect_beat_mii(fd, iface);
(gdb) bt
#0 detect_beat_auto (fd=6, iface=0x80b11cc "cable") at IFace.cc:273
#1 0x080636ff in IFace::update (this=0xafb94400) at IFace.cc:424
#2 0x08086c11 in main (argc=4, argv=0xafb94534) at guessnet.cc:412
(gdb) s
interface_detect_beat_mii (fd=6, iface=0x80b11cc "cable") at IFace.cc:94
94 memset(&ifr, 0, sizeof(ifr));
(gdb) n
95 strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)-1);
(gdb) n
97 if (ioctl(fd, SIOCGMIIPHY, &ifr) == -1)
(gdb) n
98 throw wibble::exception::MII("SIOCGMIIPHY failed");
(gdb) n
Link beat detection (mii) failed: Operation not permitted
Link beat detection (ethtool) failed: Operation not permitted
Link beat detection (wlan) failed: [EMAIL PROTECTED]
�
l3X,[EMAIL PROTECTED]
[�`
T�`
��D���D��XA���6<A��
Link beat detection (priv) failed: [EMAIL PROTECTED]
�
l,[EMAIL PROTECTED]
[�`
T�`
���D��XA���6<A��
Breakpoint 1, detect_beat_auto (fd=6, iface=0x80b11cc "cable") at IFace.cc:273
273 interface_status_t status =
interface_detect_beat_mii(fd, iface);
(gdb) bt
#0 detect_beat_auto (fd=6, iface=0x80b11cc "cable") at IFace.cc:273
#1 0x080636ff in IFace::update (this=0xafb94400) at IFace.cc:424
#2 0x08089844 in MainScanner::startScans (this=0xafb941f4) at guessnet.cc:321
#3 0x08086f8f in main (argc=134842840, argv=0x80b1a64) at guessnet.cc:448
(gdb) s
interface_detect_beat_mii (fd=6, iface=0x80b11cc "cable") at IFace.cc:94
94 memset(&ifr, 0, sizeof(ifr));
(gdb) n
95 strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)-1);
(gdb) n
97 if (ioctl(fd, SIOCGMIIPHY, &ifr) == -1)
(gdb) n
98 throw wibble::exception::MII("SIOCGMIIPHY failed");
(gdb) n
Link beat detection (mii) failed: Operation not permitted
Link beat detection (ethtool) failed: Operation not permitted
Link beat detection (wlan) failed: [EMAIL PROTECTED],
Link beat detection (priv) failed: [EMAIL PROTECTED],
disconnected
Program exited normally.
(gdb) quit
Script done on Fri 15 Sep 2006 12:43:56 CEST
signature.asc
Description: Digital signature (GPG/PGP)
--- End Message ---
--- Begin Message ---
On Fri, Sep 15, 2006 at 12:45:35PM +0200, martin f krafft wrote:
> See the gdb session attached. It appears that IFace.cc:276 is never
> reached.
As we discussed on IRC, this is actually ok. The gdb session looks
strange because gdb doesn't seem to follow the exception throwing very
well, and because the detection functions are called twice.
I'm now investigating why the detection functions are called twice,
which is probably what's causing 387600.
Ciao,
Enrico
--
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature
--- End Message ---