[Voyage-linux] ifdown/ifup on ath0 causes WRAP to reboot - console dump

Edwin Whitelaw (spam-protected)
Tue Apr 18 20:36:16 HKT 2006


Punky,

Here's the console output from the crash...

----------console--------
voyage:~# ifup ath0
run-parts: /etc/network/if-pre-up.d/0_wpasupplicant exited with return 
code 1
Unable to handle kernel NULL pointer dereference at virtual address 000002f0
 printing eip:
c48c7e38
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: wlan_scan_ap uhci_hcd ohci_hcd ehci_hcd usbcore 
sc1200 scx200
 dm_mod scx200_acb lm77 i2c_core wd1100 ath_pci ath_rate_sample wlan 
ath_hal hos
tap_pci hostap ieee80211_crypt natsemi crc32
CPU:    0
EIP:    0060:[<c48c7e38>]    Tainted: P      VLI
EFLAGS: 00010246   (2.6.15-486-voyage)
EIP is at ieee80211_add_xr_param+0xe9/0x15d [wlan]
eax: 00000000   ebx: c282a260   ecx: c31ee8af   edx: c322a000
esi: c31ee8a5   edi: c31ee87f   ebp: c31ee8a5   esp: c2fd3d50
ds: 007b   es: 007b   ss: 0068
Process ifconfig (pid: 1518, threadinfo=c2fd2000 task=c2fcfa50)
Stack: c322a1ad c282a260 c48bd08b c31ee8a5 c282a260 c322a1ad c3684260 
c282a260
       c325bf40 0000017f c282a260 c322a000 c48bd167 c322a000 c282a92c 
c31ee828
       c3684260 c31ee828 c11fa610 00000009 c322a000 c282a260 c487454f 
c322a000
Call Trace:
 [<c48bd08b>] ieee80211_beacon_init+0x317/0x33d [wlan]
 [<c48bd167>] ieee80211_beacon_alloc+0xb6/0x179 [wlan]
 [<c487454f>] ath_beacon_alloc+0x65/0x15f [ath_pci]
 [<c48263da>] ath_rate_newstate+0x44/0x4a [ath_rate_sample]
 [<c4879abc>] ath_newstate+0x2ec/0x5e0 [ath_pci]
 [<c48ca619>] ieee80211_new_state+0x26/0x38 [wlan]
 [<c48c3f8f>] ieee80211_sta_join1_tasklet+0x17/0x2c [wlan]
 [<c011517f>] tasklet_action+0x34/0x53
 [<c0114f5c>] __do_softirq+0x34/0x7d
 [<c0114fc7>] do_softirq+0x22/0x26
 [<c0115021>] local_bh_enable+0x56/0x6d
 [<c48ca626>] ieee80211_new_state+0x33/0x38 [wlan]
 [<c48ca2a1>] ieee80211_init+0xc2/0xcc [wlan]
 [<c48ca2b6>] ieee80211_open+0xb/0xe [wlan]
 [<c020a9c9>] dev_open+0x30/0x66
 [<c020ba72>] dev_change_flags+0x4a/0xee
 [<c0240ea5>] devinet_ioctl+0x266/0x4d7
 [<c0242b14>] inet_ioctl+0x45/0x6c
 [<c02032ff>] sock_ioctl+0x1bf/0x1ca
 [<c0151038>] do_ioctl+0x28/0x66
 [<c01512f3>] vfs_ioctl+0x17a/0x188
 [<c015132c>] sys_ioctl+0x2b/0x47
 [<c0102679>] syscall_call+0x7/0xb
Code: 00 88 01 8a 83 30 02 00 00 41 eb 7f 8b 93 f0 02 00 00 8b 82 77 01 
00 00 89
 01 66 8b 82 7b 01 00 00 66 89 41 04 8b 83 1c 06 00 00 <8b> 90 f0 02 00 
00 8b 82
 77 01 00 00 83 c1 06 89 01 66 8b 82 7b
 <0>Kernel panic - not syncing: Fatal exception in interrupt

------------end console output-------------

System reboots after the kernel panic line above.

Hope this helps.  I'm not a C programmer so can't help much with the 
code.  :-(

-e

Kim-man "Punky" TSE wrote:
> Hi Edwin,
>
> Tried you config and does exhibit your reboot problem.  Do you see 
> kernel panic message in the serial console?  If not, I think it is 
> probably relates to power issues.  Check your PSU unit, or check your 
> WRAP board if it has 8 capacitors?
>
> See this: http://madwifi.org/wiki/UserDocs/WRAP
>
> - Punky
>
> Edwin Whitelaw wrote:
>> WRAP2C with 0.2 voyage + apt-get upgrade using default sources.list 
>> file.  Tried SR5, CM9 and EMP8602 radios with identical results.  
>> Also switched WRAP boards with no change.
>>
>> If I run ifdown ath0 followed by ifup ath0 the system always reboots.
>>
>> Anyone have any thoughts on why this is happening?  I have other 
>> boards that dont' exhibit this behavior.
>>
>> Thx,
>>
>> Edwin
>>
>> -----------
>> voyage:~# cat /etc/network/interfaces
>> # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
>> # /usr/share/doc/ifupdown/examples for more information.
>> auto lo
>> iface lo inet loopback
>>
>> auto eth0
>> iface eth0 inet dhcp
>> #iface eth0 inet static
>> #       address 10.220.204.1
>> #       netmask 255.255.255.0
>> #       broadcast 10.220.204.255
>>
>> auto ath0
>> iface ath0 inet static
>>        address 10.220.4.1
>>        netmask 255.255.255.0
>>        broadcast 10.220.4.255
>>        #pre-up wlanconfig ath create wlandev wifi0 wlanmode ap
>>         madwifi-base wifi0
>>         wireless-mode Master
>>         wireless-essid crc-peak
>>         wireless-channel 149
>>         wireless-rate 24M
>>        up iwconfig ath0 txpower 26db
>>        down wlanconfig ath0 destroy
>> -----
>> Comment:  using "wireless-txpower 26db" does *not* work while "up 
>> iwconfig ath0 txpower 26db" does.  ???
>>
>> ----------
>> voyage:~# ifdown ath0
>> run-parts: /etc/network/if-down.d/0_wpasupplicant exited with return 
>> code 1
>> ath0: ERROR while getting interface flags: No such device
>> voyage:~# ifup ath0
>> run-parts: /etc/network/if-pre-up.d/0_wpasupplicant exited with 
>> return code 1
>> .
>> .
>> system is rebooting at this point
>> .
>> .
>> login as: root
>>
>> everything is back to normal.
>>
>
>

-- 
<=+=+=+==+=+=+==+=+=+=+=+=+=+=+=>
Edwin Whitelaw, P.E.
New River Valley Unwired, LLC
2200 Lonesome Dove Dr
Christiansburg, VA 24073
540-239-0318





More information about the Voyage-linux mailing list