From owner-freebsd-current@FreeBSD.ORG Thu Aug 2 21:39:55 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 1CA651065670 for ; Thu, 2 Aug 2012 21:39:55 +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 D05F08FC12 for ; Thu, 2 Aug 2012 21:39:54 +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 q72Lds2R034940 for ; Thu, 2 Aug 2012 14:39:54 -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 q72LdsaI034939 for freebsd-current@freebsd.org; Thu, 2 Aug 2012 14:39:54 -0700 (PDT) (envelope-from sgk) Date: Thu, 2 Aug 2012 14:39:54 -0700 From: Steve Kargl To: freebsd-current@freebsd.org Message-ID: <20120802213954.GA34928@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: 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: Thu, 02 Aug 2012 21:39:55 -0000 % 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 % gdb741 /usr/obj/usr/src/usr.bin/ldd/ldd ldd.core GNU gdb (GDB) 7.4.1 [GDB v7.4.1 for FreeBSD] Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-portbld-freebsd10.0". For bug reporting instructions, please see: ... Reading symbols from /usr/obj/usr/src/usr.bin/ldd/ldd...done. [New process 100147] Core was generated by `ldd'. Program terminated with signal 11, Segmentation fault. (gdb) bt #0 0x4804fa4e in digest_notes (obj=0x4806b000, note_start=1208398156,\ note_end=1208398204) at /usr/src/libexec/rtld-elf/rtld.c:1326 #1 0x480566dc in map_object (fd=3, path=0x48065320 "/usr/local/bin/ppdpo",\ sb=0xbfbfd4dc) at /usr/src/libexec/rtld-elf/map_object.c:156 #2 0x48051627 in do_load_object (flags=, sbp=,\ path=, name=, fd=) at /usr/src/libexec/rtld-elf/rtld.c:2100 #3 load_object (name=0xbfbfd8d0 "/usr/local/bin/ppdpo", fd_u=-1,\ refobj=0x48067000, flags=) at /usr/src/libexec/rtld-elf/rtld.c:2070 #4 0x48052303 in dlopen_object (name=0xbfbfd8d0 "/usr/local/bin/ppdpo",\ fd=-1, refobj=0x48067000, lo_flags=6, mode=0, lockstate=0xbfbfd590) at /usr/src/libexec/rtld-elf/rtld.c:2799 #5 0x48052fea in rtld_dlopen (name=0xbfbfd8d0 "/usr/local/bin/ppdpo",\ fd=-1, mode=512) at /usr/src/libexec/rtld-elf/rtld.c:2761 #6 0x0804935b in main (argc=1, argv=0xbfbfd760) at /usr/src/usr.bin/ldd\ /ldd.c:251 (gdb) list 1321 obj->osrel = *(const int32_t *)(p); 1322 dbg("note osrel %d", obj->osrel); 1323 break; 1324 case CRT_NOINIT_NOTETYPE: 1325 /* FreeBSD 'crt does not call init' note */ 1326 obj->crt_no_init = true; 1327 dbg("note crt_no_init"); 1328 break; 1329 } 1330 } (gdb) print *obj->crt_no_init Cannot access memory at address 0x0 % pkg_info -W /usr/local/bin/ppdpo /usr/local/bin/ppdpo was installed by package cups-base-1.5.2_2 % portmaster cups-base % pkg_info -W /usr/local/bin/ppdpo /usr/local/bin/ppdpo was installed by package cups-base-1.5.2_2 % ldd /usr/local/bin/ppdpo /usr/local/bin/ppdpo: /usr/local/bin/ppdpo: signal 11 -- Steve