Date: Wed, 9 Apr 1997 12:10:03 -0700 (PDT) From: David Nugent <davidn@unique.usn.blaze.net.au> To: freebsd-bugs Subject: Re: bin/3240: ls(1) gets segmentation fault. /usr/src/bin/ls/ls.c:428. Message-ID: <199704091910.MAA09326@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/3240; it has been noted by GNATS. From: David Nugent <davidn@unique.usn.blaze.net.au> To: J.Hogeveen@twiddle.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/3240: ls(1) gets segmentation fault. /usr/src/bin/ls/ls.c:428. Date: Thu, 10 Apr 1997 05:04:52 +1000 On Wed Apr 9 08:06:47 EST 1997, J.Hogeveen@twiddle.com writes: > Starting program: /usr/obj/usr/src/bin/ls/./ls -l /usr/ports > Program received signal SIGSEGV, Segmentation fault. > 0x1fba in display (p=0x33100, list=0x33b00) at /usr/src/bin/ls/ls.c:428 > 428 if ((ulen = strlen(user)) > maxuser) > (gdb) where > #0 0x1fba in display (p=0x33100, list=0x33b00) at /usr/src/bin/ls/ls.c:428 > #1 0x1d32 in traverse (argc=1, argv=0xefbfd914, options=16) > at /usr/src/bin/ls/ls.c:338 > #2 0x1ba1 in main (argc=3, argv=0xefbfd90c) at /usr/src/bin/ls/ls.c:275 > (gdb) quit > The program is running. Quit anyway (and kill it)? (y or n) y ~ > No idea. > The problem appears only when doing ls with -l on /usr/ports. > On my home system (also 2.2-STABLE) this problem does not occur, so it's > unique to the /usr/ports directory at dot.twiddle.com. Only because it probably contains a uid/gid that has no matching user in /etc/passwd & /etc/group (or, rather, their db equivalents). If this is the case, then the problem is pwcache.c in libc. A fix for that bug went in around a week ago. Not only ls is affected. I had the same problem breifly until I noticed the commit message and rebuilt 'world'. Note that since ls is statically linked, you'll have to not only rebuild libc, but relink ls as well. Regards, David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704091910.MAA09326>