From owner-freebsd-stable@FreeBSD.ORG Thu Sep 2 06:17:00 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A37BA1065701 for ; Thu, 2 Sep 2010 06:17:00 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by mx1.freebsd.org (Postfix) with ESMTP id 456988FC13 for ; Thu, 2 Sep 2010 06:16:59 +0000 (UTC) Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71]) by qmta08.westchester.pa.mail.comcast.net with comcast id 1iH01f0011YDfWL58iH0Yq; Thu, 02 Sep 2010 06:17:00 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta20.westchester.pa.mail.comcast.net with comcast id 1iGy1f0073LrwQ23giGzVM; Thu, 02 Sep 2010 06:17:00 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id EA6EE9B425; Wed, 1 Sep 2010 23:16:56 -0700 (PDT) Date: Wed, 1 Sep 2010 23:16:56 -0700 From: Jeremy Chadwick To: John Hay Message-ID: <20100902061656.GA29424@icarus.home.lan> References: <20100902055630.GA55668@zibbi.meraka.csir.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100902055630.GA55668@zibbi.meraka.csir.co.za> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: mux@FreeBSD.org, lulf@FreeBSD.org, stable@FreeBSD.org, Dmitry Morozovsky Subject: Re: csup in repomirror mode dumps core @ stable/8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 06:17:00 -0000 On Thu, Sep 02, 2010 at 07:56:31AM +0200, John Hay wrote: > On Thu, Sep 02, 2010 at 03:59:07AM +0400, Dmitry Morozovsky wrote: > > Dear colleagues, > > > > some 2 days ago my repo mirror (stable/8@amd64) starts dumping core on copying > > repo: > > > > ... > > SetAttrs CVSROOT-src/Emptydir > > Edit CVSROOT-src/access,v > > Segmentation fault (core dumped) > > > > deleting files from sup/cvsroot-all/ did not help > > > > unfortunately, quick usual `make -DDEBUG_FLAGS=-g' in /usr/src/usr.bin/csup > > does not work, and I did not dig into this deeply yet, so trace are without > > parameters: This won't work. You need to do: make DEBUG_FLAGS="-g3 -ggdb -O0" The important part is not using -D. make.conf variables aren't exported into the compiler environment (I'm not phrasing this eloquently because I don't know how to describe it). The rest of the gcc arguments I provided are highly recommended (especially -O0, otherwise you probably won't get access to any variable data). I can confirm this works, by the way. Look closely at the cc line (past the initial -O2 -pipe -march=nocona). cc -O2 -pipe -march=nocona -I. -I/usr/src/usr.bin/csup/../../contrib/csup -DHAVE_FFLAGS -DNDEBUG -ggdb -g3 -O0 -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -c /usr/src/usr.bin/csup/../../contrib/csup/updater.c -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |