From owner-freebsd-i386@FreeBSD.ORG Fri Feb 24 21:20:05 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 843CD16A420 for ; Fri, 24 Feb 2006 21:20:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05AC043D48 for ; Fri, 24 Feb 2006 21:20:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1OLK4ve024010 for ; Fri, 24 Feb 2006 21:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1OLK4P7024009; Fri, 24 Feb 2006 21:20:04 GMT (envelope-from gnats) Resent-Date: Fri, 24 Feb 2006 21:20:04 GMT Resent-Message-Id: <200602242120.k1OLK4P7024009@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lonnie Olson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A589716A420 for ; Fri, 24 Feb 2006 21:10:39 +0000 (GMT) (envelope-from fungus@aros.net) Received: from phobos.aros.net (phobos.aros.net [66.219.192.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id B180E43D6A for ; Fri, 24 Feb 2006 21:10:33 +0000 (GMT) (envelope-from fungus@aros.net) Received: from phobos.aros.net (localhost.aros.net [127.0.0.1]) by localhost.aros.net (8.13.4/8.13.1) with ESMTP id k1OLAXfo016709 for ; Fri, 24 Feb 2006 14:10:33 -0700 (MST) (envelope-from fungus@phobos.aros.net) Received: (from fungus@localhost) by phobos.aros.net (8.13.4/8.13.1/Submit) id k1OLAXFi016707; Fri, 24 Feb 2006 14:10:33 -0700 (MST) (envelope-from fungus) Message-Id: <200602242110.k1OLAXFi016707@phobos.aros.net> Date: Fri, 24 Feb 2006 14:10:33 -0700 (MST) From: Lonnie Olson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: i386/93809: panic: could not copy LDT on RELENG_5_3 through RELENG_5 X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lonnie Olson List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 21:20:05 -0000 >Number: 93809 >Category: i386 >Synopsis: panic: could not copy LDT on RELENG_5_3 through RELENG_5 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 24 21:20:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Lonnie Olson >Release: FreeBSD 5.5-PRERELEASE i386 >Organization: ArosNet >Environment: System: FreeBSD phobos.aros.net 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #1: Thu Feb 23 14:24:58 MST 2006 root@phobos.aros.net:/usr/obj/usr/src/sys/PHOBOS i386 CPU: AMD Opteron(tm) Processor 246 (1991.25-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0xf5a Stepping = 10 Features=0x78bfbff AMD Features=0xe0500000 real memory = 2147418112 (2047 MB) avail memory = 2095964160 (1998 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 >Description: This machine and 2 others like it, panic after a while. A better description of the problem was given by Howard.Wang in the freebsd-stable list last year. http://lists.freebsd.org/pipermail/freebsd-stable/2005-August/017567.html I can not upgrade this machine to -CURRENT. Is there a fix for this in RELENG_5 anytime soon? >How-To-Repeat: This code can trigger tha panic on my machine with only 100 processes. //Below is a copy of the trigger program (executed as "./chain_fork 100 1 15") /* chain_fork.c 1.0 by Howard. */ #include #include #include #include #include int main(int argc, char** argv) { int N,M,T; int pid; char *p; int j; if(argc!=4) { printf("Usage: %s \n",argv[0]); return (0); } N = atoi(argv[1]); //How many depth. M = atoi(argv[2])*1024*1024; //Size per Proc. T = atoi(argv[3]); //Life per Proc. while(N>0) { pid = fork(); if (pid != 0) { p = malloc(M); memset(p,0,M); sleep(T); exit(0); } else { printf("I forked a child No.%d\n",N); N--; } } return (0); } /* end of file */ >Fix: Not sure here. Howard mentioned it was fixed in 7.0-CURRENT. Perhaps it could be backported to RELENG_5?? Pretty please with sugar on top. >Release-Note: >Audit-Trail: >Unformatted: