FS#43753 - [coreutils] [glibc] ls -lia segmentation fault

Attached to Project: Arch Linux
Opened by Pavel (psp) - Monday, 09 February 2015, 09:44 GMT
Last edited by Allan McRae (Allan) - Tuesday, 10 February 2015, 12:22 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Sébastien Luttringer (seblu)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
As of now Feb 9, 9.39 GMT, after latest updates ls -lia produces segmentation fault. Cannot say which update is to pinpoint the source, linux was updated yesterday but booted only this morning, glibc and two more updates updated this morning.

Additional info:
* package version(s)
* config and/or log files etc.
$ uname -a
Linux HOME 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:59:29 CET 2015 i686 GNU/Linux

Steps to reproduce:
$ ls -lia
total 136
Segmentation fault (core dumped)
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 10 February 2015, 12:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  glibc-2.21-2 in [testing]
Comment by Allan McRae (Allan) - Monday, 09 February 2015, 11:37 GMT
I can't replicate - what processor do you have?
Comment by Pavel (psp) - Monday, 09 February 2015, 15:03 GMT
AMD Athlon i686 on Compaq Presario 2100
Comment by Sven Claeys (svclaeys) - Monday, 09 February 2015, 16:05 GMT
I have the same issue.
running the command ls -la returns a Segmentation fault (core dumped)
downgrading to glibc-2.20-6-i686 resolved the problem

info:
$ uname -a
Linux Arch-Home 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:59:29 CET 2015 i686 GNU/Linux

cat /proc/cpuinfo
processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 10
model name : VIA Esther processor 1000MHz
stepping : 9
cpu MHz : 800.000
cache size : 128 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx pni est tm2 rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en
bugs :
bogomips : 1596.36
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 32 bits virtual
power management:
Comment by Pavel (psp) - Monday, 09 February 2015, 19:22 GMT
Confirm downgrading to glibc-2.20-6-i686 works. More details on CPU:
cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : mobile AMD Athlon(tm) XP 2000+
stepping : 1
cpu MHz : 927.605
cache size : 256 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow vmmcall
bugs : fxsave_leak
bogomips : 1855.52
clflush size : 32
cache_alignment : 32
address sizes : 34 bits physical, 32 bits virtual
power management: ts fid vid
Comment by Allan McRae (Allan) - Monday, 09 February 2015, 21:38 GMT
Can someone provide a gdb backtrace?
Comment by Pavel (psp) - Monday, 09 February 2015, 22:40 GMT
$ gdb --args ls -lia
GNU gdb (GDB) 7.8.2
...
This GDB was configured as "i686-pc-linux-gnu".
...
Reading symbols from ls...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/ls -lia
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
total 140

Program received signal SIGSEGV, Segmentation fault.
0xb7e6ff9c in __stpcpy_ia32 () from /usr/lib/libc.so.6

I do not know what I shall debug, hope it helps.
Comment by Allan McRae (Allan) - Monday, 09 February 2015, 23:01 GMT
I need you to type "bt full" at the end of that.
Comment by Allan McRae (Allan) - Tuesday, 10 February 2015, 00:31 GMT Comment by Allan McRae (Allan) - Tuesday, 10 February 2015, 03:50 GMT
https://sourceware.org/ml/libc-alpha/2015-02/msg00191.html

I will commit and rebuild glibc once approved upstream.
Comment by Pavel (psp) - Tuesday, 10 February 2015, 07:47 GMT
Done.
(gdb) run
Starting program: /usr/bin/ls -lia
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
total 140

Program received signal SIGSEGV, Segmentation fault.
0xb7e6ff9c in __stpcpy_ia32 () from /usr/lib/libc.so.6
(gdb) bt full
#0 0xb7e6ff9c in __stpcpy_ia32 () from /usr/lib/libc.so.6
No symbol table info available.
#1 0x0804de6e in ?? ()
No symbol table info available.
#2 0x0804ef08 in ?? ()
No symbol table info available.
#3 0x0804f6d9 in ?? ()
No symbol table info available.
#4 0x0804b3bb in ?? ()
No symbol table info available.
#5 0xb7e0f64e in __libc_start_main () from /usr/lib/libc.so.6
No symbol table info available.
#6 0x0804be7f in ?? ()
No symbol table info available.

Loading...