From owner-freebsd-arch@FreeBSD.ORG Tue Jun 22 09:20:46 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0672106566B for ; Tue, 22 Jun 2010 09:20:46 +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 144DE8FC0A for ; Tue, 22 Jun 2010 09:20:45 +0000 (UTC) X-Spam-Status: No X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.2, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_50 0.80) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: o5M9A7qv021649 Received: from kobe.laptop (178.128.38.111.dsl.dyn.forthnet.gr [178.128.38.111]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.1) with ESMTP id o5M9A7qv021649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 22 Jun 2010 12:10:14 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.4/8.14.4) with ESMTP id o5M9A22I048581 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Jun 2010 12:10:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.4/8.14.4/Submit) id o5M9A1i1048571; Tue, 22 Jun 2010 12:10:01 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Max Laier In-Reply-To: <201006172335.21969.max@love2party.net> (Max Laier's message of "Thu, 17 Jun 2010 23:35:21 +0200") References: <20100617.143334.584432776655157077.imp@bsdimp.com> <201006172335.21969.max@love2party.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) Date: Tue, 22 Jun 2010 12:10:01 +0300 Message-ID: <87631b8mc6.fsf@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-arch@freebsd.org Subject: Re: Time to stop stripping binaries? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2010 09:20:46 -0000 On Thu, 17 Jun 2010 23:35:21 +0200, Max Laier wrote: > On Thursday 17 June 2010 22:33:34 M. Warner Losh wrote: >> Greetings, >> >> Now that disks are big, can we stop stripping binaries by default? >> >> I've worked up a patch that lets you set WITH_BINARY_SYMBOLS or >> WITHOUT_BINARY_SYMBOLS as you see fit. We should commit it regardless >> of the outcome of this discussion (well, defaulting to yes or no >> depending on the outcome). >> >> Why symbols: it makes core dumps easier to debug. >> Why no symbols: makes the system footprint bigger. >> >> Since there's good arguments both ways, I thought I'd make this a >> knob. >> >> Comments? > > My vote is with symbols in current and stable, without in releases - > by default. i.e. everything people build at home from an unknown repo > state should have symbols, everything we "ship" can be reproduced if > needed. I've been running CURRENT with DEBUG_FLAGS=-ggdb in make.conf for a long time. It helps a *lot* when there is a core dump to have symbols in all the system libraries and binaries: root@kobe:/root# nm /bin/ls | grep ' [TDB] [[:alpha:]]' | head -3 08049760 T acccmp 0804e42c B ansi_bgcol 0804e400 B ansi_coloff ... I'm definitely in favor of making DEBUG_FLAGS=-ggdb on CURRENT and STABLE, but there's probably a small catch we have to consider: What to do about freebsd-update that crosses the boundary from -RELEASE to one of the -STABLE snapshots. If there are no hidden gotchas about running a system that is half-release/half-stable, then we should be fine. But it may be a good idea to update *all* the binaries at the crossing point, so that people don't have a base installation that only includes debug symbols for a small subset of the binaries.