From owner-freebsd-current@FreeBSD.ORG Tue Mar 21 17:55:01 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 EC90516A400 for ; Tue, 21 Mar 2006 17:55:01 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07CD443D49 for ; Tue, 21 Mar 2006 17:55:00 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (igloo.linux.gr [62.1.205.36]) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k2LHshQY001583; Tue, 21 Mar 2006 19:54:44 +0200 Received: by flame.pc (Postfix, from userid 1001) id 7F9B43B; Mon, 20 Mar 2006 22:05:15 -0800 (PST) Date: Mon, 20 Mar 2006 22:05:15 -0800 From: Giorgos Keramidas To: Ganbold Message-ID: <20060321060515.GB31874@flame.pc> References: <441F7635.4090300@micom.mng.net> <441F7991.8000505@micom.mng.net> <441F7635.4090300@micom.mng.net> <20060321041219.GA31213@flame.pc> <441F8014.4040003@micom.mng.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <441F8014.4040003@micom.mng.net> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.105, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.79, BAYES_00 -2.60, DATE_IN_PAST_06_12 0.50) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: freebsd-current@freebsd.org Subject: Re: rcorder problem when booting CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 21 Mar 2006 17:55:02 -0000 On 2006-03-21 12:24, Ganbold wrote: > Giorgos Keramidas wrote: > >Still a core dump is a core dump. Can you build a debugging version of > >rcorder and try again? This time the stack trace may be more useful. > > How to enable debugging? I manually added in rcorder.c: > > #define DEBUG 1 > #ifdef DEBUG > int debug = 1; /* changed to from 0 to 1 */ > > Maybe above is wrong. Indeed, it is not really right. The right way of building a debugging executable that is part of the FreeBSD base system is to use DEBUG_FLAGS: # cd /usr/src/sbin/rcorder # make cleandir # make cleandir # env DEBUG_FLAGS='-g' make obj all install Then you should have a `/sbin/rcorder' executable that is not stripped and includes debugging information. After it dumps core, please let us know of the new backtrace. Thank you for taking the time to do all these tests to track down why rcorder dumps core in this case :-)