NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/56932: x68k frequently hangs up after uvm change in 9.99.75



At Mon, 25 Jul 2022 02:35:01 +0000 (UTC),
Chuck Silvers wrote:
>  I checked in a fix for that, please try again to collect stack traces with ddb.

Thank you!  trace/a command works!

I reproduced it 3 times, and picked up threads that may apply.
Are these useful information?

---------
1st time)

db> ps
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
729    729 3   0         0             958240                 sh tstile
726    726 3   0         0             8bba40                 sh ptpage
754    754 3   0         0             8bb780                 sh flt_noram5
730    730 3   0        40             8bb4c0              sleep tstile
98      98 3   0         0             84ac80                 sh tstile
:
0       55 3   0       200             84a440           pgdaemon tstile
:

db> trace/a 958240
trace: pid 729 lid 729 at 0x3a61c50
mi_switch(958240,7c6fbc,73,15e836,0) + 2aa
sleepq_block(0,0,29a864,7deb4c,6) + 1cc
turnstile_block(7deb4c,0,797e9c,29a864) + 2ce
rw_enter(797e9c,0,88,0,0) + e2
uvm_fault_internal(83bab0,41c1000,1,0,3) + 1376
trap(3a61f60,8,4015162,41c1574) + 666
faultstkadj() + 4

db> trace/a 8bba40
trace: pid 726 lid 726 at 0x39ddbe4
mi_switch(8bba40,7c6fbc,29c300,204,8bba40) + 2aa
sleepq_block(0,0,29cc78,295440) + 1cc
uvm_wait(2564a5,797fec,41be000,1,0) + 80
pmap_enter_ptpage(83ce30,41be000,1) + 39a
pmap_enter(83ce30,41be000,6e8000,5,20) + cc
uvm_fault_internal(8eb910,41c1000,1,0,ffffffff) + baa
trap(39ddf60,8,4015162,41c1574) + 666
faultstkadj() + 4

db> trace/a 8bb780
trace: pid 754 lid 754 at 0x39d7c44
mi_switch(8bb780,7c6fbc,29c300,204,8bb780) + 2aa
sleepq_block(0,0,29cc78,295440) + 1cc
mtsleep(2b639c,204,27039c,0,295440,2b6510) + b4
uvm_wait(27039c,26,0,1) + 80
uvmfault_promote(?)
uvmpdpol_selectvictim(39d7da8,8bd090,ffffffff,39d7da4,39d7ddc) + fa
uvm_fault_internal(83b840,ffefe000,2,0,2d9) + 982
trap(39d7f60,8,a010101,ffefef54) + 666
faultstkadj() + 4

db> trace/a 8bb4c0
trace: pid 730 lid 730 at 0x2d55ce4
mi_switch(8bb4c0,7c6fbc,73,15e836,0) + 2aa
sleepq_block(0,0,29a864,7deb4c,6) + 1cc
turnstile_block(7deb4c,0,797e9c,29a864) + 2ce
rw_enter(797e9c,0) + e2
uvm_unmap_remove(83b5d0,1000,fff00000,2d55e10,0) + 172
uvmspace_free(?)
uvm_proc_exit(83b5d0,8907a4) + 5a
exit1(8bb4c0,0,0,2d55fb4,296ba4) + 294
sys_exit(8bb4c0,2d55f38,2d55f30,10,0) + 42
syscall_plain(1,8bb4c0,2d55fb4,0,0) + c8
syscall(1) + 70
trap0() + e

db> trace/a 84ac80
trace: pid 98 lid 98 at 0x397fd44
mi_switch(84ac80,7c6fbc,6f,15e836,0) + 2aa
sleepq_block(0,0,29a864,7deb4c,6) + 1cc
turnstile_block(7deb4c,0,797e9c,29a864) + 2ce
rw_enter(797e9c,0) + e2
uvmspace_fork(83b1c0,836520,84ac80,397fedc,1591d6) + 194
uvm_proc_fork(836520,890024,0,83a290,7c6d58) + 2c
fork1(84ac80,0,14,0,0) + 48e
sys_fork(84ac80,397ff38,397ff30,722,0) + 1a
syscall_plain(2,84ac80,397ffb4,ffeff6cc,420bee8) + c8
syscall(2) + 70
trap0() + e

db> trace/a 84a440
mi_switch(84a440,7c6fbc,7e,15e836,0) + 2aa
sleepq_block(0,0,29a864,0,ffffffe4) + 1cc
turnstile_block(0,1,797e9c,29a864) + 2ce
rw_enter(797e9c,1,774700,797ea4,0) + e2
uvmpd_trylockowner(7746d0,2954c0,84a500,3979f54,87f) + 6e
uvmpdpol_selectvictim(3979f54,84a51c,1fcb4,40,84a440) + 1c4
uvm_pageout(84a440) + 16e
lwp_trampoline() + e


---------
2nd time)

db> ps
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
829    829 3   0         0             86ea00                 sh ptpage
831    831 3   0       180             86ecc0                 sh pipe_rd
792    792 3   0       180             8baa40                 sh pipe_rd
810    810 3   0       180             86e1c0                 sh wait
814    814 3   0       1c0             84ac80           shutdown wait
726    726 3   0       180             86e480                 sh ttyraw
801    801 3   0       1c0             803100              login wait
766    766 3   0       1c0             86e740              getty ttyraw
742    742 3   0       180             8ba200              inetd kqueue
676    676 3   0       180             8ba780             powerd kqueue
405    405 3   0        40             8ba4c0            syslogd flt_noram1
1        1 3   0       180             803680               init wait
:
0       55 3   0       200             84a440           pgdaemon tstile
:

db> trace/a 86ea00
trace: pid 829 lid 829 at 0x39bfbe4
mi_switch(86ea00,7c6fbc,29c300,204,86ea00) + 2aa
sleepq_block(0,0,29cc78,295440) + 1cc
mtsleep(2b639c,204,2564a5,0,295440,2b6510) + b4
uvm_wait(2564a5,797fec,14000,1,0) + 80
pmap_enter_ptpage(83cee4,14000,1) + 39a
pmap_enter(83cee4,14000,8e8000,5,20) + cc
uvm_fault_internal(83b910,17000,1,0,ffefe394) + baa
trap(39bff60,8,4015162,17012) + 666
faultstkadj() + 4

db> trace/a 8ba4c0
trace: pid 405 lid 405 at 0x2d55c44
mi_switch(8ba4c0,7c6fbc,29c300,204,8ba4c0) + 2aa
sleepq_block(0,0,29cc78,295440) + 1cc
mtsleep(2b639c,204,2703d1,0,295440,2b6510) + b4
uvm_wait(2703d1) + 80
uvmfault_anonget(2d55da8,84f1d0,850580) + 220
uvm_fault_internal(83b770,ffeff000,1,0,0) + 74a
trap(2d55f60,8,4010141,ffeff870) + 666
faultstkadj() + 4

db> trace/a 84a440
trace: pid 0 lid 55 at 0x3979dd4
mi_switch(84a440,7c6fbc,7e,15e836,0) + 2aa
sleepq_block(0,0,29a864,0,ffffffe4) + 1cc
turnstile_block(0,1,797e24,29a864) + 2ce
rw_enter(797e24,1,771b80,797e2c,0) + e2
uvmpd_trylockowner(771b50,2954c0,84a500,3979f54,87f) + 6e
uvmpdpol_selectvictim(3979f54,84a51c,1fcb4,40,84a440) + 1c4
uvm_pageout(84a440) + 16e
lwp_trampoline() + e


---------
3rd time)

db> ps
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
382    382 3   0         0             86e740                 sh ptpage
405    405 3   0         0             8ba4c0            syslogd tstile
380    380 3   0        40             86ecc0              sleep tstile
103    103 3   0       180             86e480                 sh wait
99      99 3   0       180             86e1c0                 sh pipe_rd
98      98 3   0         0             84ac80                 sh flt_noram5
58      58 3   0       1c0             803100                 sh wait
1        1 3   0       180             803680               init wait
:
0       55 3   0       200             84a440           pgdaemon tstile
:

db> trace/a 86e740
trace: pid 382 lid 382 at 0x39bdbe4
mi_switch(86e740,7c6fbc,29c300,204,86e740) + 2aa
sleepq_block(0,0,29cc78,295440) + 1cc
mtsleep(2b639c,204,2564a5,0,295440,2b6510) + b4
uvm_wait(2564a5,797fec,41bf000,1,1) + 80
pmap_enter_ptpage(83cec0,41bf000,1) + 39a
pmap_enter(83cec0,41bf000,933000,5,20) + cc
uvm_fault_internal(83b5d0,41c1000,1,0,5) + baa
trap(39bdf60,8,4015162,41c1574) + 666
faultstkadj() + 4

db> trace/a 8ba4c0
trace: pid 405 lid 405 at 0x2d55c50
mi_switch(8ba4c0,7c6fbc,6f,15e836,0) + 2aa
sleepq_block(0,0,29a864,7deb4c,6) + 1cc
turnstile_block(7deb4c,0,797e9c,29a864) + 2ce
rw_enter(797e9c,0,88,9a,0) + e2
uvm_fault_internal(83b770,43c6000,1,0,ffeff4b0) + 1376
trap(2d55f60,8,4015162,43c64a2) + 666
faultstkadj() + 4

db> trace/a 86ecc0
trace: pid 380 lid 380 at 0x39d1ce4
mi_switch(86ecc0,7c6fbc,73,15e836,0) + 2aa
sleepq_block(0,0,29a864,7deb4c,6) + 1cc
turnstile_block(7deb4c,0,797e9c,29a864) + 2ce
rw_enter(797e9c,0) + e2
uvm_unmap_remove(83b500,1000,fff00000,39d1e10,0) + 172
uvmspace_free(?)
uvm_proc_exit(83b500,88d2a4) + 5a
exit1(86ecc0,0,0,39d1fb4,296ba4) + 294
sys_exit(86ecc0,39d1f38,39d1f30,66,0) + 42
syscall_plain(1,86ecc0,39d1fb4,0,0) + c8
syscall(1) + 70
trap0() + e

db> trace/a 84a440
trace: pid 0 lid 55 at 0x3979dd4
mi_switch(84a440,7c6fbc,7e,15e836,0) + 2aa
sleepq_block(0,0,29a864,0,ffffffe4) + 1cc
turnstile_block(0,1,797e9c,29a864) + 2ce
rw_enter(797e9c,1,778140,797ea4,0) + e2
uvmpd_trylockowner(778110,2954c0,84a500,3979f54,87f) + 6e
uvmpdpol_selectvictim(3979f54,84a51c,1fcb4,40,84a440) + 1c4
uvm_pageout(84a440) + 16e
lwp_trampoline() + e

---
Tetsuya Isaki <isaki%pastel-flower.jp@localhost / isaki%NetBSD.org@localhost>


Home | Main Index | Thread Index | Old Index