Recent ifconfig changes choke on fwip

From: Daniel O'Connor <doconnor_at_gsoft.com.au>
Date: Fri, 10 Dec 2004 13:00:51 +1030
[inchoate 12:55] /usr/src/sbin/ifconfig >gdb /usr/obj/usr/src/sbin/ifconfig/ifconfig
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...
(gdb) run
Starting program: /usr/obj/usr/src/sbin/ifconfig/ifconfig
bfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 203.31.81.38 netmask 0xffffffc0 broadcast 203.31.81.63
        ether 00:0d:56:b3:99:6e
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fwip0: flags=108802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 43.4f.c0.0.8.17.a4.38.a.2.ff.fe.0.0.0.0

Program received signal SIGSEGV, Segmentation fault.
0x0804b2f9 in in_status (s=7, info=0x8058134) at /usr/src/sbin/ifconfig/af_inet.c:69
69              printf("\tinet %s ", inet_ntoa(sin->sin_addr));
(gdb) print sin->sin_addr
Error accessing memory address 0x102: Bad address.
(gdb) bt
#0  0x0804b2f9 in in_status (s=7, info=0x8058134) at /usr/src/sbin/ifconfig/af_inet.c:69

fwip is the IP over Firewire interface.

I tried to do some tracing in GDB the line numbers don't seem to match up 
properly :-/

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Received on Fri Dec 10 2004 - 01:31:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:24 UTC