Bug 25634

Summary: I obtain kernel trap 9 with interrupts disabled when I execute the wine emulator
Product: Base System Reporter: jose.l.rodriguez <jose.l.rodriguez>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description jose.l.rodriguez 2001-03-09 15:40:01 UTC
When I execute wine I sometimes obtain the next message:
wine core dumps seconds more later.

an 31 20:16:17 pc-jose /kernel: kernel trap 9 with interrupts disabled
Jan 31 20:16:26 pc-jose /kernel: pid 72905 (wine), uid 0: exited on signal 4 (core dumped)
Jan 31 20:18:03 pc-jose /kernel: kernel trap 9 with interrupts disabled
Jan 31 20:18:09 pc-jose /kernel: pid 73073 (wine), uid 0: exited on signal 4 (core dumped)
Jan 31 20:33:11 pc-jose /kernel: kernel trap 9 with interrupts disabled
Jan 31 20:33:18 pc-jose /kernel: pid 74218 (wine), uid 0: exited on signal 4 (core dumped)
Jan 31 20:36:54 pc-jose /kernel: kernel trap 9 with interrupts disabled
Jan 31 20:36:59 pc-jose /kernel: pid 74630 (wine), uid 0: exited on signal 4 (core dumped)
Jan 31 21:10:31 pc-jose /kernel: pid 79712 (wine), uid 0: exited on signal 4 (core dumped)
Jan 31 21:13:18 pc-jose /kernel: kernel trap 9 with interrupts disabled
Jan 31 21:13:36 pc-jose /kernel: pid 80057 (wine), uid 0: exited on signal 4 (core dumped)

How-To-Repeat: Executing windows programs under wine
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2001-03-13 02:20:31 UTC
State Changed
From-To: open->feedback

Awaiting response
Comment 2 Kris Kennaway 2001-03-13 02:20:53 UTC
On Fri, Mar 09, 2001 at 07:33:54AM -0800, jose.l.rodriguez@getronics.com wrote:

> When I execute wine I sometimes obtain the next message:
> wine core dumps seconds more later.

Signal 4 is "illegal instruction" -- perhaps you compiled the Wine
binary with CPU-specific optimizations which are inappropriate for the
CPU you are running on, or perhaps it includes ASM code which doesn't
run on your CPU?

What type of machine are you running on?

Kris
Comment 3 des 2001-03-13 02:46:23 UTC
Kris Kennaway <kris@obsecurity.org> writes:
>  Signal 4 is "illegal instruction" -- perhaps you compiled the Wine
>  binary with CPU-specific optimizations which are inappropriate for the
>  CPU you are running on, or perhaps it includes ASM code which doesn't
>  run on your CPU?

That, or - much more likely - he forgot to add 'options USER_LDT' to
his kernel config.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org
Comment 4 pfeifer 2001-03-14 13:51:55 UTC
Dag-Erling Smorgrav wrote:
> That, or - much more likely - he forgot to add 'options USER_LDT' to
> his kernel config.

I believe the change to support USER_LDT in the generic kernel still has
not been MFCed, or have I just missed that?

Perhaps that would be a proper ``fix'' for this PR, namely to perform that
MFC now.

(Linux has had this feature for a couple of years now.)

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
Comment 5 des 2001-03-14 21:19:17 UTC
Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:
> Dag-Erling Smorgrav wrote:
> > That, or - much more likely - he forgot to add 'options USER_LDT' to
> > his kernel config.
> I believe the change to support USER_LDT in the generic kernel still has
> not been MFCed, or have I just missed that?

If you're referring to the fact that USER_LDT is no longer optional in
-CURRENT, then no, it hasn't been MFCed. Don't think it will either.

> (Linux has had this feature for a couple of years now.)

Yes, well, we've had it since January 1994.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org
Comment 6 jose.l.rodriguez 2001-03-16 17:39:45 UTC
 Thx by your fast response. (sorry by late response to you.. I didn't
can go to the
work computer for response your e-mail... very busy with customers...)

I didn't use any CPU-specific optimization. I compiled it using the
ports from
www.freebsd.org. I download the last port and executed: cd
emulators/wine; make; make install

I am using a PentiumIII

The machine is a Dell Optiplex GX110.
I use XFree86 4.02 and the graphics card is 815i.

-----Original Message-----
From: Kris Kennaway
To: jose.l.rodriguez@getronics.com
Cc: freebsd-gnats-submit@FreeBSD.org
Sent: 3/13/01 3:20 AM
Subject: Re: kern/25634: I obtain kernel trap 9 with interrupts disabled
when I execute the wine emulator

On Fri, Mar 09, 2001 at 07:33:54AM -0800, jose.l.rodriguez@getronics.com
wrote:

> When I execute wine I sometimes obtain the next message:
> wine core dumps seconds more later.

Signal 4 is "illegal instruction" -- perhaps you compiled the Wine
binary with CPU-specific optimizations which are inappropriate for the
CPU you are running on, or perhaps it includes ASM code which doesn't
run on your CPU?

What type of machine are you running on?

Kris
Comment 7 jose.l.rodriguez 2001-03-16 17:46:23 UTC
 I didn't forgot to include the 'options USER_LDT' to my kernl config.

wine works for me (from 30 seconds to 1 hour without core), but it
crashes with my previus message (first trap 9 and after of that the wine
core dumps)

-----Original Message-----
From: Gerald Pfeifer
To: freebsd-gnats-submit@freebsd.org
Cc: Dag-Erling Smorgrav; jose.l.rodriguez@getronics.com
Sent: 3/14/01 2:51 PM
Subject: Re: kern/25634: I obtain kernel trap 9 with interrupts disabled
when I execute the wine emulator

Dag-Erling Smorgrav wrote:
> That, or - much more likely - he forgot to add 'options USER_LDT' to
> his kernel config.

I believe the change to support USER_LDT in the generic kernel still has
not been MFCed, or have I just missed that?

Perhaps that would be a proper ``fix'' for this PR, namely to perform
that
MFC now.

(Linux has had this feature for a couple of years now.)

Gerald
--=20
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at
http://www.dbai.tuwien.ac.at/~pfeifer/
Comment 8 pfeifer 2001-03-16 17:59:49 UTC
On Fri, 16 Mar 2001, Rodriguez Garcia, Jose Luis wrote:
> wine works for me (from 30 seconds to 1 hour without core), but it
> crashes with my previus message (first trap 9 and after of that the wine
> core dumps)

I submitted an update for the Wine port yesterday, you could give that one
a try. (Hopefully that patch will be installed soon.)

  http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25825

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
Comment 9 Kris Kennaway freebsd_committer freebsd_triage 2001-03-27 20:01:10 UTC
State Changed
From-To: feedback->analyzed

A diagnosis and fix has been proposed, awaiting submitter ACK/NAK of 
solution.
Comment 10 Kris Kennaway freebsd_committer freebsd_triage 2001-07-02 20:50:09 UTC
State Changed
From-To: analyzed->closed

Submitter can no longer reproduce problem and requests closure.