Subject: bin/33833: 'wiconfig wi0' dumps core
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 06/26/2006 19:10:01
>Number:         33833
>Category:       bin
>Synopsis:       'wiconfig wi0' dumps core
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 26 19:10:00 +0000 2006
>Originator:     Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
>Release:        NetBSD 3.99.21
>Organization:
Falling Raindrops
>Environment:
	
	
System: NetBSD pizza.causeuse.org 3.99.21 NetBSD 3.99.21 (PIZZA) #0: Thu Jun 22 19:25:34 CEST 2006 hf@Gstoder.nt.e-technik.tu-darmstadt.de:/var/obj/netbsd-builds/current/sparc/sys/arch/sparc/compile/PIZZA sparc
Architecture: sparc
Machine: sparc
>Description:

	Invoking wiconfig on a wi(4) card

cmcia0: CIS version PC Card Standard 5.0
pcmcia0: CIS info: NETGEAR MA401RA Wireless PC, Card, ISL37300P, Eval-RevA
pcmcia0: Manufacturer code 0xb, product 0x7300
pcmcia0: function 0: network adapter, ccr addr 3e0 mask 1
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6, io
space 0-3f; io16 irqpulse irqlevel
wi0 at pcmcia0 function 0: <NETGEAR MA401RA Wireless PC, Card, ISL37300P, Eval-RevA>
wi0: 802.11 address 00:09:5b:54:f1:e5
wi0: using RF:PRISM2.5 MAC:ISL3873B(PCMCIA)
wi0: Intersil Firmware: Primary (1.1.1), Station (1.7.4)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps

	causes it to dump core half-way through:

[hauke@pizza] /<2>usr.sbin/wiconfig > wlanctl -a
wi0: mac 00:09:5b:54:f1:e5 bss 00:09:5b:54:f1:e5
        node flags 0003<bss,sta>
        ess <Forstquelle>
        chan 11 freq 2462MHz flags 00a0<cck,2.4GHz>
        capabilities 0011<ess,privacy>
        beacon-interval 100 TU tsft 0 us
        rates *1.0 *2.0 5.5 [11.0]
        assoc-id 0 assoc-failed 0 inactivity 300s
        rssi 32 txseq 236 rxseq 1280
[hauke@pizza] /<2>usr.sbin/wiconfig > ./wiconfig wi0
NIC serial number:                      [ 99SA01000000 ]
Station name:                           [  ]
SSID for IBSS creation:                 [ Forstquelle ]
Current netname (SSID):                 [ Forstquelle ]
Desired netname (SSID):                 [ Forstquelle ]
Current BSSID:                          [ 00:09:5b:54:f1:e5 ]
Channel list:                           [ 1 2 3 4 5 6 7 8 9 10 11 12 13 ]
IBSS channel:                           [ 11 ]
Current channel:                        [ 11 ]
Comms quality/signal/noise:             [ 0 81 27 ]
Promiscuous mode:                       [ Off ]
Port type:                              [ 6 ]
MAC address:                            [ 00:09:5b:54:f1:e5 ]
Segmentation fault(core dumped)
[hauke@pizza] /<2>usr.sbin/wiconfig > gdb ./wiconfig ./wiconfig.core 
GNU gdb 5.3nb1
Copyright 2002 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 "sparc--netbsdelf"...
Core was generated by `wiconfig'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsparc_v8.so.0...done.
Loaded symbols for /usr/lib/libsparc_v8.so.0
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
#0  0x00011d00 in wi_printwords (wreq=0xefffe0a8) at wiconfig.c:518
518                     printf("%d ", le16toh(wreq->wi_val[i]));
(gdb) bt
#0  0x00011d00 in wi_printwords (wreq=0xefffe0a8) at wiconfig.c:518
#1  0x000121b4 in wi_dumpinfo (iface=0xefffe733 "wi0") at wiconfig.c:668
#2  0x00012b10 in main (argc=2, argv=0xefffe60c) at wiconfig.c:885
#3  0x00010960 in ___start ()
(gdb)


>How-To-Repeat:

	Upgrade a NetBSD/sparc installation from netbsd-3 to current,
	find that wlan hostap functionality is dead, try to debug
	things. Find the tools are buggy, too.

>Fix:
	Don't know. Problem is repeatable, so I can try things out to
	help.

>Unformatted: