From owner-freebsd-current Fri Apr 5 10:23:11 2002 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 23ACD37B404 for ; Fri, 5 Apr 2002 10:23:06 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [IPv6:fec0::1:12]) by Awfulhak.org (8.12.2/8.11.6) with ESMTP id g35IMwCu005050; Fri, 5 Apr 2002 19:22:59 +0100 (BST) (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.2/8.12.2) with ESMTP id g35IMqq7050204; Fri, 5 Apr 2002 19:22:52 +0100 (BST) (envelope-from brian@freebsd-services.com) Message-Id: <200204051822.g35IMqq7050204@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: sjh@ucf.ics.uci.edu Cc: freebsd-current@FreeBSD.ORG Subject: Re: segfault in getpwuid()? In-Reply-To: Message from Seth Hettich of "Wed, 13 Mar 2002 13:36:17 PST." <200203132136.g2DLaH116628@whiskey.ucf.ics.uci.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 05 Apr 2002 19:22:52 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes, I think I can ! I'll bet the binary in question is using libc.so.4 *AND* libc.so.5 because of a third library that has a libc.so.4 dependency. This confused me for quite some time with apache. for f in /usr/local/lib/*.so do objdump -x $f 2>/dev/null | grep -q NEEDED.*libc.so.4 && echo $f done > Can anyone explain this to me? > > #0 0x286613cc in _ftello () from /usr/lib/libc.so.5 > #1 0x28661358 in ftello () from /usr/lib/libc.so.5 > #2 0x286612f6 in ftell () from /usr/lib/libc.so.5 > #3 0x28678ef7 in .cerror () from /usr/lib/libc.so.5 > #4 0x28676c9e in isatty () from /usr/lib/libc.so.5 > #5 0x2865f621 in _nsyy_init_buffer () from /usr/lib/libc.so.5 > #6 0x2865f577 in _nsyy_create_buffer () from /usr/lib/libc.so.5 > #7 0x2865e9c3 in _nsyylex () from /usr/lib/libc.so.5 > #8 0x28657680 in _nsyyparse () from /usr/lib/libc.so.5 > #9 0x2865905d in _nsdbtget () from /usr/lib/libc.so.5 > #10 0x286591dc in nsdispatch () from /usr/lib/libc.so.5 > #11 0x2863085a in getpwuid () from /usr/lib/libc.so.5 > #12 0x2814db0e in g_get_any_init () at gutils.c:539 > #13 0x2814ddb9 in g_get_home_dir () at gutils.c:623 > #14 0x2859bd97 in gnomelib_init () from /usr/X11R6/lib/libgnome.so.5 > #15 0x282123bf in gnome_init_with_popt_table () > from /usr/X11R6/lib/libgnomeui.so.5 > #16 0x282124ae in gnome_init () from /usr/X11R6/lib/libgnomeui.so.5 > #17 0x281765b5 in gnome_CORBA_init () from /usr/X11R6/lib/libgnorba.so.5 > #18 0x805dddb in main () > #19 0x8058ee5 in _start () > > A listing at #12: > > 534 # endif /* !HAVE_GETPWUID_R */ > 535 > 536 if (!pw) > 537 { > 538 setpwent (); > 539 pw = getpwuid (getuid ()); > 540 endpwent (); > 541 } > 542 if (pw) > 543 { > > (that's from glib12) > > This makes panel,gnome-session, etc all crash on start. > > > -current as of this morning. > > > -Seth -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message