Hello! I've started to observe a very strange behavior on my desktop PC (never seen anything like that using FreeBSD as a desktop OS for more than 5 years). Two things changed since I've started to observe problems: 1. A new PC (HP Z440) setup 2. Updated OS (FreeBSD 10.2) At some moment some process freezes and can't be killed\removed. So far this happened with firefox, thunderbird and virtualbox. Only OS restart helps to remove such process from a list. It's a really annoying to have e.g. multiple firefox tabs in the panel which are dead. Details are given below: >uname -a FreeBSD work-pc 10.2-RELEASE-p9 FreeBSD 10.2-RELEASE-p9 #0: Thu Jan 14 01:32:46 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >uname -UK 1002000 1002000 >ps aux | grep firefox robert 1022 0.0 4.1 1102920 676568 v0 T Mon03PM 101:01.17 firefox -profile /portable/firefox/robert >procstat -k 1022 PID TID COMM TDNAME KSTACK 1022 100281 firefox Timer mi_switch sleepq_timedwait_sig _sleep umtxq_sleep do_wait __umtx_op_wait_uint_private amd64_syscall Xfast_syscall 1022 100428 firefox DOM Worker mi_switch thread_suspend_switch thread_single exit1 sigexit postsig ast Xfast_syscall >procstat -i 1022 PID COMM SIG FLAGS 1022 firefox HUP --C 1022 firefox INT --C 1022 firefox QUIT -I- 1022 firefox ILL --C 1022 firefox TRAP --- 1022 firefox ABRT --C 1022 firefox EMT --- 1022 firefox FPE -I- 1022 firefox KILL --- 1022 firefox BUS --- 1022 firefox SEGV --C 1022 firefox SYS --- 1022 firefox PIPE -I- 1022 firefox ALRM --- 1022 firefox TERM P-- 1022 firefox URG -I- 1022 firefox STOP --- 1022 firefox TSTP --- 1022 firefox CONT --- 1022 firefox CHLD -I- 1022 firefox TTIN --- 1022 firefox TTOU --- 1022 firefox IO -I- 1022 firefox XCPU --- 1022 firefox XFSZ --- 1022 firefox VTALRM --C 1022 firefox PROF --- 1022 firefox WINCH -I- 1022 firefox INFO -I- 1022 firefox USR1 --- 1022 firefox USR2 --- 1022 firefox 32 --C ... 1022 firefox 65 --C 1022 firefox 66 --C 1022 firefox 67 --C pkill CONT 1022 pkill KILL 1022 produces no effect. There are no new messages in /var/log/messages. More info (stacks for 2 threads behind STOPped process 1022) (kgdb) thread 337 [Switching to thread 337 (Thread 100281)]#0 sched_switch ( td=0xfffff800b429d000, newtd=<value optimized out>, flags=<value optimized out>) at /usr/src/sys/kern/sched_ule.c:1945 1945 cpuid = PCPU_GET(cpuid); (kgdb) bt #0 sched_switch (td=0xfffff800b429d000, newtd=<value optimized out>, flags=<value optimized out>) at /usr/src/sys/kern/sched_ule.c:1945 #1 0xffffffff80952121 in mi_switch (flags=517, newtd=0x0) at /usr/src/sys/kern/kern_synch.c:491 #2 0xffffffff80990deb in sleepq_timedwait_sig (wchan=<value optimized out>, pri=<value optimized out>) at /usr/src/sys/kern/subr_sleepqueue.c:578 #3 0xffffffff80951af8 in _sleep (ident=0xfffff80011bd7400, lock=0xffffffff815c6ee0, priority=<value optimized out>, wmesg=0xffffffff80fcb076 "uwait", sbt=<value optimized out>, pr=<value optimized out>, flags=<value optimized out>) at /usr/src/sys/kern/kern_synch.c:249 #4 0xffffffff80966195 in umtxq_sleep (uq=0xfffff80011bd7400, wmesg=0xffffffff80fcb076 "uwait", abstime=0xfffffe0464912900) at /usr/src/sys/kern/kern_umtx.c:780 #5 0xffffffff80969007 in do_wait (td=<value optimized out>, addr=<value optimized out>, id=<value optimized out>, timeout=<value optimized out>, compat32=<value optimized out>, is_private=<value optimized out>) at /usr/src/sys/kern/kern_umtx.c:1247 #6 0xffffffff8096d473 in __umtx_op_wait_uint_private ( td=<value optimized out>, uap=<value optimized out>) at /usr/src/sys/kern/kern_umtx.c:3494 #7 0xffffffff80d4b3e7 in amd64_syscall (td=0xfffff800b429d000, traced=0) at subr_syscall.c:134 ---Type <return> to continue, or q <return> to quit--- #8 0xffffffff80d30acb in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:396 #9 0x000000080119fe1c in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) thread 338 [Switching to thread 338 (Thread 100428)]#0 sched_switch ( td=0xfffff801108324a0, newtd=<value optimized out>, flags=<value optimized out>) at /usr/src/sys/kern/sched_ule.c:1945 1945 cpuid = PCPU_GET(cpuid); (kgdb) bt #0 sched_switch (td=0xfffff801108324a0, newtd=<value optimized out>, flags=<value optimized out>) at /usr/src/sys/kern/sched_ule.c:1945 #1 0xffffffff80952121 in mi_switch (flags=266, newtd=0x0) at /usr/src/sys/kern/kern_synch.c:491 #2 0xffffffff80959e00 in thread_suspend_switch (td=0xfffff801108324a0, p=0xfffff800112a8000) at /usr/src/sys/kern/kern_thread.c:947 #3 0xffffffff809599f5 in thread_single (p=0xfffff800112a8000, mode=1) at /usr/src/sys/kern/kern_thread.c:740 #4 0xffffffff8090c75e in exit1 (td=0xfffff801108324a0, rv=15) at /usr/src/sys/kern/kern_exit.c:244 #5 0xffffffff8094bf85 in sigexit (td=0xfffff801108324a0, sig=15) at /usr/src/sys/kern/kern_sig.c:2974 #6 0xffffffff8094c826 in postsig (sig=<value optimized out>) at /usr/src/sys/kern/kern_sig.c:2877 #7 0xffffffff809959c7 in ast (framep=<value optimized out>) at /usr/src/sys/kern/subr_trap.c:281 #8 0xffffffff80d30b30 in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:421 #9 0x000000080146e64a in ?? ()
A similar (and seems forgotten) issue - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201892
> uname -a FreeBSD toybox 10.2-RELEASE-p11 FreeBSD 10.2-RELEASE-p11 #0: Thu Jan 14 15:48:17 UTC 2016 root@amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > uname -UK 1002000 1001000 > ps aux | grep seamonkey harzi 3042 0.0 26.5 1286212 546864 1- T+ 9:09AM 59:39.09 seamonkey > procstat -k 3042 PID TID COMM TDNAME KSTACK 3042 100843 seamonkey Timer mi_switch sleepq_timedwait_sig _sleep umtxq_sleep do_wait __umtx_op_wait_uint_private amd64_syscall Xfast_syscall 3042 101746 seamonkey mozStorage #17 mi_switch thread_suspend_switch thread_single exit1 sigexit postsig ast Xfast_syscall > procstat -i 3042 PID COMM SIG FLAGS 3042 seamonkey HUP P-C 3042 seamonkey INT P-C 3042 seamonkey QUIT --C 3042 seamonkey ILL --C 3042 seamonkey TRAP --- 3042 seamonkey ABRT --C 3042 seamonkey EMT --- 3042 seamonkey FPE -I- 3042 seamonkey KILL P-- 3042 seamonkey BUS --- 3042 seamonkey SEGV --C 3042 seamonkey SYS --- 3042 seamonkey PIPE -I- 3042 seamonkey ALRM --- 3042 seamonkey TERM P-- 3042 seamonkey URG -I- 3042 seamonkey STOP --- 3042 seamonkey TSTP --- 3042 seamonkey CONT --- 3042 seamonkey CHLD -I- 3042 seamonkey TTIN --- 3042 seamonkey TTOU --- 3042 seamonkey IO -I- 3042 seamonkey XCPU --- 3042 seamonkey XFSZ --- 3042 seamonkey VTALRM --C 3042 seamonkey PROF --- 3042 seamonkey WINCH -I- 3042 seamonkey INFO -I- 3042 seamonkey USR1 --- 3042 seamonkey USR2 --- 3042 seamonkey 32 --C 3042 seamonkey 33 --- 3042 seamonkey 34 --- 3042 seamonkey 35 --- 3042 seamonkey 36 --- 3042 seamonkey 37 --- 3042 seamonkey 38 --- 3042 seamonkey 39 --- 3042 seamonkey 40 --- 3042 seamonkey 41 --- 3042 seamonkey 42 --- 3042 seamonkey 43 --- 3042 seamonkey 44 --- 3042 seamonkey 45 --- 3042 seamonkey 46 --- 3042 seamonkey 47 --- 3042 seamonkey 48 --- 3042 seamonkey 49 --- 3042 seamonkey 50 --- 3042 seamonkey 51 --- 3042 seamonkey 52 --- 3042 seamonkey 53 --- 3042 seamonkey 54 --- 3042 seamonkey 55 --- 3042 seamonkey 56 --- 3042 seamonkey 57 --- 3042 seamonkey 58 --- 3042 seamonkey 59 --- 3042 seamonkey 60 --- 3042 seamonkey 61 --- 3042 seamonkey 62 --- 3042 seamonkey 63 --- 3042 seamonkey 64 --- 3042 seamonkey 65 --C 3042 seamonkey 66 --C 3042 seamonkey 67 --C 3042 seamonkey 68 --- 3042 seamonkey 69 --- 3042 seamonkey 70 --- 3042 seamonkey 71 --- 3042 seamonkey 72 --- 3042 seamonkey 73 --- 3042 seamonkey 74 --- 3042 seamonkey 75 --- 3042 seamonkey 76 --- 3042 seamonkey 77 --- 3042 seamonkey 78 --- 3042 seamonkey 79 --- 3042 seamonkey 80 --- 3042 seamonkey 81 --- 3042 seamonkey 82 --- 3042 seamonkey 83 --- 3042 seamonkey 84 --- 3042 seamonkey 85 --- 3042 seamonkey 86 --- 3042 seamonkey 87 --- 3042 seamonkey 88 --- 3042 seamonkey 89 --- 3042 seamonkey 90 --- 3042 seamonkey 91 --- 3042 seamonkey 92 --- 3042 seamonkey 93 --- 3042 seamonkey 94 --- 3042 seamonkey 95 --- 3042 seamonkey 96 --- 3042 seamonkey 97 --- 3042 seamonkey 98 --- 3042 seamonkey 99 --- 3042 seamonkey 100 --- 3042 seamonkey 101 --- 3042 seamonkey 102 --- 3042 seamonkey 103 --- 3042 seamonkey 104 --- 3042 seamonkey 105 --- 3042 seamonkey 106 --- 3042 seamonkey 107 --- 3042 seamonkey 108 --- 3042 seamonkey 109 --- 3042 seamonkey 110 --- 3042 seamonkey 111 --- 3042 seamonkey 112 --- 3042 seamonkey 113 --- 3042 seamonkey 114 --- 3042 seamonkey 115 --- 3042 seamonkey 116 --- 3042 seamonkey 117 --- 3042 seamonkey 118 --- 3042 seamonkey 119 --- 3042 seamonkey 120 --- 3042 seamonkey 121 --- 3042 seamonkey 122 --- 3042 seamonkey 123 --- 3042 seamonkey 124 --- 3042 seamonkey 125 --- 3042 seamonkey 126 --- 3042 seamonkey 127 --- 3042 seamonkey 128 --- > procstat -j 3042 PID TID COMM SIG FLAGS 3042 100843 seamonkey HUP -- 3042 100843 seamonkey INT -- 3042 100843 seamonkey QUIT -- 3042 100843 seamonkey ILL -- 3042 100843 seamonkey TRAP -- 3042 100843 seamonkey ABRT -- 3042 100843 seamonkey EMT -- 3042 100843 seamonkey FPE -- 3042 100843 seamonkey KILL -- 3042 100843 seamonkey BUS -- 3042 100843 seamonkey SEGV -- 3042 100843 seamonkey SYS -- 3042 100843 seamonkey PIPE -- 3042 100843 seamonkey ALRM -- 3042 100843 seamonkey TERM -- 3042 100843 seamonkey URG -- 3042 100843 seamonkey STOP -- 3042 100843 seamonkey TSTP -- 3042 100843 seamonkey CONT -- 3042 100843 seamonkey CHLD -- 3042 100843 seamonkey TTIN -- 3042 100843 seamonkey TTOU -- 3042 100843 seamonkey IO -- 3042 100843 seamonkey XCPU -- 3042 100843 seamonkey XFSZ -- 3042 100843 seamonkey VTALRM -- 3042 100843 seamonkey PROF -- 3042 100843 seamonkey WINCH -- 3042 100843 seamonkey INFO -- 3042 100843 seamonkey USR1 -- 3042 100843 seamonkey USR2 -- 3042 100843 seamonkey 32 -- 3042 100843 seamonkey 33 -- 3042 100843 seamonkey 34 -- 3042 100843 seamonkey 35 -- 3042 100843 seamonkey 36 -- 3042 100843 seamonkey 37 -- 3042 100843 seamonkey 38 -- 3042 100843 seamonkey 39 -- 3042 100843 seamonkey 40 -- 3042 100843 seamonkey 41 -- 3042 100843 seamonkey 42 -- 3042 100843 seamonkey 43 -- 3042 100843 seamonkey 44 -- 3042 100843 seamonkey 45 -- 3042 100843 seamonkey 46 -- 3042 100843 seamonkey 47 -- 3042 100843 seamonkey 48 -- 3042 100843 seamonkey 49 -- 3042 100843 seamonkey 50 -- 3042 100843 seamonkey 51 -- 3042 100843 seamonkey 52 -- 3042 100843 seamonkey 53 -- 3042 100843 seamonkey 54 -- 3042 100843 seamonkey 55 -- 3042 100843 seamonkey 56 -- 3042 100843 seamonkey 57 -- 3042 100843 seamonkey 58 -- 3042 100843 seamonkey 59 -- 3042 100843 seamonkey 60 -- 3042 100843 seamonkey 61 -- 3042 100843 seamonkey 62 -- 3042 100843 seamonkey 63 -- 3042 100843 seamonkey 64 -- 3042 100843 seamonkey 65 -- 3042 100843 seamonkey 66 -- 3042 100843 seamonkey 67 -- 3042 100843 seamonkey 68 -- 3042 100843 seamonkey 69 -- 3042 100843 seamonkey 70 -- 3042 100843 seamonkey 71 -- 3042 100843 seamonkey 72 -- 3042 100843 seamonkey 73 -- 3042 100843 seamonkey 74 -- 3042 100843 seamonkey 75 -- 3042 100843 seamonkey 76 -- 3042 100843 seamonkey 77 -- 3042 100843 seamonkey 78 -- 3042 100843 seamonkey 79 -- 3042 100843 seamonkey 80 -- 3042 100843 seamonkey 81 -- 3042 100843 seamonkey 82 -- 3042 100843 seamonkey 83 -- 3042 100843 seamonkey 84 -- 3042 100843 seamonkey 85 -- 3042 100843 seamonkey 86 -- 3042 100843 seamonkey 87 -- 3042 100843 seamonkey 88 -- 3042 100843 seamonkey 89 -- 3042 100843 seamonkey 90 -- 3042 100843 seamonkey 91 -- 3042 100843 seamonkey 92 -- 3042 100843 seamonkey 93 -- 3042 100843 seamonkey 94 -- 3042 100843 seamonkey 95 -- 3042 100843 seamonkey 96 -- 3042 100843 seamonkey 97 -- 3042 100843 seamonkey 98 -- 3042 100843 seamonkey 99 -- 3042 100843 seamonkey 100 -- 3042 100843 seamonkey 101 -- 3042 100843 seamonkey 102 -- 3042 100843 seamonkey 103 -- 3042 100843 seamonkey 104 -- 3042 100843 seamonkey 105 -- 3042 100843 seamonkey 106 -- 3042 100843 seamonkey 107 -- 3042 100843 seamonkey 108 -- 3042 100843 seamonkey 109 -- 3042 100843 seamonkey 110 -- 3042 100843 seamonkey 111 -- 3042 100843 seamonkey 112 -- 3042 100843 seamonkey 113 -- 3042 100843 seamonkey 114 -- 3042 100843 seamonkey 115 -- 3042 100843 seamonkey 116 -- 3042 100843 seamonkey 117 -- 3042 100843 seamonkey 118 -- 3042 100843 seamonkey 119 -- 3042 100843 seamonkey 120 -- 3042 100843 seamonkey 121 -- 3042 100843 seamonkey 122 -- 3042 100843 seamonkey 123 -- 3042 100843 seamonkey 124 -- 3042 100843 seamonkey 125 -- 3042 100843 seamonkey 126 -- 3042 100843 seamonkey 127 -- 3042 100843 seamonkey 128 -- 3042 101746 seamonkey HUP -B 3042 101746 seamonkey INT -B 3042 101746 seamonkey QUIT -B 3042 101746 seamonkey ILL -B 3042 101746 seamonkey TRAP -B 3042 101746 seamonkey ABRT -B 3042 101746 seamonkey EMT -B 3042 101746 seamonkey FPE -B 3042 101746 seamonkey KILL -- 3042 101746 seamonkey BUS -B 3042 101746 seamonkey SEGV -B 3042 101746 seamonkey SYS -B 3042 101746 seamonkey PIPE -B 3042 101746 seamonkey ALRM -B 3042 101746 seamonkey TERM -- 3042 101746 seamonkey URG -B 3042 101746 seamonkey STOP -- 3042 101746 seamonkey TSTP -B 3042 101746 seamonkey CONT -B 3042 101746 seamonkey CHLD -B 3042 101746 seamonkey TTIN -B 3042 101746 seamonkey TTOU -B 3042 101746 seamonkey IO -B 3042 101746 seamonkey XCPU -B 3042 101746 seamonkey XFSZ -B 3042 101746 seamonkey VTALRM -B 3042 101746 seamonkey PROF -B 3042 101746 seamonkey WINCH -B 3042 101746 seamonkey INFO -B 3042 101746 seamonkey USR1 -B 3042 101746 seamonkey USR2 -B 3042 101746 seamonkey 32 -- 3042 101746 seamonkey 33 -B 3042 101746 seamonkey 34 -B 3042 101746 seamonkey 35 -B 3042 101746 seamonkey 36 -B 3042 101746 seamonkey 37 -B 3042 101746 seamonkey 38 -B 3042 101746 seamonkey 39 -B 3042 101746 seamonkey 40 -B 3042 101746 seamonkey 41 -B 3042 101746 seamonkey 42 -B 3042 101746 seamonkey 43 -B 3042 101746 seamonkey 44 -B 3042 101746 seamonkey 45 -B 3042 101746 seamonkey 46 -B 3042 101746 seamonkey 47 -B 3042 101746 seamonkey 48 -B 3042 101746 seamonkey 49 -B 3042 101746 seamonkey 50 -B 3042 101746 seamonkey 51 -B 3042 101746 seamonkey 52 -B 3042 101746 seamonkey 53 -B 3042 101746 seamonkey 54 -B 3042 101746 seamonkey 55 -B 3042 101746 seamonkey 56 -B 3042 101746 seamonkey 57 -B 3042 101746 seamonkey 58 -B 3042 101746 seamonkey 59 -B 3042 101746 seamonkey 60 -B 3042 101746 seamonkey 61 -B 3042 101746 seamonkey 62 -B 3042 101746 seamonkey 63 -B 3042 101746 seamonkey 64 -B 3042 101746 seamonkey 65 -B 3042 101746 seamonkey 66 -B 3042 101746 seamonkey 67 -B 3042 101746 seamonkey 68 -B 3042 101746 seamonkey 69 -B 3042 101746 seamonkey 70 -B 3042 101746 seamonkey 71 -B 3042 101746 seamonkey 72 -B 3042 101746 seamonkey 73 -B 3042 101746 seamonkey 74 -B 3042 101746 seamonkey 75 -B 3042 101746 seamonkey 76 -B 3042 101746 seamonkey 77 -B 3042 101746 seamonkey 78 -B 3042 101746 seamonkey 79 -B 3042 101746 seamonkey 80 -B 3042 101746 seamonkey 81 -B 3042 101746 seamonkey 82 -B 3042 101746 seamonkey 83 -B 3042 101746 seamonkey 84 -B 3042 101746 seamonkey 85 -B 3042 101746 seamonkey 86 -B 3042 101746 seamonkey 87 -B 3042 101746 seamonkey 88 -B 3042 101746 seamonkey 89 -B 3042 101746 seamonkey 90 -B 3042 101746 seamonkey 91 -B 3042 101746 seamonkey 92 -B 3042 101746 seamonkey 93 -B 3042 101746 seamonkey 94 -B 3042 101746 seamonkey 95 -B 3042 101746 seamonkey 96 -B 3042 101746 seamonkey 97 -B 3042 101746 seamonkey 98 -B 3042 101746 seamonkey 99 -B 3042 101746 seamonkey 100 -B 3042 101746 seamonkey 101 -B 3042 101746 seamonkey 102 -B 3042 101746 seamonkey 103 -B 3042 101746 seamonkey 104 -B 3042 101746 seamonkey 105 -B 3042 101746 seamonkey 106 -B 3042 101746 seamonkey 107 -B 3042 101746 seamonkey 108 -B 3042 101746 seamonkey 109 -B 3042 101746 seamonkey 110 -B 3042 101746 seamonkey 111 -B 3042 101746 seamonkey 112 -B 3042 101746 seamonkey 113 -B 3042 101746 seamonkey 114 -B 3042 101746 seamonkey 115 -B 3042 101746 seamonkey 116 -B 3042 101746 seamonkey 117 -B 3042 101746 seamonkey 118 -B 3042 101746 seamonkey 119 -B 3042 101746 seamonkey 120 -B 3042 101746 seamonkey 121 -B 3042 101746 seamonkey 122 -B 3042 101746 seamonkey 123 -B 3042 101746 seamonkey 124 -B 3042 101746 seamonkey 125 -B 3042 101746 seamonkey 126 -B 3042 101746 seamonkey 127 -B 3042 101746 seamonkey 128 -B
Fix is in HEAD, stable/11 and stable/10.
(In reply to Konstantin Belousov from comment #3) Can you please share the commit ID which fixes this issue. We are hitting similar issue on FreeBSD 13 as well.