Problem with i386, bad opcode bswap

Wurgl Wurgl at arcor.de
Fri Nov 11 16:46:11 UTC 2005


Hi list,

hope this one is not an old one, I do not know where to
add it in the bug tracking system, so I use the mailing
list. If someone can give me hints, I will file a bug
report.

I have some old i386 PC and tried to set up Linux on
it. I used this image to set up an initial file system.
http://www.uclibc.org/downloads/root_fs_i386.ext2.bz2

When I do something like 'ifconfig eth0 192.168.222.13 up'
the program crahes with Illegal Instruction.

So I started the beast in gdb and found out, that
the i386 build uses an opcode bswap which (as I remember)
was introduced with the i486.
So this bug really blocks me :-(

As far as I have seen in gdb, it is in function inet_aton
at decimal offset 152, seems to be the last C statement in
this function. I guess it has something to do with
the family of ntohl/ntohs.

A second issue: In this filesystem image almost all the
permissions allow only root to do anything, the directories
have permission 700, the executables 500 and the libraries
have 400 and some have 500, similar with /etc/* where the
files are only readable by root (eg. /etc/passwd). But this
can be fixed locally and does not block me.

Thanks
Wolfgang




More information about the uClibc mailing list