From owner-freebsd-threads@FreeBSD.ORG Sun Jun 21 05:51:20 2015 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2359C44F for ; Sun, 21 Jun 2015 05:51:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0110D89C for ; Sun, 21 Jun 2015 05:51:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t5L5pJ2G019599 for ; Sun, 21 Jun 2015 05:51:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-threads@FreeBSD.org Subject: [Bug 200992] proccess won't die in thread_suspend_switch Date: Sun, 21 Jun 2015 05:51:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: swills@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-threads@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2015 05:51:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200992 --- Comment #3 from Steve Wills --- (In reply to Konstantin Belousov from comment #2) % ps axHS -o pid,lwp,paddr,tdaddr 4992 PID LWP PADDR TDADDR 4992 101861 fffff801262a5000 fffff804173704b0 4992 101934 fffff801262a5000 fffff801264a2000 (kgdb) p *(struct proc *)0xfffff801262a5000 $1 =3D {p_list =3D {le_next =3D 0xfffff80126273000, le_prev =3D 0xfffff8003= 5c43538}, p_threads =3D {tqh_first =3D 0xfffff804173704b0, tqh_last =3D 0xfffff801264= a2010}, p_slock =3D {lock_object =3D {lo_name =3D 0xffffffff810c5281 "process slock= ", lo_flags =3D 537067520, lo_data =3D 0,=20 lo_witness =3D 0x0}, mtx_lock =3D 4}, p_ucred =3D 0xfffff8002ca16000,= p_fd =3D 0xfffff8012628c890, p_fdtol =3D 0x0, p_stats =3D 0xfffff80045451200, p_limi= t =3D 0xfffff8002ca94200, p_limco =3D {c_links =3D {le =3D {le_next =3D 0x0, le_p= rev =3D 0x0}, sle =3D {sle_next =3D 0x0}, tqe =3D { tqe_next =3D 0x0, tqe_prev =3D 0x0}}, c_time =3D 0, c_precision =3D= 0, c_arg =3D 0x0, c_func =3D 0, c_lock =3D 0xfffff801262a5120, c_flags =3D 0, c_iflags = =3D 0, c_cpu =3D 0}, p_sigacts =3D 0xfffff804172b0000, p_flag =3D 268977281, p_flag2 =3D= 0, p_state =3D PRS_NORMAL, p_pid =3D 4992,=20 p_hash =3D {le_next =3D 0x0, le_prev =3D 0xfffffe0000c9ac00}, p_pglist = =3D {le_next =3D 0x0, le_prev =3D 0xfffff801262730d0}, p_pptr =3D 0xfffff80126273000, p_sibl= ing =3D {le_next =3D 0x0, le_prev =3D 0xfffff801262730f8}, p_children =3D {lh_first= =3D 0x0}, p_reaper =3D 0xfffff8000943e538,=20 p_reaplist =3D {lh_first =3D 0x0}, p_reapsibling =3D {le_next =3D 0xfffff= 80126273000, le_prev =3D 0xfffff80035c43648}, p_mtx =3D {lock_object =3D {lo_name =3D 0xffffffff810c5274 "process lock", lo_flags =3D 558039040, lo_data =3D 0, lo_witness =3D 0x0}, mtx_lock =3D 4}, p_statmtx =3D { lock_object =3D {lo_name =3D 0xffffffff810c528f "pstatl", lo_flags =3D = 537067520, lo_data =3D 0, lo_witness =3D 0x0}, mtx_lock =3D 4}, p_itimmtx =3D {lock_ob= ject =3D {lo_name =3D 0xffffffff810c5296 "pitiml", lo_flags =3D 537067520, lo_data = =3D 0, lo_witness =3D 0x0}, mtx_lock =3D 4},=20 p_profmtx =3D {lock_object =3D {lo_name =3D 0xffffffff810c529d "pprofl", = lo_flags =3D 537067520, lo_data =3D 0, lo_witness =3D 0x0}, mtx_lock =3D 4}, p_ksi =3D 0xfffff8002c6ee4d0, p_sigqueue =3D {sq_signals =3D {__bits =3D 0xfffff80126= 2a51a8}, sq_kill =3D {__bits =3D 0xfffff801262a51b8},=20 sq_list =3D {tqh_first =3D 0xfffff8013a3e4230, tqh_last =3D 0xfffff8007= 6325070}, sq_proc =3D 0xfffff801262a5000, sq_flags =3D 1}, p_oppid =3D 0, p_vmspace = =3D 0xfffff803ddbd5000, p_swtick =3D 2146978202, p_realtimer =3D {it_interval = =3D {tv_sec =3D 0, tv_usec =3D 0}, it_value =3D { tv_sec =3D 0, tv_usec =3D 0}}, p_ru =3D {ru_utime =3D {tv_sec =3D 0, = tv_usec =3D 0}, ru_stime =3D {tv_sec =3D 0, tv_usec =3D 0}, ru_maxrss =3D 22640, ru_ixrss = =3D 3584989440, ru_idrss =3D 80911220, ru_isrss =3D 39833216, ru_minflt =3D 43074, ru_majfl= t =3D 10724, ru_nswap =3D 0,=20 ru_inblock =3D 5065, ru_oublock =3D 173674, ru_msgsnd =3D 159, ru_msgrc= v =3D 140, ru_nsignals =3D 1, ru_nvcsw =3D 87242807, ru_nivcsw =3D 347866}, p_rux =3D = {rux_runtime =3D 7369363977561, rux_uticks =3D 235739, rux_sticks =3D 124672, rux_iticks= =3D 0, rux_uu =3D 1786036539,=20 rux_su =3D 944556256, rux_tu =3D 2730592796}, p_crux =3D {rux_runtime = =3D 0, rux_uticks =3D 0, rux_sticks =3D 0, rux_iticks =3D 0, rux_uu =3D 0, rux_su = =3D 0, rux_tu =3D 0}, p_profthreads =3D 0, p_exitthreads =3D 0, p_traceflag =3D 0, p_trac= evp =3D 0x0, p_tracecred =3D 0x0,=20 p_textvp =3D 0xfffff804172531d8, p_lock =3D 0, p_sigiolst =3D {slh_first = =3D 0x0}, p_sigparent =3D 20, p_sig =3D 0, p_code =3D 0, p_stops =3D 0, p_stype =3D 0= , p_step =3D 0 '\0', p_pfsflags =3D 0 '\0', p_nlminfo =3D 0x0, p_aioinfo =3D 0x0, p_single= thread =3D 0xfffff801264a2000, p_suspcount =3D 1,=20 p_xthread =3D 0x0, p_boundary_count =3D 0, p_pendingcnt =3D 3, p_itimers = =3D 0x0, p_procdesc =3D 0x0, p_treeflag =3D 0, p_magic =3D 3203398350, p_osrel =3D 1= 001000, p_comm =3D 0xfffff801262a53c4 "consul", p_pgrp =3D 0xfffff80035a7a380, p_sy= sent =3D 0xffffffff815db2d8,=20 p_args =3D 0xfffff800455f2300, p_cpulimit =3D 9223372036854775807, p_nice= =3D 0 '\0', p_fibnum =3D 0, p_reapsubtree =3D 18, p_xstat =3D 0, p_klist =3D {kl_= list =3D {slh_first =3D 0x0}, kl_lock =3D 0xffffffff80985350 , kl_u= nlock =3D 0xffffffff809853b0 ,=20 kl_assert_locked =3D 0xffffffff80985420 , kl_assert_unlocked =3D 0xffffffff80985430 , kl_lockarg =3D 0xfffff801262a5120}, p_numthreads =3D 2, p_md =3D {md_ldt = =3D 0x0, md_ldt_sd =3D {sd_lolimit =3D 0, sd_lobase =3D 0,=20 sd_type =3D 0, sd_dpl =3D 0, sd_p =3D 0, sd_hilimit =3D 0, sd_xx0 =3D= 0, sd_gran =3D 0, sd_hibase =3D 0, sd_xx1 =3D 0, sd_mbz =3D 0, sd_xx2 =3D 0}}, p_itcallout= =3D {c_links =3D {le =3D {le_next =3D 0x0, le_prev =3D 0x0}, sle =3D {sle_next =3D 0x0},= tqe =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}},=20 c_time =3D 0, c_precision =3D 0, c_arg =3D 0x0, c_func =3D 0, c_lock =3D 0xfffff801262a5120, c_flags =3D 0, c_iflags =3D 0, c_cpu =3D 0}, p_acflag = =3D 0, p_peers =3D 0x0, p_leader =3D 0xfffff801262a5000, p_emuldata =3D 0x0, p_lab= el =3D 0x0, p_sched =3D 0xfffff801262a5538, p_ktr =3D { stqh_first =3D 0x0, stqh_last =3D 0xfffff801262a54c8}, p_mqnotifier =3D= {lh_first =3D 0x0}, p_dtrace =3D 0xfffff80035a58280, p_pwait =3D {cv_description =3D 0xffffffff810c5d30 "ppwait", cv_waiters =3D 0}, p_dbgwait =3D {cv_descripti= on =3D 0xffffffff810c5d37 "dbgwait", cv_waiters =3D 0},=20 p_prev_runtime =3D 0, p_racct =3D 0x0, p_throttled =3D 0 '\0', p_orphan = =3D {le_next =3D 0x0, le_prev =3D 0x0}, p_orphans =3D {lh_first =3D 0x0}} (kgdb) p *(struct thread *)0xfffff804173704b0 $2 =3D {td_lock =3D 0xffffffff816dd680, td_proc =3D 0xfffff801262a5000, td_= plist =3D {tqe_next =3D 0xfffff801264a2000, tqe_prev =3D 0xfffff801262a5010}, td_runq= =3D {tqe_next =3D 0x0, tqe_prev =3D 0xffffffff816dd938}, td_slpq =3D {tqe_next = =3D 0x0, tqe_prev =3D 0xfffff80126242d00},=20 td_lockq =3D {tqe_next =3D 0x0, tqe_prev =3D 0xfffffe06683b2a28}, td_hash= =3D {le_next =3D 0x0, le_prev =3D 0xfffffe0000cb1f28}, td_cpuset =3D 0xfffff800= 4501dc60, td_sel =3D 0x0, td_sleepqueue =3D 0xfffff80126242d00, td_turnstile =3D 0xfffff8004527e000, td_rlqe =3D 0x0,=20 td_umtxq =3D 0xfffff80045282000, td_tid =3D 101861, td_sigqueue =3D {sq_s= ignals =3D {__bits =3D 0xfffff80417370548}, sq_kill =3D {__bits =3D 0xfffff80417370558= }, sq_list =3D {tqh_first =3D 0x0, tqh_last =3D 0xfffff80417370568}, sq_proc =3D 0xfffff801262a5000, sq_flags =3D 1},=20 td_lend_user_pri =3D 255 '=EF=BF=BD', td_flags =3D 165908, td_inhibitors = =3D 2, td_pflags =3D 32, td_dupfd =3D 0, td_sqqueue =3D 0, td_wchan =3D 0x0, td_wmesg =3D 0x0, t= d_lastcpu =3D 4, td_oncpu =3D -1, td_owepreempt =3D 0 '\0', td_tsqueue =3D 0 '\0', td_loc= ks =3D 3, td_rw_rlocks =3D 0,=20 td_lk_slocks =3D 0, td_stopsched =3D 0, td_blocked =3D 0x0, td_lockname = =3D 0x0, td_contested =3D {lh_first =3D 0x0}, td_sleeplocks =3D 0x0, td_intr_nesting= _level =3D 0, td_pinned =3D 0, td_ucred =3D 0xfffff8002ca16000, td_estcpu =3D 0, td_sl= ptick =3D 0, td_blktick =3D 0,=20 td_swvoltick =3D -1851235621, td_cow =3D 0, td_ru =3D {ru_utime =3D {tv_s= ec =3D 0, tv_usec =3D 0}, ru_stime =3D {tv_sec =3D 0, tv_usec =3D 0}, ru_maxrss =3D 2= 2640, ru_ixrss =3D 129738240, ru_idrss =3D 2928120, ru_isrss =3D 1441536, ru_minflt =3D 3,= ru_majflt =3D 0, ru_nswap =3D 0, ru_inblock =3D 0,=20 ru_oublock =3D 0, ru_msgsnd =3D 0, ru_msgrcv =3D 0, ru_nsignals =3D 0, = ru_nvcsw =3D 14928279, ru_nivcsw =3D 12043}, td_rux =3D {rux_runtime =3D 259991945848, r= ux_uticks =3D 4063, rux_sticks =3D 7199, rux_iticks =3D 0, rux_uu =3D 34755066, rux_s= u =3D 61580537, rux_tu =3D 96335604},=20 td_incruntime =3D 0, td_runtime =3D 259991945848, td_pticks =3D 0, td_sti= cks =3D 0, td_iticks =3D 0, td_uticks =3D 0, td_intrval =3D 0, td_oldsigmask =3D {__bi= ts =3D 0xfffff804173706fc}, td_generation =3D 14940322, td_sigstk =3D { ss_sp =3D 0xc208020000 , ss_size =3D 32768, ss_flags =3D 0}, td_xsig =3D 0, td_profil_addr =3D 0, td_profil_ticks =3D 0, td_name =3D 0xfffff8041737073c "consul", td_fpop =3D= 0x0, td_dbgflags =3D 0, td_dbgksi =3D {ksi_link =3D { tqe_next =3D 0x0, tqe_prev =3D 0x0}, ksi_info =3D {si_signo =3D 0, si= _errno =3D 0, si_code =3D 0, si_pid =3D 0, si_uid =3D 0, si_status =3D 0, si_addr =3D 0x0= , si_value =3D {sival_int =3D 0, sival_ptr =3D 0x0, sigval_int =3D 0, sigval_ptr =3D 0x0},= _reason =3D {_fault =3D {_trapno =3D 0}, _timer =3D { _timerid =3D 0, _overrun =3D 0}, _mesgq =3D {_mqd =3D 0}, _poll = =3D {_band =3D 0}, __spare__ =3D {__spare1__ =3D 0, __spare2__ =3D 0xfffff804173707a0}}}, = ksi_flags =3D 0, ksi_sigq =3D 0x0}, td_ng_outbound =3D 0, td_osd =3D {osd_nslots =3D = 0, osd_slots =3D 0x0, osd_next =3D {le_next =3D 0x0,=20 le_prev =3D 0x0}}, td_map_def_user =3D 0x0, td_dbg_forked =3D 0, td_v= p_reserv =3D 0, td_no_sleeping =3D 0, td_dom_rr_idx =3D 0, td_su =3D 0x0, td_sigmask =3D= {__bits =3D 0xfffff80417370818}, td_rqindex =3D 33 '!', td_base_pri =3D 120 'x', td_pri= ority =3D 120 'x',=20 td_pri_class =3D 3 '\003', td_user_pri =3D 120 'x', td_base_user_pri =3D = 120 'x', td_pcb =3D 0xfffffe066828bcc0, td_state =3D TDS_INHIBITED, td_uretoff =3D {= tdu_retval =3D 0xfffff80417370840, tdu_off =3D 0}, td_slpcallout =3D {c_links =3D {le = =3D {le_next =3D 0x0,=20 le_prev =3D 0xfffffe0000d57810}, sle =3D {sle_next =3D 0x0}, tqe = =3D {tqe_next =3D 0x0, tqe_prev =3D 0xfffffe0000d57810}}, c_time =3D 1274956786070201, c_= precision =3D 5368, c_arg =3D 0xfffff804173704b0, c_func =3D 0xffffffff80a25ff0 , c_lock =3D 0x0, c_flags =3D 0,=20 c_iflags =3D 272, c_cpu =3D 3}, td_frame =3D 0xfffffe066828bc00, td_kst= ack_obj =3D 0xfffff803dd2bed00, td_kstack =3D 18446741902203584512, td_kstack_pages =3D= 4, td_critnest =3D 1, td_md =3D {md_spinlock_count =3D 1, md_saved_flags =3D 5= 82, md_spurflt_addr =3D 0},=20 td_sched =3D 0xfffff80417370930, td_ar =3D 0x0, td_lprof =3D 0xfffff80417= 3708d8, td_dtrace =3D 0xfffff800455f2000, td_errno =3D 0, td_vnet =3D 0x0, td_vnet_= lpush =3D 0x0, td_intr_frame =3D 0x0, td_rfppwait_p =3D 0x0, td_ma =3D 0x0, td_ma_cnt= =3D 0, td_emuldata =3D 0x0} --=20 You are receiving this mail because: You are the assignee for the bug.=