Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cannot set up LDT for thread-local storage



I found pr 33487.
This was for dom0 i386 for NetBSD 3.99.19.

I have been running a version of firefox-linux on a dom0 i386 NetBSD-4.0 without problem. Maybe I was just lucky.
Here is additional info
Xen 3.0 i386  dom0 NetBSD-4.0  i386 dom0 firefox-linux-2 works
Xen 3.3 amd64 dom0 NetBSD-4.99 i386 domu firefox-linux-2 works
Xen 3.3 amd64 dom0 NetBSD-4.99 i386 domu firefox-linux-3 causes panic
       (with LDT option on)


Is there another pr which has this issue?

johnh...
On Thu, 2 Oct 2008, Manuel Bouyer wrote:

Date: Thu, 2 Oct 2008 20:06:32 +0200
From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
To: John Hayward <John.C.Hayward%wheaton.edu@localhost>
Cc: Thor Lancelot Simon <tls%rek.tjls.com@localhost>, 
port-xen%NetBSD.org@localhost
Subject: Re: cannot set up LDT for thread-local storage

On Thu, Oct 02, 2008 at 11:20:42AM -0500, John Hayward wrote:
On Wed, Oct 01, 2008 at 08:36:43PM -0500, John Hayward wrote:
Dear Xen people,
  I have amd64 dom0 - xen 3.3 current as of about 9/27.
  I have created two i386 domu - one NetBSD-4.0 and one NetBSD-4.99
both
using netbsd-XEN3PAE_DOMU from 4.99 as of about 9/27 - both domu installed
fine.
  I have installed a firefox-bin-3.0.2 binary package or build from
pkgsrc - it seems to install fine.  When I run I get:

cannot set up thread-local storage: cannot set up LDT for thread-local
storage

  Is this a limitation of NetBSD linux emulation under Xen domu?

Do you have kernel options USER_LDT?
I was using the daily kernel netbsd-XEN3PAE_DOMU from 4.99 as of about 9/27

In looking at the config for this kernel it had USER_LDT commented out (in
included XEN2_DOMU).  I added that option and built a kernel - rebooted
with new kernel.  When I attempt to start firefox-linux I now get:
====
panic: gdt_get_slot botch 1
fatal breakpoint trap in supervisor mode
trap type 1 code 0 eip c038ceac cs 9 eflags 246 cr2 bac9a000 ilevel 0
Stopped in pid 429.1 (firefox-bin) at   netbsd:breakpoint+0x4:  popl
%ebp
db>
====

That's why it's commented out :)
this is a known issue; and there's a PR open about it ...

--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
    NetBSD: 26 ans d'experience feront toujours la difference
--




Home | Main Index | Thread Index | Old Index