Skip to contentSkip to conversation

386 'ls' gets SIGILL iff /proc is mounted

DISCUSSION Eric Buddington 2 participants 5 messages Mar 27, 2001 – Mar 29, 2001

lore
Share & tools
lore
#0 lore raw

2.4.2-ac23 nfsroot on a 386SX/20 with 6Mb RAM

On boot to single user, 'ls' and 'ls -l' work fine.

After mounting /proc, 'ls' still works, but 'ls -l' fails with SIGILL after reading /etc/timezone (so says strace).

Unmounting /proc fixes the problem. Unmounting /dev doesn't.

I also, just now, had a spate of 'permission denied' errors while trying to ls /dev/ subdirectories, and unexpected stale NFS handles.

The problems are varied enough that I suspect bad hardware, but would flaky RAM cause such similar failures repeatedly? And is there a way to test RAM explicitly?

Any tips appreciated, either to me ([email protected]) or to the list.

-Eric

#1 lore raw
Quoted 13 lines · Eric Buddington

2.4.2-ac23 nfsroot on a 386SX/20 with 6Mb RAM

On boot to single user, 'ls' and 'ls -l' work fine.

After mounting /proc, 'ls' still works, but 'ls -l' fails with SIGILL after reading /etc/timezone (so says strace).

Unmounting /proc fixes the problem. Unmounting /dev doesn't.

I also, just now, had a spate of 'permission denied' errors while trying to ls /dev/ subdirectories, and unexpected stale NFS handles.

Quoted 6 lines

The problems are varied enough that I suspect bad hardware, but would flaky RAM cause such similar failures repeatedly? And is there a way to test RAM explicitly?

Any tips appreciated, either to me ([email protected]) or to the list.

Silly question, but is math emulation enabled?

--

Brian Gerst

#2 lore raw
In reply to Eric Buddington
Quoted 9 lines · Brian Gerst
Quoted 7 lines

The problems are varied enough that I suspect bad hardware, but would flaky RAM cause such similar failures repeatedly? And is there a way to test RAM explicitly?

Any tips appreciated, either to me ([email protected]) or to the list.

Silly question, but is math emulation enabled?

Yes. I should have mentioned that in the original, since it occurred to me also.

-Eric

#3 lore raw
In reply to Eric Buddington
Quoted 10 lines · Eric Buddington
Quoted 8 lines · Brian Gerst
Quoted 7 lines

The problems are varied enough that I suspect bad hardware, but would flaky RAM cause such similar failures repeatedly? And is there a way to test RAM explicitly?

Any tips appreciated, either to me ([email protected]) or to the list.

Quoted 6 lines
Quoted 1 line

Silly question, but is math emulation enabled?

Yes. I should have mentioned that in the original, since it occurred to me also.

-Eric

Try running ls under gdb and find out what instruction is causing SIGILL (illegal opcode). It is possible that it was compiled to use instructions available only on later processors, or it could potentially be a bug in the math emulation code.

--

Brian Gerst

#4 lore raw
In reply to Eric Buddington
Quoted 6 lines · Ulrich Drepper
Quoted 3 lines · Eric Buddington

OK. Context again (since I clipped preceding notes): 386SX/20 nfsroot, getting SIGILL on lots of processes, math emulation is enabled, ls and glibc were compiled with '-march=i386 -mcpu=i386' to be sure.

Quoted 7 lines

This isn't enough. You compiled glibc on a i586 or later without telling configure to use the i386 configuration. Run configure with the usual options and

   i386-linux-gnu

at the end of the command line and then use the options above.

This seems to have solved the problem. Thanks!

-Eric