From owner-freebsd-current@FreeBSD.ORG Mon Feb 21 21:27:35 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10BE41065675; Mon, 21 Feb 2011 21:27:35 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 87A748FC15; Mon, 21 Feb 2011 21:27:34 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:68ff:b8ee:849:710f] ([IPv6:2607:f3e0:0:4:68ff:b8ee:849:710f]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p1LLRWVg052586 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 21 Feb 2011 16:27:32 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <4D62D8C1.1090408@sentex.net> Date: Mon, 21 Feb 2011 16:27:29 -0500 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Kostik Belousov References: <4D4A38FD.7000607@rdtc.ru> <4D3011DB.9050900@frasunek.com> <4FD1B1C3-08A7-4F48-A30A-DE5A8F3D3834@averesystems.com> <4D6133AC.6070507@sentex.net> <20110221211024.GV78089@deviant.kiev.zoral.com.ua> In-Reply-To: <20110221211024.GV78089@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on IPv6:2607:f3e0:0:1::12 Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: About "panic: bufwrite: buffer is not busy???" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2011 21:27:35 -0000 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@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' , 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 , kl_unlock = 0xc062a940 , kl_assert_locked = 0xc06275f0 , kl_assert_unlocked = 0xc0627600 , 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@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/