Re: About "panic: bufwrite: buffer is not busy???"

From: Mike Tancsa <mike_at_sentex.net>
Date: Mon, 21 Feb 2011 16:27:29 -0500
On 2/21/2011 4:10 PM, Kostik Belousov wrote:
> Is this reproducable ?

The box seems to have a number of bugs it has been triggering.  gleb_at_freebsd.org's netgraph patch, seems to have fixed one of them. Max seems to have fixed two others.  This one, I am not sure. I can re-enable memguard to randomly sample again, which is what seemed to have caught / triggered it.

> What system version is it ?
 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #11: Thu Feb 17 i386, 4G of RAM

> 
> Could you, please, go to frame 12 and show the output of "p *p",
> "p *(p->p_ucred)" ?


(kgdb) frame 12
#12 0xc0654fd1 in crcopysafe (p=0xc90cc810, cr=0xce3ee800) at /usr/src/sys/kern/kern_prot.c:1950
1950            crcopy(cr, oldcred);
(kgdb) list
1945                    PROC_UNLOCK(p);
1946                    crextend(cr, groups);
1947                    PROC_LOCK(p);
1948                    oldcred = p->p_ucred;
1949            }
1950            crcopy(cr, oldcred);
1951
1952            return (oldcred);
1953    }
1954
(kgdb) p *(p->p_ucred)
$1 = {cr_ref = 3373030400, cr_uid = 3460374784, cr_ruid = 3231313392, cr_svuid = 7196, cr_ngroups = 0, cr_rgid = 503415038, cr_svgid = 0, cr_uidinfo = 0x0, cr_ruidinfo = 0x0, 
  cr_prison = 0x0, cr_pspare = 0xffffffff, cr_flags = 4294967295, cr_pspare2 = {0x0, 0x0}, cr_label = 0xffffffff, cr_audit = {ai_auid = 0, ai_mask = {am_success = 0, 
      am_failure = 1298034100}, ai_termid = {at_port = 3, at_type = 1, at_addr = {0, 64, 0, 0}}, ai_asid = 0, ai_flags = 0}, cr_groups = 0xc9e37900, cr_agroups = 16}
(kgdb) p *p
$2 = {p_list = {le_next = 0xc93ed560, le_prev = 0xc9187ac0}, p_threads = {tqh_first = 0xc9196b80, tqh_last = 0xc9196b88}, p_slock = {lock_object = {
      lo_name = 0xc08efca2 "process slock", lo_flags = 720896, lo_data = 0, lo_witness = 0x0}, mtx_lock = 4}, p_ucred = 0xce3ee600, p_fd = 0xc9559100, p_fdtol = 0x0, 
  p_stats = 0xc90cd600, p_limit = 0xc912d600, p_limco = {c_links = {sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x0}}, c_time = 0, c_arg = 0x0, c_func = 0, 
    c_lock = 0xc90cc898, c_flags = 0, c_cpu = 0}, p_sigacts = 0xc911f000, p_flag = 268435713, p_state = PRS_NORMAL, p_pid = 565, p_hash = {le_next = 0x0, le_prev = 0xc8d148d4}, 
  p_pglist = {le_next = 0x0, le_prev = 0xc90c85c8}, p_pptr = 0xc8d2b000, p_sibling = {le_next = 0xc93ed560, le_prev = 0xc9187b3c}, p_children = {lh_first = 0x0}, p_mtx = {
    lock_object = {lo_name = 0xc08efc95 "process lock", lo_flags = 21168128, lo_data = 0, lo_witness = 0x0}, mtx_lock = 3373886336}, p_ksi = 0xc908f9b0, p_sigqueue = {
    sq_signals = {__bits = {0, 0, 0, 0}}, sq_kill = {__bits = {0, 0, 0, 0}}, sq_list = {tqh_first = 0x0, tqh_last = 0xc90cc8d0}, sq_proc = 0xc90cc810, sq_flags = 1}, 
  p_oppid = 0, p_vmspace = 0xc93f0e80, p_swtick = 6600, 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 = 109046064880, rux_uticks = 1368, 
    rux_sticks = 5393, rux_iticks = 0, rux_uu = 10366008, rux_su = 40860399, rux_tu = 51225136}, 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 = 0xc95bf96c, 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 = 0, p_itimers = 0x0, p_magic = 3203398350, p_osrel = 802500, 
  p_comm = "zebra", '\0' <repeats 14 times>, p_pgrp = 0xc90c85c0, p_sysent = 0xc095c800, p_args = 0xc90c8440, p_cpulimit = 9223372036854775807, p_nice = 0 '\0', p_fibnum = 0, 
  p_xstat = 0, p_klist = {kl_list = {slh_first = 0x0}, kl_lock = 0xc062a990 <knlist_mtx_lock>, kl_unlock = 0xc062a940 <knlist_mtx_unlock>, 
    kl_assert_locked = 0xc06275f0 <knlist_mtx_assert_locked>, kl_assert_unlocked = 0xc0627600 <knlist_mtx_assert_unlocked>, kl_lockarg = 0xc90cc898}, p_numthreads = 1, p_md = {
    md_ldt = 0x0}, p_itcallout = {c_links = {sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x0}}, c_time = 0, c_arg = 0x0, c_func = 0, c_lock = 0x0, c_flags = 16, 
    c_cpu = 0}, p_acflag = 1, p_peers = 0x0, p_leader = 0xc90cc810, p_emuldata = 0x0, p_label = 0x0, p_sched = 0xc90ccac0, p_ktr = {stqh_first = 0x0, stqh_last = 0xc90ccaa0}, 
  p_mqnotifier = {lh_first = 0x0}, p_dtrace = 0x0, p_pwait = {cv_description = 0xc08f00ef "ppwait", cv_waiters = 0}, p_dbgwait = {cv_description = 0xc08f00f6 "dbgwait", 
    cv_waiters = 0}}
(kgdb) 

-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike_at_sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
Received on Mon Feb 21 2011 - 20:27:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:11 UTC