[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NSLU2 with lenny armel: segfaults with filesystem commands (ls, cp, mv)



Hi Martin,

thanks for responding. In the meantime, I found out that the problem
strangely "fixes itself" and then reoccurs, without any traces in the log
files. I meanwhile found a workaround, replacing "mv" with "cat" and
redirects in the script that monitors and visualizes my solar heating
system's data, which is the only purpose I use my slug for.

The problem might have to do with error messages from the "usbserial"
driver, which have started to appear occasionally in my logs. But they
don't coincide with the appearance or disappearance of the segfaults.

Right now, when I logged on the "ls" command segfaulted. I then used
"apt-get" to install the newest lenny updates (nothing kernel or fileutil
related), and suddenly "ls" worked again!

Since I found a workaround, I can live with the problem for the time
being. If anyone is interested, I attached a strace log of a crashing "ls"
command.

Regards, Richard

> * u7l11ey@mail.lrz-muenchen.de <u7l11ey@mail.lrz-muenchen.de> [2009-11-11
> 23:17]:
>> This happens at irregular intervals. Sometimes everything is fine for
>> days, then it already happens during the boot sequence, as I can see
>> from
>> entries in the boot logfile. When these errors start occuring, only a
>> reboot helps.
>>
>> Any idea what could be causing the problem or how to debug it? Could it
>> really have to do with the kernel update, or is this just a coincidence?
>> I
>> could try testing that by reverting back to an older kernel, but how do
>> I
>> accomplish that?
>
> I would say that it's a coincidence.  At least I haven't heard any
> other report like yours.
>
> If you still have 2.6.26-1-ixp4xx installed, you could revert to that
> with
>     flash-kernel 2.6.26-1-ixp4xx
> and see what happens.  You can use
>     dpkg -l | grep linux-image
> to find out which kernels are installed on your machine.
> --
> Martin Michlmayr
> http://www.cyrius.com/
execve("/bin/ls", ["ls"], [/* 11 vars */]) = 0
brk(0)                                  = 0x26000
uname({sys="Linux", node="slug", ...})  = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=18272, ...}) = 0
mmap2(NULL, 18272, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/librt.so.1", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\220\26\0\0004\0\0\0\314"..., 512) = 512
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40023000
fstat64(3, {st_mode=S_IFREG|0644, st_size=26572, ...}) = 0
mmap2(NULL, 57844, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40026000
mprotect(0x4002c000, 28672, PROT_NONE)  = 0
mmap2(0x40033000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0x40033000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libselinux.so.1", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\34;\0\0004\0\0\0D"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=91948, ...}) = 0
mmap2(NULL, 125788, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40035000
mprotect(0x4004b000, 28672, PROT_NONE)  = 0
mmap2(0x40052000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0x40052000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libacl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\250\25\0\0004\0\0\0\310"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=24752, ...}) = 0
mmap2(NULL, 56280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40054000
mprotect(0x4005a000, 28672, PROT_NONE)  = 0
mmap2(0x40061000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0x40061000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0('\0\0004\0\0\0\364"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=48172, ...}) = 0
mmap2(NULL, 79608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40062000
mprotect(0x4006e000, 28672, PROT_NONE)  = 0
mmap2(0x40075000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb) = 0x40075000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\344O\1\0004\0\0\0\234"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1168924, ...}) = 0
mmap2(NULL, 1204776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40076000
mprotect(0x40190000, 28672, PROT_NONE)  = 0
mmap2(0x40197000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x119) = 0x40197000
mmap2(0x4019a000, 8744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4019a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\310B\0\0004\0\0\0000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=110576, ...}) = 0
mmap2(NULL, 119300, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4019d000
mprotect(0x401b0000, 28672, PROT_NONE)  = 0
mmap2(0x401b7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0x401b7000
mmap2(0x401b9000, 4612, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401b9000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0004\t\0\0004\0\0\0\270"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9752, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401bb000
mmap2(NULL, 41140, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x401bc000
mprotect(0x401be000, 28672, PROT_NONE)  = 0
mmap2(0x401c5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x401c5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libattr.so.1", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\250\r\0\0004\0\0\0\334"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=14020, ...}) = 0
mmap2(NULL, 45532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x401c7000
mprotect(0x401ca000, 32768, PROT_NONE)  = 0
mmap2(0x401d2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0x401d2000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401d3000
set_tls(0x401d34a0, 0x401d34a0, 0x684, 0x401d3bc8, 0x40025050) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Reply to: