From owner-freebsd-stable@FreeBSD.ORG Fri Sep 5 06:47:45 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67E0216A4BF; Fri, 5 Sep 2003 06:47:45 -0700 (PDT) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 587DA43FF2; Fri, 5 Sep 2003 06:47:43 -0700 (PDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.12.9/8.12.8) with ESMTP id h85DleFb016110; Fri, 5 Sep 2003 09:47:40 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.2.0.9.0.20030905094819.04dd3600@209.112.4.2> X-Sender: mdtpop@209.112.4.2 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Fri, 05 Sep 2003 09:49:52 -0400 To: Dmitry Sivachenko , stable@freebsd.org From: Mike Tancsa In-Reply-To: <20030905133800.GA30267@fling-wing.demos.su> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: By Sentex Communications (lava/20020517) Subject: Re: Recent -STABLE panics during boot (100% reproducable) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 13:47:45 -0000 Hi, There was a recent thread about this as well as a work around / patch posted by one of the developer. See the message Date: Mon, 1 Sep 2003 16:13:35 -0600 From: "Kenneth D. Merry" To: stable@freebsd.org Message-ID: <20030901221335.GA66968@panzer.kdm.org> Mime-Version: 1.0 Subject: testers needed for CAM INVARIANTS fix ---Mike At 05:38 PM 05/09/2003 +0400, Dmitry Sivachenko wrote: >Hello! > >Using very recent -STABLE we encounter the following panic during boot: > > >ipfw2 initialized, divert enabled, rule-based forwarding enabled, default >to deny, logging limited to 100 packets/entry by default >Waiting 5 seconds for SCSI devices to settle >SMP: AP CPU #1 Launched! >panic: malloc(M_WAITOK) in interrupt context >mp_lock = 00000001; cpuid = 0; lapic.id = 00000000 >boot() called on cpu#0 > >syncing disks... > > >This is 100% reproducable on two different machines. >I am providing our kernel config file below. If we remove two >INVARIANTS-related options, the panic goes away. > > >machine i386 >cpu I586_CPU >cpu I686_CPU >ident GENERIC >maxusers 0 > >makeoptions DEBUG=-g #Build kernel with gdb(1) debug >symbols >options INVARIANTS >options INVARIANT_SUPPORT > >options INET #InterNETworking >options FFS #Berkeley Fast Filesystem >options FFS_ROOT #FFS usable as root device [keep >this!] >options SOFTUPDATES #Enable FFS soft updates support > >options UFS_DIRHASH > >options PROCFS #Process filesystem >options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] >options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI >options UCONSOLE #Allow users to grab the console >options USERCONFIG #boot -c editor >options VISUAL_USERCONFIG #visual boot -c editor > >options NMBCLUSTERS=12000 > >options SMP # Symmetric MultiProcessor Kernel >options APIC_IO # Symmetric (APIC) I/O > >options P1003_1B >options _KPOSIX_PRIORITY_SCHEDULING >options _KPOSIX_VERSION=199309L > >options HZ=100 > >device isa >device pci > >device fdc0 at isa? port IO_FD1 irq 6 drq 2 >device fd0 at fdc0 drive 0 > >device ahc0 # AHA2940 and onboard AIC7xxx devices >device ahc1 # AHA2940 and onboard AIC7xxx devices > >device scbus # SCSI bus (required) >device da # Direct Access (disks) >device scbus0 at ahc0 bus 0 # Single bus device >device cd # CD > >device pass > >device atkbdc0 at isa? port IO_KBD >device atkbd0 at atkbdc? irq 1 flags 0x1 >device psm0 at atkbdc? irq 12 > >device vga0 at isa? > >device sc0 at isa? flags 0x100 > >device npx0 at nexus? port IO_NPX irq 13 > >device sio0 at isa? port IO_COM1 flags 0x10 irq 4 >device sio1 at isa? port IO_COM2 irq 3 > >device ppc0 at isa? irq 7 >device ppbus # Parallel port bus (required) > >device miibus # MII bus support >device fxp # Intel EtherExpress PRO/100B (82557, 82558) > >pseudo-device loop # Network loopback >pseudo-device ether # Ethernet support >pseudo-device pty # Pseudo-ttys (telnet etc) >pseudo-device vn > >pseudo-device bpf 2 #Berkeley packet filter > >device smbus # Bus support, required for smb below. >device intpm >device ichsmb >device smb > >options ICMP_BANDLIM >options IPFIREWALL #firewall >options IPFIREWALL_VERBOSE #enable logging to syslogd(8) >options IPFIREWALL_FORWARD #enable transparent proxy support >options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity >options IPDIVERT #divert sockets >options IPFW2 > >options MAXDSIZ="(1024*1024*1024)" >options DFLDSIZ="(1024*1024*1024)" > >options INCLUDE_CONFIG_FILE > > >Full boot output: > >Copyright (c) 1992-2003 The FreeBSD Project. >Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. >FreeBSD 4.9-PRERELEASE #0: Fri Sep 5 16:55:35 MSD 2003 > andy@west.demos.su:/mnt/obj/usr/src/sys/MX1 >Timecounter "i8254" frequency 1193182 Hz >CPU: Intel(R) Pentium(R) III CPU family 1266MHz (1266.07-MHz >686-class CPU) > Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 > >Features=0x383fbff >real memory = 1073676288 (1048512K bytes) >avail memory = 1042145280 (1017720K bytes) >Programming 16 pins in IOAPIC #0 >IOAPIC #0 intpin 2 -> irq 0 >Programming 16 pins in IOAPIC #1 >FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs > cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 > cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 > io0 (APIC): apic id: 4, version: 0x000f0011, at 0xfec00000 > io1 (APIC): apic id: 5, version: 0x000f0011, at 0xfec01000 >Preloaded elf kernel "kernel" at 0xc02db000. >Pentium Pro MTRR support enabled >Using $PIR table, 9 entries at 0xc00f5250 >npx0: on motherboard >npx0: INT 16 interface >pcib0: on motherboard >IOAPIC #1 intpin 4 -> irq 2 >IOAPIC #1 intpin 6 -> irq 5 >IOAPIC #1 intpin 15 -> irq 9 >pci0: on pcib0 >pci0: at 3.0 irq 2 >fxp0: port 0xc000-0xc03f mem >0xfe300000-0xfe3fffff,0xfe6fd000-0xfe6fdfff irq 5 at device 4.0 on pci0 >fxp0: Ethernet address 00:30:48:23:9e:df >inphy0: on miibus0 >inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >fxp1: port 0xc400-0xc43f mem >0xfe500000-0xfe5fffff,0xfe6fe000-0xfe6fefff irq 9 at device 6.0 on pci0 >fxp1: Ethernet address 00:30:48:23:9e:e0 >inphy1: on miibus1 >inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >isab0: at device 15.0 on pci0 >isa0: on isab0 >pci0: at 15.1 >pci0: at 15.2 irq 0 >pcib1: on motherboard >IOAPIC #1 intpin 8 -> irq 10 >IOAPIC #1 intpin 12 -> irq 11 >pci1: on pcib1 >fxp2: port 0xe400-0xe41f mem >0xfea00000-0xfeafffff,0xfbdff000-0xfbdfffff irq 10 at device 1.0 on pci1 >fxp2: Ethernet address 00:50:8b:02:2c:80 >inphy2: on miibus2 >inphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >ahc0: port 0xe800-0xe8ff mem >0xfebff000-0xfebfffff irq 11 at device 3.0 on pci1 >aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs >orm0: