From owner-freebsd-current@FreeBSD.ORG Sun May 8 23:38:33 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59C8C16A4E6; Sun, 8 May 2005 23:38:33 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0B4A43D94; Sun, 8 May 2005 23:38:32 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id E0CEB513C1; Sun, 8 May 2005 16:38:31 -0700 (PDT) Date: Sun, 8 May 2005 16:38:31 -0700 From: Kris Kennaway To: Doug White Message-ID: <20050508233831.GA33797@xor.obsecurity.org> References: <20050508231255.GA28688@xor.obsecurity.org> <20050508231947.GA33571@xor.obsecurity.org> <20050508163107.A77229@carver.gumbysoft.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20050508163107.A77229@carver.gumbysoft.com> User-Agent: Mutt/1.4.2.1i cc: dwhite@FreeBSD.org cc: current@FreeBSD.org cc: phk@freeBSD.org cc: Kris Kennaway Subject: Re: ptcwrite panic (with dump) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 08 May 2005 23:38:33 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, May 08, 2005 at 04:32:24PM -0700, Doug White wrote: > Can you print *tp in frame 23, and then print tp->t_pgrp->pg_members? The > code above should avoid the case of t_pgrp being NULL, but I wonder if > there is a race or if pg_members can end up uninitialized somewhere. (kgdb) print *tp $1 = {t_rawq = {c_cc = 0, c_cbcount = 0, c_cbmax = 77, c_cbreserved = 77, c_cf = 0x0, c_cl = 0x0}, t_rawcc = 17133, t_canq = {c_cc = 0, c_cbcount = 0, c_cbmax = 77, c_cbreserved = 6, c_cf = 0x0, c_cl = 0x0}, t_cancc = 150, t_outq = {c_cc = 11, c_cbcount = 1, c_cbmax = 22, c_cbreserved = 22, c_cf = 0xc6311814 "load: 0.83 cmd: csh 47406 [runnable] 0.00u 0.00s 0% 2268k\r\n\n4.2.5.log:", '=' , ", c_ispeed = 0, c_ospeed = 0}, t_lock_out = { c_iflag = 0, c_oflag = 0, c_cflag = 0, c_lflag = 0, c_cc = '\0' , c_ispeed = 0, c_ospeed = 0}, t_winsize = {ws_row = 34, ws_col = 104, ws_xpixel = 998, ws_ypixel = 714}, t_sc = 0xc649c580, t_lsc = 0x0, t_column = 11, t_rocount = 0, t_rocol = 0, t_ififosize = 512, t_ihiwat = 7680, t_ilowat = 6720, t_ispeedwat = 0, t_ohiwat = 1296, t_olowat = 256, t_ospeedwat = 0, t_gen = 34, t_list = {tqe_next = 0xc357e000, tqe_prev = 0xc357b9c4}, t_actout = 0, t_wopeners = 0, t_mtx = {mtx_object = {lo_class = 0xc0731f48, lo_name = 0xc0701f35 "tty", lo_type = 0xc0701f35 "tty", lo_flags = 196608, lo_list = {tqe_next = 0xc967f000, tqe_prev = 0xc3fff818}, lo_witness = 0x0}, mtx_lock = 4, mtx_recurse = 0}, t_refcnt = 4, t_hotchar = 0, t_dtr_wait = 3000, t_do_timestamp = 0, t_timestamp = {tv_sec = 0, tv_usec = 0}, t_pps = 0x0, t_oproc = 0xc05598f0 , t_stop = 0xc0559cc0 , t_param = 0, t_modem = 0, t_break = 0, t_ioctl = 0, t_open = 0, t_purge = 0, t_close = 0, t_cioctl = 0} (kgdb) print tp->t_pgrp $2 = (struct pgrp *) 0x0 --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCfqL3Wry0BWjoQKURAiVdAKDYEoCvk7c4f7krWcmrozo2dh9wYgCgp3XO 2gEE3/yLohnS1iNp8aKq1gE= =Qk43 -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--