wlan0 kernel panic

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Fri, 16 May 2008 11:50:15 -0700
Ran 

ifconfig wlan0 create wlandev wpi0

followed by this script

#!/bin/sh
ifconfig wlan0 create wlandev wpi0
ifconfig wlan0 inet 192.168.0.10
ifconfig wlan0 ssid "ValidSSID" mode 11g channel 11 wepmode on
ifconfig wlan0 wepkey 0xdeadbeefdeadbeefdeadbeefde deftxkey 1
ifconfig wlan0
route add default 192.168.0.1

Led to

Script started on Fri May 16 11:36:32 2008
% kgdb /boot/kernel/kernel vmcore.1

Unread portion of the kernel message buffer:

Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address	= 0xdeadc13a
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0xc06eff60
stack pointer	        = 0x28:0xe631ab44
frame pointer	        = 0x28:0xe631aba8
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1422 (ifconfig)
Physical memory: 1006 MB
Dumping 51 MB: 36 20 4

#0  doadump () at pcpu.h:196
196	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:196
#1  0xc04967f9 in db_fncall (dummy1=1, dummy2=0, dummy3=-1063075072, 
    dummy4=0xe631a8d8 "") at /usr/src/sys/ddb/db_command.c:516
#2  0xc0496d7c in db_command (last_cmdp=0xc09a8090, cmd_table=0x0, dopager=1)
    at /usr/src/sys/ddb/db_command.c:413
#3  0xc0496e8a in db_command_loop () at /usr/src/sys/ddb/db_command.c:466
#4  0xc049867d in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:228
#5  0xc0646d56 in kdb_trap (type=12, code=0, tf=0xe631ab04)
    at /usr/src/sys/kern/subr_kdb.c:534
#6  0xc08869cf in trap_fatal (frame=0xe631ab04, eva=3735929146)
    at /usr/src/sys/i386/i386/trap.c:885
#7  0xc0886bf0 in trap_pfault (frame=0xe631ab04, usermode=0, eva=3735929146)
    at /usr/src/sys/i386/i386/trap.c:807
#8  0xc0887532 in trap (frame=0xe631ab04) at /usr/src/sys/i386/i386/trap.c:485
#9  0xc086bbab in calltrap () at /usr/src/sys/i386/i386/exception.s:146
#10 0xc06eff60 in in_control (so=0xc4365188, cmd=2151704858, 
    data=0xc449fb40 "wlan0", ifp=0xc3e72800, td=0xc4249000)
    at /usr/src/sys/netinet/in.c:252
#11 0xc06b8b8f in ifioctl (so=0xc4365188, cmd=2151704858, 
    data=0xc449fb40 "wlan0", td=0xc4249000) at /usr/src/sys/net/if.c:1934
#12 0xc065f5b7 in soo_ioctl (fp=0xc41d65b0, cmd=2151704858, data=0xc449fb40, 
    active_cred=0xc4264200, td=0xc4249000)
    at /usr/src/sys/kern/sys_socket.c:200
#13 0xc0659b08 in kern_ioctl (td=0xc4249000, fd=3, com=2151704858, 
    data=0xc449fb40 "wlan0") at file.h:254
#14 0xc0659c74 in ioctl (td=0xc4249000, uap=0xe631acfc)
    at /usr/src/sys/kern/sys_generic.c:677
#15 0xc0886e93 in syscall (frame=0xe631ad38)
    at /usr/src/sys/i386/i386/trap.c:1026
#16 0xc086bc10 in Xint0x80_syscall ()
    at /usr/src/sys/i386/i386/exception.s:203
#17 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) quit
% exit

Script done on Fri May 16 11:36:59 2008

-- 
Steve
Received on Fri May 16 2008 - 16:55:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:30 UTC