ls crashed with signal 7 in __libc_start_main()

Bug #308171 reported by PBethe
6
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: coreutils

Boot up was slow. The PC and I went to sleep. I moved the mouse, and the desktop came up.

Now that I am more fully awake, I have an old machine with a Celeron 568 Mhz processor and 374 K of RAM. Cannonical just mailed me a new CD for 32-bit systems, and I tried it out. A couple of times I got a "reboot now" message, so I verified that the disc is good with a self-test on another machine. Then I did twelve hours of memory tests on the 374 K, which checked
out OK. I started the boot process, went to bed, and found an error report the next morning.

I have experimented with earlier releases of Ubuntu, but never installed. Usually, things grind to a halt before I can do much of anything.

ProblemType: Crash
Architecture: i386
Disassembly: 0x804e6f0 <exit@plt+19432>:
DistroRelease: Ubuntu 8.10
ExecutablePath: /bin/ls
Package: coreutils 6.10-6ubuntu1
ProcAttrCurrent: unconfined
ProcCmdline: ls -d -Q /etc/rc2.d/S89anacron
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 LANG=en_US.UTF-8
 SHELL=/bin/sh
Signal: 7
SourcePackage: coreutils
Stacktrace:
 #0 0x0804e6f0 in ?? ()
 #1 0xb7e62685 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
 #2 0x08049b41 in ?? ()
StacktraceTop:
 ?? ()
 __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
 ?? ()
ThreadStacktrace:
 .
 Thread 1 (process 10626):
 #0 0x0804e6f0 in ?? ()
 #1 0xb7e62685 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
 #2 0x08049b41 in ?? ()
Title: ls crashed with signal 7 in __libc_start_main()
Uname: Linux 2.6.27-7-generic i686
UserGroups:

Tags: apport-crash
Revision history for this message
PBethe (p-bethe) wrote :
PBethe (p-bethe)
description: updated
Revision history for this message
PBethe (p-bethe) wrote :

Did I write 374K? No, it is 384 megabytes of RAM.

Revision history for this message
PBethe (p-bethe) wrote :
Download full text (23.9 KiB)

Here is SOME output from dmesg:

[ 1.604684] bus: 01 index 3 mmio: [0, 0]
[ 1.604771] NET: Registered protocol family 2
[ 1.605710] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 1.607193] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 1.608830] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[ 1.610641] TCP: Hash tables configured (established 16384 bind 16384)
[ 1.610667] TCP reno registered
[ 1.611888] NET: Registered protocol family 1
[ 1.612932] checking if image is initramfs...<7>Switched to high resolution mode on CPU 0
[ 2.895697] it is
[ 4.921773] Freeing initrd memory: 8250k freed
[ 4.928938] audit: initializing netlink socket (disabled)
[ 4.929056] type=2000 audit(1229296989.928:1): initialized
[ 4.954238] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[ 4.980778] VFS: Disk quotas dquot_6.5.1
[ 4.981965] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 4.983127] msgmni has been set to 749
[ 4.984747] io scheduler noop registered
[ 4.984773] io scheduler anticipatory registered
[ 4.984783] io scheduler deadline registered
[ 4.984959] io scheduler cfq registered (default)
[ 4.985033] PCI: VIA PCI bridge detected.Disabling DAC.
[ 4.985055] pci 0000:00:07.0: Activating ISA DMA hang workarounds
[ 4.985130] pci 0000:01:00.0: Boot video device
[ 4.989236] isapnp: Scanning for PnP cards...
[ 5.344085] isapnp: No Plug & Play device found
[ 6.086655] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 6.087471] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 6.089578] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 6.097975] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 6.102049] 00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 6.126189] brd: module loaded
[ 6.126915] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 6.128593] PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[ 6.130091] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 6.130141] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 6.135366] mice: PS/2 mouse device common for all mice
[ 6.137592] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
[ 6.137684] rtc0: alarms up to one year, y3k
[ 6.139148] EISA: Probing bus 0 at eisa.0
[ 6.139210] Cannot allocate resource for EISA slot 4
[ 6.139248] EISA: Detected 0 cards.
[ 6.139269] cpuidle: using governor ladder
[ 6.139281] cpuidle: using governor menu
[ 6.143011] TCP cubic registered
[ 6.143274] Using IPI No-Shortcut mode
[ 6.147291] registered taskstats version 1
[ 6.147822] Magic number: 4:353:403
[ 6.148502] rtc_cmos 00:04: setting system clock to 2008-12-14 23:23:12 UTC (1229296992)
[ 6.148522] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 6.148532] EDD information not available.
[ 6.152944] Freeing unused kernel memory: 424k freed
[ 6.153237] Write protecting the kernel text: 2576k
[ 6.153427] Write protecting the kernel read-only data: 936k
[ 6.175164] input: AT Translated Set 2 keyboard as /devices/platform/i8042/se...

Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:main (argc=4, argv=0xbff00d04) at ls.c:1275

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in coreutils:
importance: Undecided → Medium
Revision history for this message
PBethe (p-bethe) wrote :
Download full text (45.4 KiB)

Here are some of today's messages:

Mar 12 17:35:59 ubuntu syslogd 1.5.0#2ubuntu6: restart.
Mar 12 17:36:00 ubuntu kernel: Inspecting /boot/System.map-2.6.27-7-generic
Mar 12 17:36:01 ubuntu kernel: Cannot find map file.
Mar 12 17:36:01 ubuntu kernel: Loaded 42941 symbols from 68 modules.
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] Initializing cgroup subsys cpuset
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] Initializing cgroup subsys cpu
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] Linux version 2.6.27-7-generic (buildd@rothera) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu10) ) #1 SMP Fri Oct 24 06:42:44 UTC 2008 (Ubuntu 2.6.27-7.14-generic)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] BIOS-provided physical RAM map:
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] BIOS-e820: 0000000000100000 - 0000000017ff0000 (usable)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] BIOS-e820: 0000000017ff0000 - 0000000017ff3000 (ACPI NVS)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] BIOS-e820: 0000000017ff3000 - 0000000018000000 (ACPI data)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] last_pfn = 0x17ff0 max_arch_pfn = 0x100000
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] RAMDISK: 177b1000 - 17fbf8ae
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] DMI 2.2 present.
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] ACPI: RSDP 000F6B20, 0014 (r0 JETWAY)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] ACPI: RSDT 17FF3000, 0028 (r1 JETWAY AWRDACPI 42302E31 AWRD 0)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] ACPI: FACP 17FF3040, 0074 (r1 JETWAY AWRDACPI 42302E31 AWRD 0)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] ACPI: DSDT 17FF30C0, 2554 (r1 JETWAY AWRDACPI 1000 MSFT 100000C)
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] ACPI: FACS 17FF0000, 0040
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] 0MB HIGHMEM available.
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] 383MB LOWMEM available.
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] mapped low ram: 0 - 17ff0000
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] low ram: 00000000 - 17ff0000
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] bootmap 00002000 - 00005000
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] (9 early reservations) ==> bootmem [0000000000 - 0017ff0000]
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] #1 [0000001000 - 0000002000] EX TRAMPOLINE ==> [0000001000 - 0000002000]
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] #2 [0000006000 - 0000007000] TRAMPOLINE ==> [0000006000 - 0000007000]
Mar 12 17:36:01 ubuntu kernel: [ 0.000000] #3 [0000100000 - 00005c0a20] TEXT DATA BSS ==> [0000100000 - 00005c0a20]
Mar 12 17:36:01 ubuntu kernel: [ ...

Revision history for this message
PBethe (p-bethe) wrote :
Download full text (3.2 KiB)

At about 15:00 I started to have problems like this:

ubuntu@ubuntu:~$ sudo apt-get install libgccl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libgccl
ubuntu@ubuntu:~$ sudo apt-get install libgcc1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  cpp-4.3 gcc-4.3 gcc-4.3-base libgomp1 libstdc++6
Suggested packages:
  gcc-4.3-locales gcc-4.3-multilib libmudflap0-4.3-dev gcc-4.3-doc libgcc1-dbg
  libgomp1-dbg libmudflap0-dbg
The following packages will be upgraded:
  cpp-4.3 gcc-4.3 gcc-4.3-base libgcc1 libgomp1 libstdc++6
6 upgraded, 0 newly installed, 0 to remove and 274 not upgraded.
Need to get 6520kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com intrepid-updates/main gcc-4.3-base 4.3.2-1ubuntu12 [105kB]
Get:2 http://archive.ubuntu.com intrepid-updates/main libstdc++6 4.3.2-1ubuntu12 [334kB]
Get:3 http://archive.ubuntu.com intrepid-updates/main libgomp1 4.3.2-1ubuntu12 [13.4kB]
Get:4 http://archive.ubuntu.com intrepid-updates/main cpp-4.3 4.3.2-1ubuntu12 [3106kB]
Get:5 http://archive.ubuntu.com intrepid-updates/main gcc-4.3 4.3.2-1ubuntu12 [2936kB]
Get:6 http://archive.ubuntu.com intrepid-updates/main libgcc1 1:4.3.2-1ubuntu12 [26.0kB]
Fetched 6520kB in 1min12s (90.4kB/s)
(Reading database ... 102335 files and directories currently installed.)
Preparing to replace gcc-4.3-base 4.3.2-1ubuntu11 (using .../gcc-4.3-base_4.3.2-1ubuntu12_i386.deb) ...
Unpacking replacement gcc-4.3-base ...
Setting up gcc-4.3-base (4.3.2-1ubuntu12) ...

(Reading database ... 102335 files and directories currently installed.)
Preparing to replace libstdc++6 4.3.2-1ubuntu11 (using .../libstdc++6_4.3.2-1ubuntu12_i386.deb) ...
Unpacking replacement libstdc++6 ...
Setting up libstdc++6 (4.3.2-1ubuntu12) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
(Reading database ... 102335 files and directories currently installed.)
Preparing to replace libgomp1 4.3.2-1ubuntu11 (using .../libgomp1_4.3.2-1ubuntu12_i386.deb) ...
Unpacking replacement libgomp1 ...
Preparing to replace cpp-4.3 4.3.2-1ubuntu11 (using .../cpp-4.3_4.3.2-1ubuntu12_i386.deb) ...
Unpacking replacement cpp-4.3 ...
Preparing to replace gcc-4.3 4.3.2-1ubuntu11 (using .../gcc-4.3_4.3.2-1ubuntu12_i386.deb) ...
Unpacking replacement gcc-4.3 ...
dpkg: error processing /var/cache/apt/archives/gcc-4.3_4.3.2-1ubuntu12_i386.deb (--unpack):
 failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./usr/lib/gcc/i486-linux-gnu/4.3/libgcc.a': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libgcc1 1:4.3.2-1ubuntu11 (using .../libgcc1_1%3a4.3.2-1ubuntu12_i386.deb) ...
Unpacking replacement libgcc1 ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/gcc-4.3_4.3.2-1ubuntu12_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@ubuntu:~$ free
bash:...

Read more...

Revision history for this message
C de-Avillez (hggdh2) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. A signal 7 is (usually) a SIGBUS error, and denotes a hardware-driven error (memory address alignment, access tried to non-existent memory, and others).

It is very difficult that this has been caused by 'ls' itself.

Also, please do not mix different issues in one single bug report: we expect one bug per report, and one report per bug (otherwise we can lose track of what is what). Your final comment shows a filesystem full issue, and has nothing to do with a SIGBUS.

Changed in coreutils (Ubuntu):
status: New → Incomplete
Revision history for this message
PBethe (p-bethe) wrote :

I am sorry for that last distraction. This issue is not repeatable. Unless someone has some ideas, it will remain incomplete.

Revision history for this message
xteejx (xteejx) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner.
There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. It would help us a lot if you could test the current Ubuntu version (10.04). If you can test it, and it is still an issue, we would appreciate if you could upload updated logs by running apport-collect <bug #>, and any other logs that are relevant for this particular issue.

Revision history for this message
PBethe (p-bethe) wrote :

Thanks for your reply, I know there are a lot of things that can go wrong. I have had terrible problems experimenting with Ubuntu/Xubuntu. Using later versions, I managed to partition the hard drive on this computer, but I did not get a clean install. The CD drive died while using a Xubuntu live CD. That drive was old, so I replaced it with a new one. The new one worked fine at first, but it died when I booted from the Xubuntu CD. The sad details of my problems are in a forum post:

ubuntuforums.org/showthread.php?t=1180017

I don't know what to do next. I could file a new bug report if someone has time to work on it. It did not seem likely that software could kill a CD drive, but it has happened twice with this computer. Now, I cannot boot (or do anything) from a CD.

Paul

Revision history for this message
xteejx (xteejx) wrote :

Hi Paul,
I had a look through your dmesg and it appears that there was a problem with the CD or the drive itself back then:
[11127.377695] sr 1:0:1:0: [sr0] Sense Key : Medium Error [current]
[11127.377717] sr 1:0:1:0: [sr0] Add. Sense: No seek complete
[11127.377739] end_request: I/O error, dev sr0, sector 1379324
I would guess that at that point the CD drive was on its way out so it is probably by coincidence that it happens to be completely dead now. I had a similar issue with my CD drive and thought all my disks were duds but it turned out about 4 months later the drive died and had to replace it :(
I would also guess that this hardware problem is the reason why the install fails, and why part of coreutils segfaulted, perhaps parts of it were not loaded correctly as hggdh (C de-Avillez) suggested.
I can only really suggest that you either replace the faulty drive or test this on another machine, but the evidence really does suggest a faulty drive, sorry for the bad news! :(

xteejx (xteejx)
Changed in coreutils (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.