Re: crash (and the backtrace) in the new if_zyd driver

From: Zahemszky Gábor <Gabor_at_Zahemszky.HU>
Date: Sat, 15 Sep 2007 13:47:15 +0200
Sat, 15 Sep 2007 12:25:07 +0900 -n
Weongyo Jeong <weongyo.jeong_at_gmail.com> Ă­rta:


Hi!

Here it is.

> I checked your panic in my environment and tried to repeat panic you
> encountered, but I failed.

Interesting :-(

> condition in ehci or zyd.  Can you try to build the buildworld and the
> buildkernel newly with CURRENT and tell me the result after trying to
> up the zyd driver again?

The source is csup-ped today morning, after reading your e-mail. (I
compiled if_zyd *into* the kernel (and made a module, too). Now, I can
'ifconfig up' the interface without panic. I can ifconfig zyd0 list
scan, too, but some seconds later, it panicked. The backtrace is:

===
Picasso# kgdb
-q /usr/obj/usr/src/sys/GENERIC/kernel.debug /var/crash/vmcore.1
[GDB will not be able to debug user-mode
threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x34
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc06a0d66
stack pointer           = 0x28:0xe3d6ea4c
frame pointer           = 0x28:0xe3d6ea74
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         = 13 (swi4: clock sio)
Physical memory: 2009 MB
Dumping 75 MB: 60 44 28 12

#0  doadump () at pcpu.h:195
195     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc048cec9 in db_fncall (dummy1=-472455052, dummy2=0, dummy3=582,
dummy4=0xe3d6e7e0 "pńHŔ") at /usr/src/sys/ddb/db_command.c:486
#2  0xc048d435 in db_command_loop ()
at /usr/src/sys/ddb/db_command.c:401 
#3  0xc048eba5 in db_trap (type=12, code=0)
at /usr/src/sys/ddb/db_main.c:222 
#4  0xc0777926 in kdb_trap (type=12, code=0, tf=0xe3d6ea0c)
at /usr/src/sys/kern/subr_kdb.c:502 
#5 0xc0a0431f in trap_fatal (frame=0xe3d6ea0c, eva=52)
at /usr/src/sys/i386/i386/trap.c:863 
#6 0xc0a04553 in trap_pfault (frame=0xe3d6ea0c, usermode=0, eva=52)
at /usr/src/sys/i386/i386/trap.c:785 
#7  0xc0a04f05 in trap (frame=0xe3d6ea0c)
at /usr/src/sys/i386/i386/trap.c:463 
#8  0xc09eaa9b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 
#9  0xc06a0d66 in ehci_alloc_sqtd (sc=0xc519a000)
at /usr/src/sys/dev/usb/ehci.c:2281 
#10 0xc06a33f1 in ehci_device_bulk_start (xfer=0xc556dc00)
at /usr/src/sys/dev/usb/ehci.c:3032 
#11 0xc06a35d3 in ehci_device_bulk_transfer (xfer=0xc556dc00)
at /usr/src/sys/dev/usb/ehci.c:2998 
#12 0xc06d1fab in usbd_start_transfer (arg=0xc556dc00, segs=0xc556dc3c,
nseg=1, error=0) at /usr/src/sys/dev/usb/usbdi.c:388 
#13 0xc06d2545 in usbd_transfer (xfer=0xc556dc00)
at /usr/src/sys/dev/usb/usbdi.c:320 
#14 0xc06b88d2 in zyd_start (ifp=0xc5630c00)
at /usr/src/sys/dev/usb/if_zyd.c:2096 
#15 0xc07df959 in if_start (ifp=0xc5630c00)
at /usr/src/sys/net/if.c:2704 
#16 0xc08104c5 in ieee80211_send_probereq (ni=0xc5ac7000, sa=0xc5ac5288
"", da=0xc0a3aa80 "˙˙˙˙˙˙ether_ifattach", bssid=0xc0a3aa80
"˙˙˙˙˙˙ether_ifattach", ssid=0xc0a8ebdb "", ssidlen=0, optie=0x0,
optielen=0) at /usr/src/sys/net80211/ieee80211_output.c:1540 
#17 0xc0816e9a in scan_curchan (ic=0xc5ac5008, maxdwell=200)
at /usr/src/sys/net80211/ieee80211_scan.c:664 
#18 0xc0815ff9 in scan_next (arg=0xc55ad000)
at /usr/src/sys/net80211/ieee80211_scan.c:753 
#19 0xc07626e9 in softclock (dummy=0x0)
at /usr/src/sys/kern/kern_timeout.c:281 
#20 0xc0735655 in ithread_loop (arg=0xc50b24f0)
at /usr/src/sys/kern/kern_intr.c:1036 
#21 0xc0732ad8 in fork_exit (callout=0xc07354a0 <ithread_loop>,
arg=0xc50b24f0, frame=0xe3d6ed38) at /usr/src/sys/kern/kern_fork.c:797
#22 0xc09eab10 in fork_trampoline ()
at /usr/src/sys/i386/i386/exception.s:205 (kgdb) 

===


Bye, Gabor < Gabor at Zahemszky dot HU >

-- 
#!/bin/ksh
Z='21N16I25C25E30, 40M30E33E25T15U!';IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ
';set -- $Z;for i;{ [[ $i = ? ]]&&print $i&&break;[[ $i
= ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j"
= ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set
-- $Z;for i;{ [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;j="$j
$i";typeset +l i;};print "$j"
Received on Sat Sep 15 2007 - 09:47:23 UTC

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