From owner-cvs-doc@FreeBSD.ORG Sat Jul 5 03:49:37 2008 Return-Path: Delivered-To: cvs-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C07C1106564A; Sat, 5 Jul 2008 03:49:37 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 33B8E8FC0C; Sat, 5 Jul 2008 03:49:36 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl135-103.kln.forthnet.gr [77.49.254.103]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-4) with ESMTP id m653nQOU031576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 5 Jul 2008 06:49:32 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m653nQj2094444; Sat, 5 Jul 2008 06:49:26 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m653nQW2094443; Sat, 5 Jul 2008 06:49:26 +0300 (EEST) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Gabor Pali References: <200807050224.m652OWW9021964@repoman.freebsd.org> <878wwhvvor.fsf@kobe.laptop> Date: Sat, 05 Jul 2008 06:49:26 +0300 In-Reply-To: <878wwhvvor.fsf@kobe.laptop> (Giorgos Keramidas's message of "Sat, 05 Jul 2008 06:47:32 +0300") Message-ID: <874p75vvll.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m653nQOU031576 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.247, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.15, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: doc-committers@freebsd.org, cvs-doc@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: doc/en_US.ISO8859-1/books/faq book.sgml X-BeenThere: cvs-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the doc and www trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2008 03:49:37 -0000 On Sat, 05 Jul 2008 06:47:32 +0300, Giorgos Keramidas wrote: > Does the following patch for this question look ok to you? Wrong patch version. Please try this one: %%% diff -r b0a718fb481d en_US.ISO8859-1/books/faq/book.sgml --- a/en_US.ISO8859-1/books/faq/book.sgml Sat Jul 05 06:32:27 2008 +0300 +++ b/en_US.ISO8859-1/books/faq/book.sgml Sat Jul 05 06:48:26 2008 +0300 @@ -8566,18 +8566,34 @@ - Your best bet here is to rebuild &man.ppp.8; by adding - CFLAGS+=-g and - STRIP= to the end of the /etc/make.conf, then - doing a make install - clean in /usr/src/usr.sbin/ppp. When &man.ppp.8; hangs, find the - &man.ppp.8; process ID with pgrep - ppp and run gdb ppp - PID (as gdb ppp `pgrep ppp`). From the gdb - prompt, you can then use bt to get a - stack trace. - - Send the results to &a.brian;. + Your best bet here is to rebuild &man.ppp.8; with debugging + information, and then use &man.gdb.1; to grab a stack trace from + the ppp process that is stuck. To + rebuild the ppp utility with debugging + information, you can type: + + &prompt.root; cd /usr/src/usr.sbin/ppp +&prompt.root; env DEBUG_FLAGS='-g' make clean +&prompt.root; env DEBUG_FLAGS='-g' make install + + Then you should restart ppp and wait + until it hangs again. When the debug build + of ppp hangs, + start gdb on the stuck process by + typing: + + &prompt.root; gdb ppp `pgrep ppp` + + At the gdb prompt, you can use + the bt or where commands to + get a stack trace. Save the output of + your gdb session, + and detach from the running process by + the quit command + of gdb. + + Finally, send the log of your gdb + session to &a.brian;. %%%