Bug 216905 - process hung in STOP, CPU 100% system, thread in PCPU_GET(cpuid)
Summary: process hung in STOP, CPU 100% system, thread in PCPU_GET(cpuid)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.3-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-08 08:13 UTC by Erokhin Konstantin
Modified: 2017-02-09 06:04 UTC (History)
0 users

See Also:


Attachments
kgdb inspect proc, threads (19.60 KB, text/plain)
2017-02-08 08:13 UTC, Erokhin Konstantin
no flags Details
procstat (27.15 KB, text/plain)
2017-02-08 08:29 UTC, Erokhin Konstantin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erokhin Konstantin 2017-02-08 08:13:04 UTC
Created attachment 179745 [details]
kgdb inspect proc, threads

10.3-RELEASE-p7, our jailed process named `udpd` hangs in STOP state.
According to top it uses 100% CPU:
  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
25041  10001        2  20    0 30061M 21536M STOP   26 2783.5 100.00% udpd

CPU id 26 is 100% system time.
gdb/lldb/truss cant attach to process.

Process has two threads^
ps HO wchan,nwchan,ppid -p 25041
  PID WCHAN NWCHAN PPID TT  STAT         TIME COMMAND
25041 -     -         1  -  RJ   165992:29.29 bin/udpd --config=etc/transport.cfg --subcfg=etc/transport --daemonize --pid-file=/usr/local/ksn/var/ksn.udpd.pid --trace-file=log/udpd_trace.txt --trace-level=500
25041 -     -         1  -  TJ        1:36.89 bin/udpd --config=etc/transport.cfg --subcfg=etc/transport --daemonize --pid-file=/usr/local/ksn/var/ksn.udpd.pid --trace-file=log/udpd_trace.txt --trace-level=500

Collected some info about threand and proc via kgdb.
Comment 1 Erokhin Konstantin 2017-02-08 08:29:50 UTC
Created attachment 179746 [details]
procstat