From owner-freebsd-questions@FreeBSD.ORG Fri May 21 11:38:38 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 B376E16A4CE for ; Fri, 21 May 2004 11:38:38 -0700 (PDT) Received: from pr93.lublin.sdi.tpnet.pl (pr93.lublin.sdi.tpnet.pl [217.97.36.93]) by mx1.FreeBSD.org (Postfix) with SMTP id 60E3643D49 for ; Fri, 21 May 2004 11:38:25 -0700 (PDT) (envelope-from michal@pasternak.w.lub.pl) Received: (qmail 83959 invoked by uid 1001); 21 May 2004 18:38:41 -0000 Date: Fri, 21 May 2004 20:38:41 +0200 From: Michal Pasternak To: freebsd-questions@freebsd.org Message-ID: <20040521183841.GA83902@pasternak.w.lub.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Subject: Debugging a process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Michal Pasternak List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2004 18:38:38 -0000 Hello, 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. Well, so I did "gdb", attached to the PID, typed "bt"... nothing. Just a few lines with addr no and question marks. I've recompiled said program (and the library it depends on) with "-g" in CFLAGS. Nothing. It came out, that the binary was stripped during install. I've installed unstripped binary. Still the same thing. Googled. Nothing really useful found. At this point, I feel pretty lost - I've thought, that I know, what I have to do when I want to have debugging info compiled in, and how to use gdb (I know enough to get the backtrace, which is sufficient). Any help / any ideas? -- Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net "Frankly, any company would look bad if their corporate e-mail was available for anyone to read," -- Jim Dose of Ritual Entertainment.