NetBSD Problem Report #33833
From hauke@Espresso.Rhein-Neckar.DE Mon Jun 26 19:07:51 2006
Return-Path: <hauke@Espresso.Rhein-Neckar.DE>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id C97D763B911
for <gnats-bugs@gnats.NetBSD.org>; Mon, 26 Jun 2006 19:07:51 +0000 (UTC)
Message-Id: <200606261902.k5QJ2xo9019219@pizza.causeuse.org>
Date: Mon, 26 Jun 2006 21:02:59 +0200 (CEST)
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Reply-To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: 'wiconfig wi0' dumps core
X-Send-Pr-Version: 3.95
>Number: 33833
>Category: bin
>Synopsis: 'wiconfig wi0' dumps core
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 26 19:10:00 +0000 2006
>Closed-Date: Mon Jul 10 08:50:17 +0000 2023
>Last-Modified: Mon Jul 10 09:00:02 +0000 2023
>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.
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/33833: 'wiconfig wi0' dumps core
Date: Tue, 27 Jun 2006 11:26:17 +0200
Are you using gcc4 already?
Martin
(I can reproduce the wlanctl core dump, at a different place though, but not
the wiconfig one)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: Re: bin/33833: 'wiconfig wi0' dumps core
Date: Tue, 27 Jun 2006 13:32:33 +0200
Am 27.06.2006 um 9:30 Uhr +0000 schrieb Martin Husemann:
>
> Are you using gcc4 already?
Good question. When exactly was the switch thrown for sparc? Why is
the compiler version not in /etc/release?
/etc/release says my 3.99.21 snapshot was built on 22 Jun, 16h30 UTC.
'cvs update' probably around 12h00 UTC.
Given the problems with gcc4 compiled sparc kernels, OTOH, it was
probably built with gcc3.
> Martin
> (I can reproduce the wlanctl core dump,
wlanctl didn't core for me, I only included its output for information.
>at a different place though, but not the wiconfig one)
>
--
/~\ The ASCII Ribbon Campaign Hauke Fath
\ / No HTML/RTF in email Institut für Nachrichtentechnik
X No Word docs in email TU Darmstadt
/ \ Respect for open standards Ruf +49-6151-16-3281
From: Martin Husemann <martin@duskware.de>
To: Hauke Fath <hf@spg.tu-darmstadt.de>
Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org, Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: Re: bin/33833: 'wiconfig wi0' dumps core
Date: Tue, 27 Jun 2006 13:41:05 +0200
On Tue, Jun 27, 2006 at 01:32:33PM +0200, Hauke Fath wrote:
> Good question.
cc -v will tell you.
> wlanctl didn't core for me, I only included its output for information.
Well, it did core for me, but this was with a gcc4-build userland.
Martin
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: Martin Husemann <martin@duskware.de>
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>, gnats-bugs@NetBSD.org,
gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: Re: bin/33833: 'wiconfig wi0' dumps core
Date: Tue, 27 Jun 2006 14:00:38 +0200
Am 27.06.2006 um 13:41 Uhr +0200 schrieb Martin Husemann:
>On Tue, Jun 27, 2006 at 01:32:33PM +0200, Hauke Fath wrote:
>> Good question.
>
>cc -v will tell you.
Silly me. '3.3.6' is it.
> > wlanctl didn't core for me, I only included its output for information.
>
>Well, it did core for me, but this was with a gcc4-build userland.
As noted on port-sparc, a kernel from a gcc4-built snapshot didn't
get off the ground, so I didn't bother installing the snapshot.
hauke
--
/~\ The ASCII Ribbon Campaign Hauke Fath
\ / No HTML/RTF in email Institut für Nachrichtentechnik
X No Word docs in email TU Darmstadt
/ \ Respect for open standards Ruf +49-6151-16-3281
State-Changed-From-To: open->feedback
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Thu, 06 Jul 2023 00:33:34 +0000
State-Changed-Why:
Still reproducible? If yes, can you share `info locals' in gdb,
and `print *wreq'?
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, riastradh@NetBSD.org
Subject: Re: bin/33833 ('wiconfig wi0' dumps core)
Date: Thu, 6 Jul 2023 10:15:51 +0200
On Thu, 6 Jul 2023 00:33:35 +0000 (UTC), riastradh@NetBSD.org wrote:
> Still reproducible? If yes, can you share `info locals' in gdb,
> and `print *wreq'?
Blast from the past...
I'll have to dig through boxes finding the hardware (nell sbus card,=20
and the MA401 nic), and netboot the SS10 into netbsd-current...
Give me a fortnight.
Cheerio,
Hauke
--=20
Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Linn=E9weg 7
64342 Seeheim-Jugenheim
Germany
State-Changed-From-To: feedback->closed
State-Changed-By: hauke@NetBSD.org
State-Changed-When: Mon, 10 Jul 2023 08:50:17 +0000
State-Changed-Why:
The issue is fixed - thanks for the nudge.
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, riastradh@NetBSD.org,
Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: Re: bin/33833 ('wiconfig wi0' dumps core)
Date: Mon, 10 Jul 2023 10:48:39 +0200
At 0:33 Uhr +0000 06.07.2023, riastradh@NetBSD.org wrote:
>State-Changed-Why:
>Still reproducible? If yes, can you share `info locals' in gdb,
>and `print *wreq'?
I unboxed my SPARCstation 10 (which came up right away, no small feat for
hardware half my age), a nell(4) sbus card, and a wi(4) card (Netgear
MA401), and netbooted.
On the upside, the PR issue is gone, and wiconfig(8) works fine.
On the downside, the bit rot: nell(4) will not recognize any pcmcia cards
during boot, they have to be ejected and re-inserted. And while the wi(4)
then shows up on the air, clients fail to connect, even without a password.
But that is beyond the scope of this PR.
Cheerio,
Hauke
--
"It's never straight up and down" (DEVO)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.