From owner-freebsd-current Sun Sep 17 15:25:35 2000 Delivered-To: freebsd-current@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 7A55B37B422; Sun, 17 Sep 2000 15:25:26 -0700 (PDT) Received: (from grog@localhost) by wantadilla.lemis.com (8.11.0/8.9.3) id e8HMPI000981; Mon, 18 Sep 2000 07:55:18 +0930 (CST) (envelope-from grog) Date: Mon, 18 Sep 2000 07:55:18 +0930 From: Greg Lehey To: Michael Reifenberger Cc: FreeBSD-Current , FreeBSD-SMP Subject: Re: Debugging -current SMPNG HANG on heavy disk-io Message-ID: <20000918075518.H67912@wantadilla.lemis.com> References: <20000918074021.E67912@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from root@nihil.plaut.de on Mon, Sep 18, 2000 at 01:23:30AM +0200 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 18 September 2000 at 1:23:30 +0200, Michael Reifenberger wrote: > On Mon, 18 Sep 2000, Greg Lehey wrote: > ... >> You could also show the content of p->p_pid. If you don't have a p >> pointer in the frame you're looking at, use ((struct >> *proc)gd_curproc)->p_pid and ((struct *proc)gd_curproc)->p_comm. We >> need to know what is hanging. > Sorry doesn't seem to work: > (kgdb) p p->p_comm > No symbol "p" in current context. > (kgdb) p ((struct*proc)gd_curproc)->p_pid > A syntax error in expression, near `proc)gd_curproc)->p_pid'. > (kgdb) p ((struct *proc)gd_curproc)->p_comm > A syntax error in expression, near `proc)gd_curproc)->p_comm'. > (kgdb) p gd_curproc > $1 = 0xc78760c0 Oops, that's what comes of typing hurriedly early in the morning. p ((struct proc *)gd_curproc)->p_comm p ((struct proc *)gd_curproc)->p_pid Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message