NetBSD Problem Report #9368

Received: (qmail 5996 invoked from network); 7 Feb 2000 20:22:35 -0000
Message-Id: <200002072022.MAA09724@nbwww.isc.org>
Date: Mon, 7 Feb 2000 12:22:34 -0800 (PST)
From: cgd@netbsd.org
Reply-To: cgd@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: i386 kernel trap in gdt_compact()
X-Send-Pr-Version: www-1.0

>Number:         9368
>Category:       port-i386
>Synopsis:       i386 kernel trap in gdt_compact()
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mycroft
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 07 12:24:00 +0000 2000
>Closed-Date:    Sat Jul 03 20:22:17 +0000 2004
>Last-Modified:  Sat Jul 03 20:22:17 +0000 2004
>Originator:     Chris Demetriou
>Release:        1.4-branch sources (post 1.4.1) from mid-September, 1999
>Organization:
>Environment:
NetBSD bacon 1.4.1 NetBSD 1.4.1 (GENERIC_CGD) #16: Thu Sep 16 18:52:54 PDT 1999     cgd@bacon.:/a/src/src-1-4-branch/sys/arch/i386/compile/GENERIC_CGD i386
>Description:
i386 kernel crashed while compiling kde.  looks like pkgsrc went
nuts spawning recursive shells/sub-makes, and the system ran
out of processes according to the dmesg output.  Then it trapped,
and dumped core.

dmesg output from right before death:

proc: table is full
proc: table is full
proc: table is full
fatal page fault in supervisor mode
trap type 6 code 0 eip f0233c98 cs 8 eflags 10286 cr2 fccd2068 cpl 0
panic: trap
syncing disks... 24 24 18 2 done

that eip is in gdt_compact().

>How-To-Repeat:
Unknown.  Run out of processes on an i386 system?  I'm gonna try
it again, with a kernel from the latest 1.4-branch sources.

More details available upon request, including kcore to trustable
hackers, if need be.
>Fix:
unknown.

>Release-Note:
>Audit-Trail:

From: cgd@netbsd.org (Chris G. Demetriou)
To: gnats-bugs@gnats.netbsd.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: port-i386/9368: i386 kernel trap in gdt_compact()
Date: 07 Feb 2000 14:39:57 -0800

 cgd@netbsd.org writes:
 > >How-To-Repeat:
 > Unknown.  Run out of processes on an i386 system?  I'm gonna try
 > it again, with a kernel from the latest 1.4-branch sources.

 This would seem to be a pretty good method.  I just tripped the bug
 again (doing the same thing, this time intentionally), after having
 built a kernel with up to date 1.4-branch sources (as of about noon
 PST feb 7, 2000).

 I built the kernel with debugging symbols this time, to get more of a
 clue about the problem.

 The traceback (down to the trap, because that's all gdb seems willing
 to do -- see pr 9367 8-) looked like:

 #0  0xf023ea26 in sys_sysarch () at ../../../../arch/i386/i386/trap.c:250
 #1  0xf02381b7 in cpu_reboot (howto=0x100, bootstr=0x0)
     at ../../../../arch/i386/i386/machdep.c:1353
 #2  0xf0189aa8 in log (level=0xf023ea26, fmt=0x0)
     at ../../../../kern/subr_prf.c:212
 #3  0xf023ecb5 in trap (frame={tf_es = 0xf0170010, tf_ds = 0x10, tf_edi = 0xb, 
       tf_esi = 0x3, tf_ebp = 0xf0386ef4, tf_ebx = 0x102, tf_edx = 0x100, 
       tf_ecx = 0xfcc9e000, tf_eax = 0xfcca1000, tf_trapno = 0x6, tf_err = 0x0, 
       tf_eip = 0xf02369d0, tf_cs = 0x8, tf_eflags = 0x10286, tf_esp = 0x102, 
       tf_ss = 0xf0385000, tf_vm86_es = 0xfce7ec4c, tf_vm86_ds = 0x5d, 
       tf_vm86_fs = 0x58, tf_vm86_gs = 0xf01841bb})
     at ../../../../arch/i386/i386/trap.c:310


 To track down the problem further, I then did:

 (gdb) list *0xf02369d0
 0xf02369d0 is in gdt_compact (../../../../arch/i386/i386/gdt.c:124).
 119             struct pcb *pcb;
 120             int slot = NGDT, oslot;
 121
 122             for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
 123                     pcb = &p->p_addr->u_pcb;
 124                     oslot = IDXSEL(pcb->pcb_tss_sel);
 125                     if (oslot >= gdt_count) {
 126                             while (gdt[slot].sd.sd_type != SDT_SYSNULL) {
 127                                     if (++slot >= gdt_count)
 128                                             panic("gdt_compact botch 1");



 As before, the last few messages on console (kernel printfs) were:

 boot device: sd0
 root on sd0a dumps on sd0b
 root file system type: ffs
 proc: table is full
 proc: table is full
 proc: table is full
 proc: table is full
 proc: table is full
 proc: table is full
 proc: table is full
 proc: table is full
 proc: table is full
 proc: table is full
 proc: table is full
 fatal page fault in supervisor mode
 trap type 6 code 0 eip f02369d0 cs 8 eflags 10286 cr2 fcc9e068 cpl 0
 panic: trap
 syncing disks... 4 4 done



 cgd
 -- 
 Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
 Disclaimer: Not speaking for NetBSD, just expressing my own opinion.

From: Manuel Bouyer <bouyer@antioche.lip6.fr>
To: cgd@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/9368: i386 kernel trap in gdt_compact()
Date: Tue, 8 Feb 2000 18:53:46 +0100

 On Mon, Feb 07, 2000 at 12:22:34PM -0800, cgd@netbsd.org wrote:
 > 
 > proc: table is full
 > proc: table is full
 > proc: table is full
 > fatal page fault in supervisor mode
 > trap type 6 code 0 eip f0233c98 cs 8 eflags 10286 cr2 fccd2068 cpl 0
 > panic: trap
 > syncing disks... 24 24 18 2 done
 > 
 > that eip is in gdt_compact().

 I got something similar on a 1.4.1+ system (-release, but I don't remember the
 exact date) with a botched printcap which spanned an infinite number of
 lpd processes.

 --
 Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
 --
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Sat Jul 3 20:20:28 UTC 2004 
State-Changed-Why:  
This was fixed a long time ago. 


Responsible-Changed-From-To: port-i386-maintainer->mycroft 
Responsible-Changed-By: mycroft 
Responsible-Changed-When: Sat Jul 3 20:20:28 UTC 2004 
Responsible-Changed-Why:  
. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.