Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2015 13:50:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201528] Process under 10.1-STABLE is unkillable (uninterruptible sleep)
Message-ID:  <bug-201528-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201528

            Bug ID: 201528
           Summary: Process under 10.1-STABLE is unkillable
                    (uninterruptible sleep)
           Product: Base System
           Version: 10.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: tony@git-pull.com

Created attachment 158692
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158692&action=edit
lsof -p 51878 (the wineserver process)

I'm play dota2.exe in Wine and the game will freeze. 

wineserver -k won't work.

Playing with GTX 980 + NVIDIA-FreeBSD-x86_64-346.82.

Please let me know if there's anything I can do to provide better debug info.

I also have the 'lsof -p', would that be helpful?

Aside: I won't be able to start the game again unless I restart. Is there
anyway to kill a process in this state without a full restart?

(this would happen on 10.1-RELEASE as well)

$ freebsd-version -ku; uname -apKU                                              
10.2-BETA1
10.2-BETA1
FreeBSD z600 10.2-BETA1 FreeBSD 10.2-BETA1 #11: Sun Jul 12 20:12:21 CDT 2015   
 root@z600:/usr/obj/usr/src/sys/MYKERNEL  amd64 amd64 1001519 1001519


$ pkg info i386-wine-devel-1.7.44,1 
i386-wine-devel-1.7.44,1
Name           : i386-wine-devel
Version        : 1.7.44,1
Installed on   : Sun Jun 14 16:08:45 CDT 2015
Origin         : emulators/i386-wine-devel
Architecture   : freebsd:10:x86:64



$ procstat -k 51878 
  PID    TID COMM             TDNAME           KSTACK                       
51878 102435 wineserver       -                mi_switch sleepq_timedwait_sig
_sleep kern_kevent freebsd32_kevent ia32_syscall Xint0x80_syscall 

$ procstat -kk 51878
  PID    TID COMM             TDNAME           KSTACK                       
51878 102435 wineserver       -                mi_switch+0xe1
sleepq_timedwait_sig+0x8b _sleep+0x238 kern_kevent+0x401 freebsd32_kevent+0x6b
ia32_syscall+0x2f8 Xint0x80_syscall+0x95 




$ ps -Ao pid,paddr | grep 51878
51878 fffff80237a4d4e8


$ ps  -o user,pid,ppid,pending,caught,ignored,blocked,stat,wchan   51878
USER   PID  PPID  PENDING CAUGHT  IGNORED BLOCKED STAT WCHAN
tony 51878 28261 20014103  86027 19409000       0 DXs  -

$  ps wwwaux -o pid,paddr | grep 51878
tony       51878    0.0  0.0   16276   6072  -  DXs   6:11AM    23:40.38
/usr/local/bin/. 51878 fffff80237a4d4e8
root       28261    0.0  0.0   12472   1636  0  I+    8:27AM     0:00.00 truss
-p 51878   28261 fffff800985629d0


(kgdb) p *(struct proc *)0xfffff80237a4d4e8
$1 = {p_list = {le_next = 0xfffff80053fb9000, le_prev = 0xfffff80053f7d000},
p_threads = {tqh_first = 0xfffff8002d6cf4a0, tqh_last = 0xfffff8002d6cf4b0},
p_slock = {
    lock_object = {lo_name = 0xffffffff80f68325 "process slock", lo_flags =
720896, lo_data = 0, lo_witness = 0x0}, mtx_lock = 4}, p_ucred =
0xfffff801c14d7900, 
  p_fd = 0xfffff802b1cc4000, p_fdtol = 0x0, p_stats = 0xfffff801fc966600,
p_limit = 0xfffff80209cb7400, p_limco = {c_links = {le = {le_next = 0x0,
le_prev = 0x0}, sle = {
        sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x0}}, c_time = 0,
c_precision = 0, c_arg = 0x0, c_func = 0, c_lock = 0xfffff80237a4d5e8, c_flags
= 0, c_iflags = 0, 
    c_cpu = 0}, p_sigacts = 0xfffff801d6a25000, p_flag = 268437505, p_flag2 =
0, p_state = PRS_NORMAL, p_pid = 51878, p_hash = {le_next = 0x0, le_prev =
0xfffffe00006c5530}, 
  p_pglist = {le_next = 0x0, le_prev = 0xfffff80222b3be90}, p_pptr =
0xfffff800985629d0, p_sibling = {le_next = 0x0, le_prev = 0xfffff80098562ac8},
p_children = {lh_first = 0x0}, 
  p_mtx = {lock_object = {lo_name = 0xffffffff80f68318 "process lock", lo_flags
= 21168128, lo_data = 0, lo_witness = 0x0}, mtx_lock = 4}, p_ksi =
0xfffff8009818a620, 
  p_sigqueue = {sq_signals = {__bits = {536953091, 0, 0, 0}}, sq_kill = {__bits
= {65792, 0, 0, 0}}, sq_list = {tqh_first = 0xfffff801a081e7e0, tqh_last =
0xfffff800621d5930}, 
    sq_proc = 0xfffff80237a4d4e8, sq_flags = 1}, p_oppid = 1, p_vmspace =
0xfffff800620c5700, p_swtick = 34726963, p_realtimer = {it_interval = {tv_sec =
0, tv_usec = 0}, 
    it_value = {tv_sec = 0, tv_usec = 0}}, p_ru = {ru_utime = {tv_sec = 0,
tv_usec = 0}, ru_stime = {tv_sec = 0, tv_usec = 0}, ru_maxrss = 0, ru_ixrss =
0, ru_idrss = 0, 
    ru_isrss = 0, ru_minflt = 0, ru_majflt = 0, ru_nswap = 0, ru_inblock = 0,
ru_oublock = 0, ru_msgsnd = 0, ru_msgrcv = 0, ru_nsignals = 0, ru_nvcsw = 0,
ru_nivcsw = 0}, 
  p_rux = {rux_runtime = 3778283255408, rux_uticks = 32925, rux_sticks =
142315, rux_iticks = 0, rux_uu = 266867770, rux_su = 1153509088, rux_tu =
1420376859}, p_crux = {
    rux_runtime = 0, rux_uticks = 0, rux_sticks = 0, rux_iticks = 0, rux_uu =
0, rux_su = 0, rux_tu = 0}, p_profthreads = 0, p_exitthreads = 0, p_traceflag =
0, p_tracevp = 0x0, 
  p_tracecred = 0x0, p_textvp = 0xfffff801b01b21d8, p_lock = 0, p_sigiolst =
{slh_first = 0x0}, p_sigparent = 20, p_sig = 0, p_code = 0, p_stops = 0,
p_stype = 0, 
  p_step = 0 '\0', p_pfsflags = 0 '\0', p_nlminfo = 0x0, p_aioinfo = 0x0,
p_singlethread = 0x0, p_suspcount = 0, p_xthread = 0x0, p_boundary_count = 0,
p_pendingcnt = 6, 
  p_itimers = 0x0, p_procdesc = 0x0, p_magic = 3203398350, p_osrel = 1001000,
p_comm = "wineserver\000\000\000\000\000\000\000\000\000", p_pgrp =
0xfffff80222b3be80, 
  p_sysent = 0xffffffff8146c908, p_args = 0xfffff802019e8300, p_cpulimit =
9223372036854775807, p_nice = 0 '\0', p_fibnum = 0, p_xstat = 17, p_klist =
{kl_list = {
      slh_first = 0x0}, kl_lock = 0xffffffff808ce7f0 <knlist_mtx_lock>,
kl_unlock = 0xffffffff808ce830 <knlist_mtx_unlock>, 
    kl_assert_locked = 0xffffffff808ce870 <knlist_mtx_assert_locked>,
kl_assert_unlocked = 0xffffffff808ce880 <knlist_mtx_assert_unlocked>,
kl_lockarg = 0xfffff80237a4d5e8}, 
  p_numthreads = 1, p_md = {md_ldt = 0x0, md_ldt_sd = {sd_lolimit = 0,
sd_lobase = 0, sd_type = 0, sd_dpl = 0, sd_p = 0, sd_hilimit = 0, sd_xx0 = 0,
sd_gran = 0, sd_hibase = 0, 
      sd_xx1 = 0, sd_mbz = 0, sd_xx2 = 0}}, p_itcallout = {c_links = {le =
{le_next = 0x0, le_prev = 0xfffffe000083d538}, sle = {sle_next = 0x0}, tqe =
{tqe_next = 0x0, 
        tqe_prev = 0xfffffe000083d538}}, c_time = 151039631622886, c_precision
= 805306368, c_arg = 0xfffff80237a4d4e8, c_func = 0xffffffff8091d5a0
<realitexpire>, 
    c_lock = 0xfffff80237a4d5e8, c_flags = 0, c_iflags = 0, c_cpu = 0},
p_acflag = 1, p_peers = 0x0, p_leader = 0xfffff80237a4d4e8, p_emuldata = 0x0,
p_label = 0x0, 
  p_sched = 0xfffff80237a4d9d0, p_ktr = {stqh_first = 0x0, stqh_last =
0xfffff80237a4d930}, p_mqnotifier = {lh_first = 0x0}, p_dtrace =
0xfffff801f808d100, p_pwait = {
    cv_description = 0xffffffff80f68d19 "ppwait", cv_waiters = 0}, p_dbgwait =
{cv_description = 0xffffffff80f68d20 "dbgwait", cv_waiters = 0}, p_prev_runtime
= 0, p_racct = 0x0, 
  p_throttled = 0 '\0', p_orphan = {le_next = 0x0, le_prev =
0xfffff800057e6998}, p_orphans = {lh_first = 0x0}, p_treeflag = 3, p_reaper =
0xfffff800057e64e8, p_reaplist = {
    lh_first = 0x0}, p_reapsibling = {le_next = 0xfffff80053fb9000, le_prev =
0xfffff80053f7d4d0}, p_reapsubtree = 1128}
Current language:  auto; currently minimal


(kgdb) p *(struct proc *)0xfffff80237a4d4e8                         
$1 = {p_list = {le_next = 0xfffff80053fb9000, le_prev = 0xfffff80053f7d000},
p_threads = {tqh_first = 0xfffff8002d6cf4a0, tqh_last = 0xfffff8002d6cf4b0},
p_slock = {
    lock_object = {lo_name = 0xffffffff80f68325 "process slock", lo_flags =
720896, lo_data = 0, lo_witness = 0x0}, mtx_lock = 4}, p_ucred =
0xfffff801c14d7900, 
  p_fd = 0xfffff802b1cc4000, p_fdtol = 0x0, p_stats = 0xfffff801fc966600,
p_limit = 0xfffff80209cb7400, p_limco = {c_links = {le = {le_next = 0x0,
le_prev = 0x0}, sle = {
        sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x0}}, c_time = 0,
c_precision = 0, c_arg = 0x0, c_func = 0, c_lock = 0xfffff80237a4d5e8, c_flags
= 0, c_iflags = 0, 
    c_cpu = 0}, p_sigacts = 0xfffff801d6a25000, p_flag = 268437505, p_flag2 =
0, p_state = PRS_NORMAL, p_pid = 51878, p_hash = {le_next = 0x0, le_prev =
0xfffffe00006c5530}, 
  p_pglist = {le_next = 0x0, le_prev = 0xfffff80222b3be90}, p_pptr =
0xfffff800985629d0, p_sibling = {le_next = 0x0, le_prev = 0xfffff80098562ac8},
p_children = {lh_first = 0x0}, 
  p_mtx = {lock_object = {lo_name = 0xffffffff80f68318 "process lock", lo_flags
= 21168128, lo_data = 0, lo_witness = 0x0}, mtx_lock = 4}, p_ksi =
0xfffff8009818a620, 
  p_sigqueue = {sq_signals = {__bits = {536953091, 0, 0, 0}}, sq_kill = {__bits
= {65792, 0, 0, 0}}, sq_list = {tqh_first = 0xfffff801a081e7e0, tqh_last =
0xfffff800621d5930}, 
    sq_proc = 0xfffff80237a4d4e8, sq_flags = 1}, p_oppid = 1, p_vmspace =
0xfffff800620c5700, p_swtick = 34726963, p_realtimer = {it_interval = {tv_sec =
0, tv_usec = 0}, 
    it_value = {tv_sec = 0, tv_usec = 0}}, p_ru = {ru_utime = {tv_sec = 0,
tv_usec = 0}, ru_stime = {tv_sec = 0, tv_usec = 0}, ru_maxrss = 0, ru_ixrss =
0, ru_idrss = 0, 
    ru_isrss = 0, ru_minflt = 0, ru_majflt = 0, ru_nswap = 0, ru_inblock = 0,
ru_oublock = 0, ru_msgsnd = 0, ru_msgrcv = 0, ru_nsignals = 0, ru_nvcsw = 0,
ru_nivcsw = 0}, 
  p_rux = {rux_runtime = 3778283255408, rux_uticks = 32925, rux_sticks =
142315, rux_iticks = 0, rux_uu = 266867770, rux_su = 1153509088, rux_tu =
1420376859}, p_crux = {
    rux_runtime = 0, rux_uticks = 0, rux_sticks = 0, rux_iticks = 0, rux_uu =
0, rux_su = 0, rux_tu = 0}, p_profthreads = 0, p_exitthreads = 0, p_traceflag =
0, p_tracevp = 0x0, 
  p_tracecred = 0x0, p_textvp = 0xfffff801b01b21d8, p_lock = 0, p_sigiolst =
{slh_first = 0x0}, p_sigparent = 20, p_sig = 0, p_code = 0, p_stops = 0,
p_stype = 0, 
  p_step = 0 '\0', p_pfsflags = 0 '\0', p_nlminfo = 0x0, p_aioinfo = 0x0,
p_singlethread = 0x0, p_suspcount = 0, p_xthread = 0x0, p_boundary_count = 0,
p_pendingcnt = 6, 
  p_itimers = 0x0, p_procdesc = 0x0, p_magic = 3203398350, p_osrel = 1001000,
p_comm = "wineserver\000\000\000\000\000\000\000\000\000", p_pgrp =
0xfffff80222b3be80, 
  p_sysent = 0xffffffff8146c908, p_args = 0xfffff802019e8300, p_cpulimit =
9223372036854775807, p_nice = 0 '\0', p_fibnum = 0, p_xstat = 17, p_klist =
{kl_list = {
      slh_first = 0x0}, kl_lock = 0xffffffff808ce7f0 <knlist_mtx_lock>,
kl_unlock = 0xffffffff808ce830 <knlist_mtx_unlock>, 
    kl_assert_locked = 0xffffffff808ce870 <knlist_mtx_assert_locked>,
kl_assert_unlocked = 0xffffffff808ce880 <knlist_mtx_assert_unlocked>,
kl_lockarg = 0xfffff80237a4d5e8}, 
  p_numthreads = 1, p_md = {md_ldt = 0x0, md_ldt_sd = {sd_lolimit = 0,
sd_lobase = 0, sd_type = 0, sd_dpl = 0, sd_p = 0, sd_hilimit = 0, sd_xx0 = 0,
sd_gran = 0, sd_hibase = 0, 
      sd_xx1 = 0, sd_mbz = 0, sd_xx2 = 0}}, p_itcallout = {c_links = {le =
{le_next = 0x0, le_prev = 0xfffffe000083d538}, sle = {sle_next = 0x0}, tqe =
{tqe_next = 0x0, 
        tqe_prev = 0xfffffe000083d538}}, c_time = 151039631622886, c_precision
= 805306368, c_arg = 0xfffff80237a4d4e8, c_func = 0xffffffff8091d5a0
<realitexpire>, 
    c_lock = 0xfffff80237a4d5e8, c_flags = 0, c_iflags = 0, c_cpu = 0},
p_acflag = 1, p_peers = 0x0, p_leader = 0xfffff80237a4d4e8, p_emuldata = 0x0,
p_label = 0x0, 
  p_sched = 0xfffff80237a4d9d0, p_ktr = {stqh_first = 0x0, stqh_last =
0xfffff80237a4d930}, p_mqnotifier = {lh_first = 0x0}, p_dtrace =
0xfffff801f808d100, p_pwait = {
    cv_description = 0xffffffff80f68d19 "ppwait", cv_waiters = 0}, p_dbgwait =
{cv_description = 0xffffffff80f68d20 "dbgwait", cv_waiters = 0}, p_prev_runtime
= 0, p_racct = 0x0, 
  p_throttled = 0 '\0', p_orphan = {le_next = 0x0, le_prev =
0xfffff800057e6998}, p_orphans = {lh_first = 0x0}, p_treeflag = 3, p_reaper =
0xfffff800057e64e8, p_reaplist = {
    lh_first = 0x0}, p_reapsibling = {le_next = 0xfffff80053fb9000, le_prev =
0xfffff80053f7d4d0}, p_reapsubtree = 1128}
Current language:  auto; currently minimal
(kgdb) p/x *(((struct proc *)0xfffff80237a4d4e8)->p_threads.tqh_first)
$2 = {td_lock = 0xffffffff81552580, td_proc = 0xfffff80237a4d4e8, td_plist =
{tqe_next = 0x0, tqe_prev = 0xfffff80237a4d4f8}, td_runq = {tqe_next = 0x0, 
    tqe_prev = 0xffffffff81552808}, td_slpq = {tqe_next = 0x0, tqe_prev =
0xfffff80053a66d80}, td_lockq = {tqe_next = 0x0, tqe_prev =
0xfffffe04eaad1868}, td_hash = {
    le_next = 0x0, le_prev = 0xfffffe0000852118}, td_cpuset =
0xfffff800057d73a8, td_sel = 0xfffff801af8d9000, td_sleepqueue =
0xfffff80053a66d80, 
  td_turnstile = 0xfffff8024efb7780, td_rlqe = 0xfffff8005374a4d8, td_umtxq =
0xfffff801a16c5d00, td_tid = 0x19023, td_sigqueue = {sq_signals = {__bits =
{0x0, 0x0, 0x0, 0x0}}, 
    sq_kill = {__bits = {0x0, 0x0, 0x0, 0x0}}, sq_list = {tqh_first = 0x0,
tqh_last = 0xfffff8002d6cf558}, sq_proc = 0xfffff80237a4d4e8, sq_flags = 0x1},
td_lend_user_pri = 0xff, 
  td_flags = 0x20814, td_inhibitors = 0x2, td_pflags = 0x0, td_dupfd = 0x0,
td_sqqueue = 0x0, td_wchan = 0x0, td_wmesg = 0x0, td_lastcpu = 0x6, td_oncpu =
0xff, 
  td_owepreempt = 0x0, td_tsqueue = 0x0, td_locks = 0x2d93, td_rw_rlocks = 0x0,
td_lk_slocks = 0x0, td_stopsched = 0x0, td_blocked = 0x0, td_lockname = 0x0,
td_contested = {
    lh_first = 0x0}, td_sleeplocks = 0x0, td_intr_nesting_level = 0x0,
td_pinned = 0x0, td_ucred = 0xfffff801c14d7900, td_estcpu = 0x0, td_slptick =
0x0, td_blktick = 0x0, 
  td_swvoltick = 0x27d296b, td_cow = 0x30, td_ru = {ru_utime = {tv_sec = 0x0,
tv_usec = 0x0}, ru_stime = {tv_sec = 0x0, tv_usec = 0x0}, ru_maxrss = 0x1be0,
ru_ixrss = 0x3d80380, 
    ru_idrss = 0x357aa0, ru_isrss = 0x1564400, ru_minflt = 0x4b011, ru_majflt =
0x0, ru_nswap = 0x0, ru_inblock = 0x16f, ru_oublock = 0x210, ru_msgsnd =
0x1568, 
    ru_msgrcv = 0x317, ru_nsignals = 0x0, ru_nvcsw = 0x3184025, ru_nivcsw =
0x204dc}, td_rux = {rux_runtime = 0x36fb33b3670, rux_uticks = 0x809d,
rux_sticks = 0x22beb, 
    rux_iticks = 0x0, rux_uu = 0xfe8143a, rux_su = 0x44c126e0, rux_tu =
0x54a93b1b}, td_incruntime = 0x0, td_runtime = 0x36fb33b3670, td_pticks = 0x0,
td_sticks = 0x0, 
  td_iticks = 0x0, td_uticks = 0x0, td_intrval = 0x0, td_oldsigmask = {__bits =
{0x0, 0x0, 0x0, 0x0}}, td_generation = 0x31a4501, td_sigstk = {ss_sp = 0x0,
ss_size = 0x0, 
    ss_flags = 0x4}, td_xsig = 0x0, td_profil_addr = 0x0, td_profil_ticks =
0x0, td_name = {0x77, 0x69, 0x6e, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
0x0, 0x0, 0x0, 0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0}, td_fpop = 0x0, td_dbgflags = 0x0, td_dbgksi =
{ksi_link = {tqe_next = 0x0, tqe_prev = 0x0}, ksi_info = {si_signo = 0x0,
si_errno = 0x0, 
      si_code = 0x0, si_pid = 0x0, si_uid = 0x0, si_status = 0x0, si_addr =
0x0, si_value = {sival_int = 0x0, sival_ptr = 0x0, sigval_int = 0x0, sigval_ptr
= 0x0}, _reason = {
        _fault = {_trapno = 0x0}, _timer = {_timerid = 0x0, _overrun = 0x0},
_mesgq = {_mqd = 0x0}, _poll = {_band = 0x0}, __spare__ = {__spare1__ = 0x0,
__spare2__ = {0x0, 0x0, 
            0x0, 0x0, 0x0, 0x0, 0x0}}}}, ksi_flags = 0x0, ksi_sigq = 0x0},
td_ng_outbound = 0x0, td_osd = {osd_nslots = 0x1, osd_slots =
0xfffff8028c535650, osd_next = {
      le_next = 0xfffff80053aabc60, le_prev = 0xfffff800999ed7d0}},
td_map_def_user = 0x0, td_dbg_forked = 0x0, td_vp_reserv = 0x0, td_no_sleeping
= 0x0, td_dom_rr_idx = 0x0, 
  td_sigmask = {__bits = {0x0, 0x0, 0x0, 0x0}}, td_rqindex = 0x1e, td_base_pri
= 0x78, td_priority = 0x78, td_pri_class = 0x3, td_user_pri = 0x7a,
td_base_user_pri = 0x7a, 
  td_pcb = 0xfffffe04eb199cc0, td_state = 0x1, td_retval = {0x0, 0x0},
td_slpcallout = {c_links = {le = {le_next = 0x0, le_prev = 0xfffffe0000c752b0},
sle = {sle_next = 0x0}, 
      tqe = {tqe_next = 0x0, tqe_prev = 0xfffffe0000c752b0}}, c_time =
0xa31e56c0f18a, c_precision = 0x147ae1, c_arg = 0xfffff8002d6cf4a0, c_func =
0xffffffff80951350, 
    c_lock = 0x0, c_flags = 0x0, c_iflags = 0x110, c_cpu = 0x11}, td_frame =
0xfffffe04eb199c00, td_kstack_obj = 0xfffff801ff0d1700, td_kstack =
0xfffffe04eb196000, 
  td_kstack_pages = 0x4, td_critnest = 0x1, td_md = {md_spinlock_count = 0x1,
md_saved_flags = 0x246, md_spurflt_addr = 0x0}, td_sched = 0xfffff8002d6cf910,
td_ar = 0x0, 
  td_lprof = {{lh_first = 0x0}, {lh_first = 0x0}}, td_dtrace =
0xfffff8018e709900, td_errno = 0x0, td_vnet = 0x0, td_vnet_lpush = 0x0,
td_intr_frame = 0x0, 
  td_rfppwait_p = 0xfffff802905479d0, td_ma = 0x0, td_ma_cnt = 0x0, td_su =
0x0}

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201528-8>