From owner-freebsd-current@FreeBSD.ORG Fri Aug 3 02:13:14 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 70DFD106564A; Fri, 3 Aug 2012 02:13:14 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3B08FC12; Fri, 3 Aug 2012 02:13:14 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id q732DDqa036275; Thu, 2 Aug 2012 19:13:13 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id q732DDt3036274; Thu, 2 Aug 2012 19:13:13 -0700 (PDT) (envelope-from sgk) Date: Thu, 2 Aug 2012 19:13:13 -0700 From: Steve Kargl To: Alexander Kabaev Message-ID: <20120803021313.GA36246@troutmask.apl.washington.edu> References: <20120802213954.GA34928@troutmask.apl.washington.edu> <20120802215536.027914c9@kan.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120802215536.027914c9@kan.dyndns.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org, kib@freebsd.org Subject: Re: rtld dropping core on recent -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: Fri, 03 Aug 2012 02:13:14 -0000 On Thu, Aug 02, 2012 at 09:55:36PM -0400, Alexander Kabaev wrote: > On Thu, 2 Aug 2012 14:39:54 -0700 > Steve Kargl wrote: > > > % file /usr/local/bin/ppdpo > > /usr/local/bin/ppdpo: ELF 32-bit LSB shared object, Intel 80386, \ > > version 1 (FreeBSD), dynamically linked (uses shared libs), > > FreeBSD-style,\ for FreeBSD 10.0 (1000015), stripped > > > > % ldd /usr/local/bin/ppdpo > > /usr/local/bin/ppdpo: > > /usr/local/bin/ppdpo: signal 11 > > > > It is weird that program tries to dlopen what appears to be the binary > (itself?), but that did uncover the issue. Please try attached patch, > I only very lightly tested it here. > > Also available here: > http://people.freebsd.org/~kan/rtld-digest-notes.diff > The patch appears to fix the problem. Before the patch % find /usr/local/bin -type f | xargs -n1 file -F ' ' | grep ELF \ | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A %o\n' | grep libpng.so.6 /usr/local/bin/ppdc: signal 11 /usr/local/bin/ppdhtml: signal 11 /usr/local/bin/ipptool: signal 11 /usr/local/bin/cupstestdsc: signal 11 /usr/local/bin/cupstestppd: signal 11 /usr/local/bin/lpstat: signal 11 /usr/local/bin/lpq: signal 11 /usr/local/bin/lpr: signal 11 /usr/local/bin/ppdpo: signal 11 /usr/local/bin/cancel: signal 11 /usr/local/bin/lpoptions: signal 11 /usr/local/bin/lppasswd: signal 11 /usr/local/bin/ppdi: signal 11 /usr/local/bin/ppdmerge: signal 11 /usr/local/bin/inkscape libpng.so.6 /usr/local/bin/inkview libpng.so.6 /usr/local/bin/lp: signal 11 /usr/local/bin/lprm: signal 11 After applying the patch and rebuilding % find /usr/local/bin -type f | xargs -n1 file -F ' ' | grep ELF \ | cut -f1 -d' ' | xargs ldd -f '%A %o\n' | grep libpng.so.6 /usr/local/bin/inkscape libpng.so.6 /usr/local/bin/inkview libpng.so.6 Thanks for the quick response. -- Steve