Subject: bin/21801: ls coredumped (propably locale)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reinoud@netbsd.org>
List: netbsd-bugs
Date: 06/05/2003 17:01:40
>Number:         21801
>Category:       bin
>Synopsis:       ls coredumped (propably locale)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 05 15:02:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     reinoud@netbsd.org
>Release:        NetBSD 1.6T
>Organization:
NetBSD
	
>Environment:
	
	
System: NetBSD trabant.kasbah 1.6T NetBSD 1.6T (GENERIC) #0: Wed May 21 16:46:06 UTC 2003 autobuild@tgm.daemon.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

I did it :-/ `/bin/ls' coredumped again. Now this is propably a bug in libc.
Its an autobuild install of the date specified. Maybe it can be considered
as too rare but at least its documented now :-/

Looking at the traceback its propably a locale() error.

Haven't found an entry in the PR database yet.

trabant% gdb --core=ls.core /bin/ls
GNU gdb 5.0nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...(no debugging symbols found)...
Core was generated by `ls'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /lib/libc.so.12...Deprecated bfd_read called at /autobuild/HEAD/src/gnu/dist/toolchain/gdb/dbxread.c line 2638 in elfstab_build_psymtabs
Deprecated bfd_read called at /autobuild/HEAD/src/gnu/dist/toolchain/gdb/dbxread.c line 976 in fill_symbuf
(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.12
#0  0x480eb289 in strncmp () from /lib/libc.so.12
(gdb) 
(gdb) where
#0  0x480eb289 in strncmp () from /lib/libc.so.12
#1  0x480f8300 in __isthreaded () from /lib/libc.so.12
#2  0x480ea8f0 in getenv () from /lib/libc.so.12
#3  0x480d3158 in __setlocale () from /lib/libc.so.12
#4  0x480d311b in __setlocale_mb_len_max_32 () from /lib/libc.so.12
#5  0x80494c5 in dladdr ()
#6  0x804a410 in dladdr ()
#7  0x8048e54 in free ()
(gdb) 

Additional error generated :

trabant% ls -al
Bad pAUX_base
trabant% ls -al

>How-To-Repeat:
It coredumped just when i typed it as the first command in an xterm in a
just stated X session. It has been used before and after without problems.

The second error (the pAUX_base) also occured with the same actions and is
most likely related.
	
>Fix:
Unknown

>Release-Note:
>Audit-Trail:
>Unformatted: