NetBSD Problem Report #232
From gnats Sat Apr 23 16:13:26 1994
Received: from relay.hp.com (relay.hp.com [15.255.152.2]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id QAA00943 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 23 Apr 1994 16:13:25 -0700
Message-Id: <199404231508.LAA00717@sussex.hudson.ma>
Date: Sat, 23 Apr 1994 11:08:15 -0400
From: John Brezak <brezak@ch.hp.com>
Reply-To: brezak@ch.hp.com
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: USER_LDT broken; testldt fails - can cause panic
X-Send-Pr-Version: 3.2
>Number: 232
>Category: port-i386
>Synopsis: USER_LDT broken; running test_ldt repeatedly can cause crash
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: mycroft
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 23 16:20:01 +0000 1994
>Closed-Date: Sun Apr 24 00:17:52 +0000 1994
>Last-Modified:
>Originator: John Brezak
>Release: current 4/17
>Organization:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John Brezak UUCP: uunet!apollo.hp!brezak
Hewlett Packard/Apollo Internet: brezak@ch.hp.com
300 Apollo Drive Phone: (508) 436-4915
Chelmsford, Massachusetts Fax: (508) 436-5103
>Environment:
System: NetBSD sussex 0.9a ESSEX#16 i386
>Description:
Running testldt repeately can lead to a panic. It may suceed the
first time, the second time it may core dump and the third
cause a panic.
>How-To-Repeat:
run the test in regress.
>Fix:
I believe the panic was fixed on 4/18, with the following commit to
locore.s, but I haven't yet investigated the problem of testldt core
dumping. - mycroft, 23APR1994
----------------------------
revision 1.64
date: 1994/04/18 01:24:09; author: mycroft; state: Exp; lines: +10 -5
Restore the stack before the LDT.
----------------------------
The i386_set_ldt() code tries to force a LDT reload by scheduling a task
switch. But given the short-circuiting in swtch() when switching to the
same task, this will sometimes not happen. The proper fix is to have
i386_set_ldt() reload the LDT before returning. - mycroft, 23APR1994
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->mycroft
Responsible-Changed-By: mycroft
Responsible-Changed-When: Sat Apr 23 16:33:51 PDT 1994
Responsible-Changed-Why:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Sat Apr 23 17:17:52 PDT 1994
State-Changed-Why:
Fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.