[parisc-linux] compiling kernels with gcc-3.1

John David Anglin dave@hiauly1.hia.nrc.ca
Mon, 15 Jul 2002 11:24:52 -0400 (EDT)


> (I just note on the sti console)
> sshd (pid 322): illegal instruction (code 8)
> ...
> kernel panic...

This is just a guess but I will wager that this problem is related
to the problems with expect, the cc1plus crash and the mmap issues noted
elsewhere with SMP kernels.  There seem to be circumstances where the
kernel crashes when a user application traps unexpectedly.

Joel, you should be able to run sshd under gdb and find what the
cause of the illegal instruction is.  It should not be a problem
to download and build 3.4p1 with gcc 3.2 from <http://www.openssh.org>.
Build at -O1 with debugging enabled.  There are examples on their
mail list on how to run sshd in debug mode.  If the situation is
similar to the cc1plus crash, gdb will prevent the system from
crashing when the fault occurs.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)