Subject: Re: "panic: trap" while trying to run linux/i386 netscape with
To: Thorsten Frueauf <s_frueau@ira.uka.de>
From: Paul Wain <paul.wain@nc.com>
List: port-i386
Date: 12/14/1998 20:27:49
--------------D27ADDF6EE932864D4BACFC5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

See if this works:

In compat/linux/common/linux_ioctl.c find the line that says:

#if NSEQUENCERS > 0

and change it to:

#if 0

Ive seen a similar thing in a kernel that was built for a type of machine that
may or maynot have a sound card (long story). Basically it appears that if you
have a MIDI sequencer configured, but no sound card, one of the linux ioctl's
for termio can cause a kernel panic. (If you look at the linux emulation code,
its quite logical!)

If the above fixes things, you need to do one of two things:

a) remove the midi sequencer from your configuration file and rebuild your
kernel or
b) find out why, if you have it configured, you sound card isnt attaching a
midi sequencer.

BTW, the signal message you are seeing can be ignored. Its apparently one of
the linux signal types/handlers that NetBSD doesnt support in emulation mode,
that isnt really needed so it complains only if you have debugging on.

Paul.

Thorsten Frueauf wrote:

> Hello!
>
> On my laptop (i386) I run a userland from current suped at 30.11.1998, and
> today I build a kernel from sources suped at 14.12.1998. If I try to
> run Netscape 4.08 (linux libc-5) binary, the machine freezes for a
> short time and just resets. The crashdump from savecore just says
> "panic: trap". So I rebuild a kernel with DEBUG and makeoptions DEBUG="-g",
> with that it freezes (without reset) and prints several times
>
> linux_old_to_native_sigaction: sa_restorer ignored
>
> to the xconsole.
>
> With my kernel build with 30.11.1998 sources the same binary just runs
> well. Anyone sees this too and has some hint?

--
.----------------------------------------------------------------------.
| Paul Wain                         || Tel: +1 650 631 GOAT (4628)     |
| Network Computer Inc.             || Web: http://www.nc.com/         |
| Redwood Shores, CA 94040          ||                                 |
`----------------------------------------------------------------------'


--------------D27ADDF6EE932864D4BACFC5
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
See if this works:
<p>In compat/linux/common/linux_ioctl.c find the line that says:
<p>#if NSEQUENCERS > 0
<p>and change it to:
<p>#if 0
<p>Ive seen a similar thing in a kernel that was built for a type of machine
that may or maynot have a sound card (long story). Basically it appears
that if you have a MIDI sequencer configured, but no sound card, one of
the linux ioctl's for termio can cause a kernel panic. (If you look at
the linux emulation code, its quite logical!)
<p>If the above fixes things, you need to do one of two things:
<p>a) remove the midi sequencer from your configuration file and rebuild
your kernel or
<br>b) find out why, if you have it configured, you sound card isnt attaching
a midi sequencer.
<p>BTW, the signal message you are seeing can be ignored. Its apparently
one of the linux signal types/handlers that NetBSD doesnt support in emulation
mode, that isnt really needed so it complains only if you have debugging
on.
<p>Paul.
<p>Thorsten Frueauf wrote:
<blockquote TYPE=CITE>Hello!
<p>On my laptop (i386) I run a userland from current suped at 30.11.1998,
and
<br>today I build a kernel from sources suped at 14.12.1998. If I try to
<br>run Netscape 4.08 (linux libc-5) binary, the machine freezes for a
<br>short time and just resets. The crashdump from savecore just says
<br>"panic: trap". So I rebuild a kernel with DEBUG and makeoptions DEBUG="-g",
<br>with that it freezes (without reset) and prints several times
<p>linux_old_to_native_sigaction: sa_restorer ignored
<p>to the xconsole.
<p>With my kernel build with 30.11.1998 sources the same binary just runs
<br>well. Anyone sees this too and has some hint?</blockquote>
--
<br><tt>.----------------------------------------------------------------------.</tt>
<br><tt>| Paul Wain&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|| Tel: +1 650 631 GOAT (4628)&nbsp;&nbsp;&nbsp;&nbsp; |</tt>
<br><tt>| Network Computer Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|| Web: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">http://www.nc.com/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|</tt>
<br><tt>| Redwood Shores, CA 94040&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|</tt>
<br><tt>`----------------------------------------------------------------------'</tt>
<br><tt></tt>&nbsp;</html>

--------------D27ADDF6EE932864D4BACFC5--