From owner-freebsd-questions@FreeBSD.ORG Fri May 21 15:04:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AF7A16A4CE for ; Fri, 21 May 2004 15:04:14 -0700 (PDT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08F6143D39 for ; Fri, 21 May 2004 15:04:14 -0700 (PDT) (envelope-from nkinkade@fastmail.fm) X-Sasl-enc: OJSUNRSedkHPp3u9Mie7Pw 1085177038 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id C2759BB7E45; Fri, 21 May 2004 18:03:58 -0400 (EDT) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1BRI7D-00064w-Rk; Fri, 21 May 2004 16:03:43 -0600 Date: Fri, 21 May 2004 16:03:43 -0600 From: Nathan Kinkade To: Michal Pasternak Message-ID: <20040521220343.GN21801@gentoo-npk.bmp.ub> Mail-Followup-To: Michal Pasternak , freebsd-questions@freebsd.org References: <20040521183841.GA83902@pasternak.w.lub.pl> <20040521204717.GA84771@pasternak.w.lub.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CQDko/0aYvuiEzgn" Content-Disposition: inline In-Reply-To: <20040521204717.GA84771@pasternak.w.lub.pl> User-Agent: Mutt/1.5.6i Sender: cc: freebsd-questions@freebsd.org Subject: Re: Debugging a process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2004 22:04:14 -0000 --CQDko/0aYvuiEzgn Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 21, 2004 at 10:47:17PM +0200, Michal Pasternak wrote: > Michal Pasternak [Fri, May 21, 2004 at 08:38:41PM +0200]: > > Hello, > >=20 > > I've got an Epson printer I've set up with CUPS. Unfortunatley it came = out, > > that the program CUPS uses internally (rastertoprinter) gets some kind = of > > lockup right after ending the page - it starts to eat up 100% CPU; CUPS= gets > > the message "Page finished", but the job stays there - and the printer > > device (lpt0) is in use. > >=20 > > Well, so I did "gdb", attached to the PID, typed "bt"... nothing. Just = a few > > lines with addr no and question marks. >=20 > Well, I'm answering myself:=20 >=20 > $ gdb nameOfExecutableWithDebugSymbols > gdb> attach PID >=20 > ... and, voila, that's all that it's needed. You could also use ktrace(1). Nathan --CQDko/0aYvuiEzgn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFArny/O0ZIEthSfkkRArnjAJoC6dm7tzy6GycqYDiWy81qorJ/ggCg6r+s tE8GQDVl/nhGJh0bVLlwsG4= =3tYa -----END PGP SIGNATURE----- --CQDko/0aYvuiEzgn--