NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/50491: unkillable wait in usbd_transfer while using usmsc0 on raspberry pi 2
The following reply was made to PR kern/50491; it has been noted by GNATS.
From: Michael Plass <mfpnb%plass-family.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/50491: unkillable wait in usbd_transfer while using usmsc0 on raspberry pi 2
Date: Fri, 4 Dec 2015 23:21:46 -0800
Nick,
I rebuilt with options LOCKDEBUG, and got this. I'll leave it in ddb for =
now in case you want me to poke around some more. - Michael
Stopped in pid 0.2 (system) at netbsd:cpu_Debugger+0x4: bx =
r14
db{0}> ps
PID LID S CPU FLAGS STRUCT LWP * NAME WAIT
5484 1 3 0 80 b7a64c00 sleep nanoslp
4159 1 3 0 0 b72379e0 mdnsd usbxfer
3675 1 3 2 80 ba6bbc40 find ttyout
3141 1 3 3 80 b7a65c80 sh wait
3735 1 3 2 40000 b7a659c0 sshd tstile
3028 1 3 3 80 b7a64680 sshd select
40 1 3 0 80 ba038ea0 sh wait
41 1 3 1 80 baceae20 su wait
2518 1 3 1 80 ba6ba0c0 sh wait
2202 1 3 2 80 b7a65700 sshd select
2460 1 3 2 80 ba0380e0 sshd select
2314 1 3 2 80 bab83960 getty ttyraw
2264 1 3 2 80 bacea8a0 cron nanoslp
2285 1 3 0 80 b7a64ec0 inetd kqueue
2077 1 3 2 80 ba6babc0 qmgr kqueue
2206 1 3 1 80 ba039c60 pickup kqueue
2027 1 3 0 80 b7a65180 master kqueue
1841 1 3 3 80 bab82360 sshd select
1582 1 3 1 1000000 ba038be0 ntpd tstile
1572 1 3 0 80 bacea320 devpubd devmon
565 1 3 3 80 ba6bb400 dhcpcd select
1 1 3 2 80 baceab60 init wait
0 64 3 2 200 bacb0e40 physiod physiod
0 63 3 2 280 bab83c20 VCHIQka-0 =
lnxcmplt
0 62 3 2 200 bacb0080 aiodoned =
aiodoned
0 61 3 0 200 bacea5e0 ioflush syncer
0 60 3 2 200 bacb1c00 pgdaemon =
pgdaemon
0 59 3 2 280 bacb0340 vcaudio data
0 58 3 2 280 bacb0600 VCHIQs-0 semacv
0 57 3 2 280 bacb08c0 VCHIQr-0 semacv
0 56 3 2 280 bacb0b80 VCHIQ-0 semacv
0 53 3 3 200 bacb1100 usb0 usbevt
0 51 3 3 200 bacea060 unpgc unpgc
0 50 3 1 200 bacb1940 vmem_rehash =
vmem_rehash
0 49 3 3 200 bacb13c0 sdmmc0 =
mmctaskq
0 48 3 2 200 bacb1680 vcmbox0 vcmbox0
0 39 3 1 200 baceb0e0 usbtask-dr usbxfer
0 38 3 0 200 baceb3a0 usbtask-hc usbtsk
0 37 3 0 200 baceb660 dwc2 dwc2
0 36 3 3 200 baceb920 iic1 iicintr
0 35 3 0 200 bacebbe0 iic0 iicintr
0 34 3 0 200 bad9c040 sysmon smtaskq
0 33 3 3 200 bad9c300 xcall/3 xcall
0 32 1 3 200 bad9c5c0 softser/3
0 31 3 3 200 bad9c880 softclk/3 tstile
0 30 1 3 200 bad9cb40 softbio/3
0 29 1 3 200 bad9ce00 softnet/3
0 > 28 7 3 201 bad9d0c0 idle/3
0 27 3 2 200 bad9d380 xcall/2 xcall
0 26 1 2 200 bad9d640 softser/2
0 25 3 2 200 bad9d900 softclk/2 tstile
0 24 1 2 200 bad9dbc0 softbio/2
0 23 1 2 200 badcc020 softnet/2
0 > 22 7 2 201 badcc2e0 idle/2
0 21 3 1 200 badcc5a0 xcall/1 xcall
0 20 1 1 200 badcc860 softser/1
0 19 1 1 200 badccb20 softclk/1
0 18 1 1 200 badccde0 softbio/1
0 17 1 1 200 badcd0a0 softnet/1
0 > 16 7 1 201 badcd360 idle/1
0 15 3 2 200 badcd620 pmfsuspend =
pmfsuspend
0 14 3 1 200 badcd8e0 pmfevent =
pmfevent
0 13 3 0 200 badcdba0 sopendfree =
sopendfr
0 12 3 0 200 baefc000 nfssilly =
nfssilly
0 11 3 3 200 baefc2c0 cachegc cachegc
0 10 3 2 200 baefc580 vrele vrele
0 9 3 2 200 baefc840 vdrain vdrain
0 8 3 0 200 baefcb00 modunload =
mod_unld
0 7 3 0 200 baefcdc0 xcall/0 xcall
0 6 1 0 200 baefd080 softser/0
0 5 3 0 200 baefd340 softclk/0 tstile
0 4 1 0 200 baefd600 softbio/0
0 3 3 0 200 baefd8c0 softnet/0 tstile
0 > 2 7 0 201 baefdb80 idle/0
0 1 3 3 200 805718c0 swapper uvm
db{0}> x/x softnet_lock
netbsd:softnet_lock: bafadf40
db{0}> show lock bafadf40
lock address : 0x00000000bafadf40 type : sleep/adaptive
initialized : 0x0000000080154ee0
shared holds : 0 exclusive: 1
shares wanted: 0 exclusive: 6
current cpu : 0 last held: 0
current lwp : 0x00000000baefdb80 last held: 0x00000000b72379e0
last locked* : 0x00000000802c1a3c unlocked : 0x00000000802c1a8c
owner field : 0x00000000b72379e0 wait/spin: 1/0
Turnstile chain at 0x8057a340.
=3D> Turnstile at 0xbaefbf48 (wrq=3D0xbaefbf58, rdq=3D0xbaefbf60).
=3D> 0 waiting readers:
=3D> 6 waiting writers: 0xbaefd8c0 0xbad9c880 0xbaefd340 0xbad9d900 =
0xba038be0 0xb
7a659c0
db{0}> bt/a b72379e0
trace: pid 4159 lid 1 at 0xb69cfae4
0xb69cfae4: netbsd:mi_switch+0x10
0xb69cfb14: netbsd:sleepq_block+0xb4
0xb69cfb4c: netbsd:cv_wait+0x130
0xb69cfb7c: netbsd:usbd_transfer+0x23c
0xb69cfbcc: netbsd:usbd_do_request_flags_pipe+0xd8
0xb69cfbf4: netbsd:usbd_do_request+0x38
0xb69cfc24: netbsd:smsc_write_reg+0x60
0xb69cfc4c: netbsd:smsc_setmulti+0x110
0xb69cfc7c: netbsd:smsc_ioctl+0x124
0xb69cfd24: netbsd:if_mcast_op+0x50
0xb69cfd74: netbsd:in6_addmulti+0x1ac
0xb69cfd9c: netbsd:in6_joingroup+0x44
0xb69cfe24: netbsd:ip6_ctloutput+0x132c
0xb69cfe4c: netbsd:udp6_ctloutput+0x9c
0xb69cfe6c: netbsd:udp6_ctloutput_wrapper+0x30
0xb69cfed4: netbsd:sosetopt+0x6c
0xb69cff0c: netbsd:sys_setsockopt+0x84
0xb69cff7c: netbsd:syscall+0x88
0xb69cffac: netbsd:swi_handler+0x98
db{0}> bt/a 0xbaefd8c0
trace: pid 0 lid 3 at 0xbaef7e24
0xbaef7e24: netbsd:mi_switch+0x10
0xbaef7e54: netbsd:sleepq_block+0xb4
0xbaef7e94: netbsd:turnstile_block+0x318
0xbaef7ef4: netbsd:mutex_enter+0x264
0xbaef7f64: netbsd:ipintr+0x3c
0xbaef7fac: netbsd:softint_dispatch+0xd4
Bad frame pointer: 0x805fff6c
db{0}> bt/a 0xbad9c880
trace: pid 0 lid 31 at 0xbad87e2c
0xbad87e2c: netbsd:mi_switch+0x10
0xbad87e5c: netbsd:sleepq_block+0xb4
0xbad87e9c: netbsd:turnstile_block+0x318
0xbad87efc: netbsd:mutex_enter+0x264
0xbad87f14: netbsd:frag6_fasttimo+0x24
0xbad87f2c: netbsd:pffasttimo+0x58
0xbad87f64: netbsd:callout_softclock+0x194
0xbad87fac: netbsd:softint_dispatch+0xd4
Bad frame pointer: 0x80605f54
db{0}> bt/a 0xbaefd340
trace: pid 0 lid 5 at 0xbaef3e24
0xbaef3e24: netbsd:mi_switch+0x10
0xbaef3e54: netbsd:sleepq_block+0xb4
0xbaef3e94: netbsd:turnstile_block+0x318
0xbaef3ef4: netbsd:mutex_enter+0x264
0xbaef3f2c: netbsd:nd6_timer+0x58
0xbaef3f64: netbsd:callout_softclock+0x194
0xbaef3fac: netbsd:softint_dispatch+0xd4
Bad frame pointer: 0x805fff6c
db{0}> bt/a 0xbad9d900
trace: pid 0 lid 25 at 0xbad9be1c
0xbad9be1c: netbsd:mi_switch+0x10
0xbad9be4c: netbsd:sleepq_block+0xb4
0xbad9be8c: netbsd:turnstile_block+0x318
0xbad9beec: netbsd:mutex_enter+0x264
0xbad9bf2c: netbsd:tcp_timer_rexmt+0x24
0xbad9bf64: netbsd:callout_softclock+0x194
0xbad9bfac: netbsd:softint_dispatch+0xd4
Bad frame pointer: 0x80603f54
db{0}> bt/a 0xba038be0
trace: pid 1582 lid 1 at 0xb9693c5c
0xb9693c5c: netbsd:mi_switch+0x10
0xb9693c8c: netbsd:sleepq_block+0xb4
0xb9693ccc: netbsd:turnstile_block+0x318
0xb9693d2c: netbsd:mutex_enter+0x264
0xb9693dbc: netbsd:sosend+0x38
0xb9693e74: netbsd:do_sys_sendmsg_so.isra.2+0x230
0xb9693eb4: netbsd:do_sys_sendmsg+0x90
0xb9693f0c: netbsd:sys_sendto+0x64
0xb9693f7c: netbsd:syscall+0x88
0xb9693fac: netbsd:swi_handler+0x98
db{0}> bt/a 0xb7a659c0
trace: pid 3735 lid 1 at 0xb7aa3c24
0xb7aa3c24: netbsd:mi_switch+0x10
0xb7aa3c54: netbsd:sleepq_block+0xb4
0xb7aa3c94: netbsd:turnstile_block+0x318
0xb7aa3cf4: netbsd:mutex_enter+0x264
0xb7aa3d1c: netbsd:sopoll+0x24
0xb7aa3dac: netbsd:sel_do_scan+0x304
0xb7aa3ebc: netbsd:selcommon.part.2+0x12c
0xb7aa3f0c: netbsd:sys___select50+0x84
0xb7aa3f7c: netbsd:syscall+0x88
0xb7aa3fac: netbsd:swi_handler+0x98
db{0}> callout
hardclock_ticks now: 43145
ticks wheel arg func
-2231 -1/-256 0 rt_timer_timer
-2231 -1/-256 bad6680c vcons_intr
-2131 -1/-256 0 if_slowtimo
-2131 -1/-256 0 nd6_timer
-2225 -1/-256 0 sched_balance
-2221 -1/-256 b7a64c00 sleepq_timeout
-2147 -1/-256 bacebbe0 sleepq_timeout
-2138 -1/-256 bacea5e0 sleepq_timeout
-1144 -1/-256 baf9c148 sme_events_check
-2147 -1/-256 baefc580 sleepq_timeout
-2145 -1/-256 baefc840 sleepq_timeout
9 -1/-256 bacea8a0 sleepq_timeout
-2247 -1/-256 baceb920 sleepq_timeout
-2245 -1/-256 baefc2c0 sleepq_timeout
-2232 -1/-256 0 tcp_slowtimo
-2226 -1/-256 0 pfslowtimo
-2203 -1/-256 805718c0 sleepq_timeout
-812 -1/-256 bacb1100 sleepq_timeout
53 0/197 80fbfef0 realtimerexpire
27476 1/275 ba6babc0 sleepq_timeout
30676 1/288 80fbfe40 realtimerexpire
30776 1/288 80fbfd90 realtimerexpire
868 1/427 0 vmem_rehash_all_kick
3376 1/437 b7a65180 sleepq_timeout
7375 1/453 ba039c60 sleepq_timeout
21185 1/507 0 arptimer
122436 2/514 ba6bb400 sleepq_timeout
316869 2/517 0 nd6_slowtimo
597375 2/521 80fbfce0 realtimerexpire
717716 2/523 ba7098c0 tcp_timer_keep
717728 2/523 ba709290 tcp_timer_keep
4317717 2/578 b7a65700 sleepq_timeout
8559269 2/643 0 in6_tmpaddrtimer
8604597 2/643 ba7af458 nd6_llinfo_timer
db{0}> bt/a baceb0e0
trace: pid 0 lid 39 at 0xbacddd74
0xbacddd74: netbsd:mi_switch+0x10
0xbacddda4: netbsd:sleepq_block+0xb4
0xbacddddc: netbsd:cv_wait+0x130
0xbacdde0c: netbsd:usbd_transfer+0x23c
0xbacdde5c: netbsd:usbd_do_request_flags_pipe+0xd8
0xbacdde84: netbsd:usbd_do_request+0x38
0xbacddeb4: netbsd:smsc_read_reg+0x60
0xbacddedc: netbsd:smsc_wait_for_bits+0x4c
0xbacddf04: netbsd:smsc_miibus_readreg+0x4c
0xbacddf2c: netbsd:mii_phy_tick+0x68
0xbacddf4c: netbsd:ukphy_service+0xac
0xbacddf64: netbsd:mii_tick+0x54
0xbacddf7c: netbsd:smsc_tick_task+0x34
0xbacddfac: netbsd:usb_task_thread+0x10c
db{0}> x/i 802c1a3c
netbsd:sosetopt+0x34: ldr r3, [r8]
db{0}> x/i 802c1a8c
netbsd:sosetopt+0x84: mov r0, r9
db{0}>=20
Home |
Main Index |
Thread Index |
Old Index