Re: segfault in getpwuid()?

2002-04-05 Thread Brian Somers

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 [EMAIL PROTECTED][EMAIL PROTECTED]
  http://www.freebsd-services.com/brian@[uk.]FreeBSD.org
Don't _EVER_ lose your sense of humour !  brian@[uk.]OpenBSD.org



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



segfault in getpwuid()?

2002-03-13 Thread Seth Hettich

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

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message