From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 30 05:43:52 2008 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 439D7106566B for ; Sun, 30 Mar 2008 05:43:52 +0000 (UTC) (envelope-from pmc@citylink.dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3CFA08FC15 for ; Sun, 30 Mar 2008 05:43:51 +0000 (UTC) (envelope-from pmc@citylink.dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp@uucp.dinoex.sub.de [194.45.71.2] (may be forged)) by uucp.dinoex.sub.de (8.14.1/8.14.0) with ESMTP id m2U5DD09075792; Sun, 30 Mar 2008 07:13:13 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) Received: from citylink.dinoex.sub.org (uucp@localhost) by uucp.dinoex.sub.de (8.14.1/8.14.0/Submit) with UUCP id m2U5DD8q075791; Sun, 30 Mar 2008 07:13:13 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by citylink.dinoex.sub.de (8.14.2/8.14.2) with ESMTP id m2U51Wqx024036; Sun, 30 Mar 2008 07:01:32 +0200 (CEST) (envelope-from peter@gate.oper.dinoex.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by gate.oper.dinoex.org (8.14.2/8.14.2) with ESMTP id m2U4xkoK023804; Sun, 30 Mar 2008 06:59:47 +0200 (CEST) (envelope-from peter@gate.oper.dinoex.org) Received: (from peter@localhost) by gate.oper.dinoex.org (8.14.2/8.14.2/Submit) id m2U4xkOY023803; Sun, 30 Mar 2008 06:59:46 +0200 (CEST) (envelope-from peter) Date: Sun, 30 Mar 2008 06:59:46 +0200 From: Peter Much To: vwe@FreeBSD.org Message-ID: <20080330045946.GA5875@gate.oper.dinoex.org> References: <200803291551.m2TFpZm1069045@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803291551.m2TFpZm1069045@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Milter: Spamilter (Reciever: uucp.dinoex.sub.de; Sender-ip: 194.45.71.2; Sender-helo: uucp.dinoex.sub.de; ) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (uucp.dinoex.sub.de [194.45.71.2]); Sun, 30 Mar 2008 07:13:14 +0200 (CEST) Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/122126: [ed] [panic] panic when using WD-8013 with ed(4) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2008 05:43:52 -0000 On Sat, Mar 29, 2008 at 03:51:35PM +0000, vwe@FreeBSD.org wrote: ! please show us the panic and a backtrace. Also please include the kernel ! config modifications you're using (a diff would be fine). Here is the panic and backtrace: >Fatal trap 12: page fault while in kernel mode >fault virtual address = 0x30c00008 >fault code = supervisor read, page not present >instruction pointer = 0x20:0xc052f98c >stack pointer = 0x28:0xcbfe1cf8 >frame pointer = 0x28:0xcbfe1d0c >code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 >processor eflags = interrupt enabled, resume, IOPL = 0 >current process = 30 (irq11: ed0) >trap number = 12 >panic: page fault >Uptime: 4m31s >Cannot dump. No dump device defined. >Automatic reboot in 3600 seconds - press a key on the console to abort >KDB: enter: manual escape to debugger >[thread pid 30 tid 100035] >Stopped at kdb_enter+0x2c: leave >db> bt >Tracing pid 30 tid 100035 td 0xc2180480 >kdb_enter(c0780f9a,28,28,1,c0828880,...) at kdb_enter+0x2c >scgetc(c0815780,1,c07fd760,4,c2146ac0,...) at scgetc+0x302 >sccngetch(c07c57c0,8c84,cbfe1bdc,c0546e48,186a0,...) at sccngetch+0xae >cncheckc(186a0,c2167000,cbfe1c14,c05469ae,0,...) at cncheckc+0x37 >shutdown_panic(0,104,c217628c,c216700c,c23e938c,...) at shutdown_panic+0x3c >boot(104,0,cbfe1cb8,c,cbfe1c5c,...) at boot+0x316 >panic(c074f3cc,c07844e5,30c00008,0,fffff,...) at panic+0xb8 >trap_fatal(c2180480,c07f63e0,30c00000,0,cbfe1cb8,...) at trap_fatal+0x225 >trap_pfault(30c00008) at trap_pfault+0x197 >trap(c2180008,28,78310028,4,c2176780,...) at trap+0x329 >calltrap() at calltrap+0x5 >--- trap 0xc, eip = 0xc052f98c, esp = 0xcbfe1cf8, ebp = 0xcbfe1d0c --- >ithread_loop(c22bf500,cbfe1d38,c22bf500,c052f874,...) at ithread_loop+0x118 >fork_exit(c052f874,c22bf500,cbfe1d38) at fork_exit + 0x4f >fork_trampoline() at fork_trampoline + 0x8 >--- trap 0x1, eip = 0, esp = 0xcbfe1d6c, ebp = 0 --- Now for a config diff, the problem is that my config is inherited (since RELEASE_2.1.0 - as the whole machine is just growing and never full replaced) - it isn't similar in sequence to today's GENERIC. And as I mentioned, I have tried to boot GENERIC and there the panic does happen equally. I didn't send the PR from GENERIC, because I essentially consider it harmful to boot GENERIC to anywhere beyond singleuser; and anyway it is impossible to get debugging information from GENERIC since in case of a panic it overfills the screen and then just freezes and waits for a hard powercycle. This is what remains on the screen in that case: >frame pointer = 0x28:0xcbfe2cec >code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 >processor eflags = interrupt enabled, resume, IOPL = 0 >current process = 30 (irq11: ed0) >trap number = 12 >panic: page fault >Uptime: 8m15s >kernel trap 12 with interrupts disabled > > >Fatal trap 12: page fault while in kernel mode >fault virtual address = 0x7010 >fault code = supervisor read, page not present >instruction pointer = 0x20:0xc06b15ed >stack pointer = 0x28:0xcbfe27d0 >frame pointer = 0x28:0xcbfe27d8 >code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 >processor eflags = resume, IOPL = 0 >current process = 30 (irq11: ed0) >trap number = 12 >panic: page fault >Uptime: 8m16s Anyway, here is some sorted diff between GENERIC and my custom kernel: --- GENERIC 2008-03-30 04:35:06.000000000 +0200 +++ E1R63V1 2008-03-30 04:35:16.000000000 +0200 -cpu I486_CPU -cpu I586_CPU -device aac # Adaptec FSA RAID -device aacp # SCSI passthrough for aac (requires CAM) -device adv # Advansys SCSI adapters -device adw # Advansys wide SCSI adapters +device "i4b" # Layer 4 +device "i4bctl" # Userland control +device "i4bing" # netgraph interface +device "i4bipr" # IP over raw HDLC +device "i4bq921" # Layer 2 +device "i4bq931" # Layer 3 +device "i4brbch" # raw ChB access +device "i4btel" # telephony +device "i4btrc" # Userland tracing +device adv # Advansys -device aha # Adaptec 154x SCSI adapters -device ahb # EISA AHA1742 family -device ahc # AHA2940 and onboard AIC7xxx devices -device ahd # AHA39320/29320 and onboard AIC79xx devices -device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60. -device amd # AMD 53C974 (Tekram DC-390(T)) -device amr # AMI MegaRAID -device an # Aironet 4500/4800 802.11 wireless NICs. -device apic # I/O APIC -device arcmsr # Areca SATA II RAID -device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID +device apic # I/O APIC -device atapifd # ATAPI floppy drives -device atapist # ATAPI tape drives -device ataraid # ATA RAID drives -device ath # Atheros pci/cardbus NIC's -device ath_hal # Atheros HAL (Hardware Access Layer) -device ath_rate_sample # SampleRate tx rate control for ath -device aue # ADMtek USB Ethernet -device awi # BayStack 660 and others -device axe # ASIX Electronics USB Ethernet -device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet -device bfe # Broadcom BCM440x 10/100 Ethernet -device bge # Broadcom BCM570xx Gigabit Ethernet -device bt # Buslogic/Mylex MultiMaster SCSI adapters -device cardbus # CardBus (32-bit) bus -device cbb # cardbus (yenta) bridge -device cdce # Generic USB over Ethernet -device ciss # Compaq Smart RAID 5* -device cs # Crystal Semiconductor CS89x0 NIC -device cue # CATC USB Ethernet -device dc # DEC/Intel 21143 and various workalikes -device dpt # DPT Smartcache III, IV - See NOTES for options -device eisa -device em # Intel PRO/1000 adapter Gigabit Ethernet Card -device ep # Etherlink III based cards -device ex # Intel EtherExpress Pro/10 and Pro/10+ -device fe # Fujitsu MB8696x based cards -device firewire # FireWire bus code -device fwe # Ethernet over FireWire (non-standard!) -device fxp # Intel EtherExpress PRO/100B (82557, 82558) +device fxp # Compaq dual NC3134 -device hptmv # Highpoint RocketRAID 182x -device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx -device ida # Compaq Smart RAID -device ie # EtherExpress 8/16, 3C507, StarLAN 10 etc. -device iir # Intel Integrated RAID -device ips # IBM (Adaptec) ServeRAID +device io # I/O device +device isa +device isic # Chipset -device ixgb # Intel PRO/10GbE Ethernet Card -device kbdmux # keyboard multiplexer -device kue # Kawasaki LSI USB Ethernet -device lge # Level 1 LXT1001 gigabit Ethernet -device lnc # NE2100, NE32-VL Lance Ethernet cards -device mfi # LSI MegaRAID SAS +device mem # Memory and kernel memory devices -device mlx # Mylex DAC960 family -device mly # Mylex AcceleRAID/eXtremeRAID -device mpt # LSI-Logic MPT-Fusion -device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet -device ncv # NCR 53C500 -device nge # NatSemi DP83820 gigabit Ethernet -device nsp # Workbit Ninja SCSI-3 -device nve # nVidia nForce MCP on-board Ethernet Networking +device nmdm # null modem pair +device npx -device pccard # PC Card (16-bit) bus -device pcn # AMD Am79C97x PCI 10/100(precedence over 'lnc') -device psm # PS/2 mouse -device pst # Promise Supertrak SX6000 -device ral # Ralink Technology RT2500 wireless NICs. -device re # RealTek 8139C+/8169/8169S/8110S -device rr232x # Highpoint RocketRAID 232x -device rue # RealTek RTL8150 USB Ethernet -device sbp # SCSI over FireWire (Requires scbus and da) -device sf # Adaptec AIC-6915 (``Starfire'') -device sis # Silicon Integrated Systems SiS 900/SiS 7016 -device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet -device sn # SMC's 9000 series of Ethernet chips -device splash # Splash screen and screen saver support -device ste # Sundance ST201 (D-Link DFE-550TX) -device stg # TMC 18C30/18C50 -device stge # Sundance/Tamarack TC9021 gigabit Ethernet -device ti # Alteon Networks Tigon I/II gigabit Ethernet -device tl # Texas Instruments ThunderLAN -device trm # Tekram DC395U/UW/F DC315U adapters -device twa # 3ware 9000 series PATA/SATA RAID -device twe # 3ware ATA RAID -device tx # SMC EtherPower II (83c170 ``EPIC'') -device txp # 3Com 3cR990 (``Typhoon'') +device ucom # prereq fuer uplcom -device ural # Ralink Technology RT2500USB wireless NICs +device uplcom # Digitus/Prolific USB-to-serial-adapt. -device vge # VIA VT612x gigabit Ethernet -device vr # VIA Rhine, Rhine II -device vx # 3Com 3c590, 3c595 (``Vortex'') -device wb # Winbond W89C840F -device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. -device wlan # 802.11 support -device wlan_ccmp # 802.11 CCMP support -device wlan_tkip # 802.11 TKIP support -device wlan_wep # 802.11 WEP support -device xe # Xircom pccard Ethernet -ident GENERIC +ident E1R63V1 -makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols +options ACCEPT_FILTER_DATA +options ACCEPT_FILTER_HTTP -options ADAPTIVE_GIANT # Giant mutex is adaptive. -options AHC_REG_PRETTY_PRINT # Print register bitfields in debug -options AHD_REG_PRETTY_PRINT # Print register bitfields in debug -options ATA_STATIC_ID # Static device numbering +options AUTO_EOI_1 +options COMPAT_AOUT +options COMPAT_LINUX +options DDB +options DUMMYNET +options INCLUDE_CONFIG_FILE +options IPDIVERT +options IPFIREWALL +options IPFIREWALL_FORWARD +options IPR_LOG=32 +options IPR_VJ +options IPSEC +options IPSEC_ESP +options KDB +options KDB_UNATTENDED +options LINPROCFS +options LINSYSFS -options MD_ROOT # MD is a potential root device +options MSGBUF_SIZE=61440 # viele gvinum und ipfw Zeilen! +options NETGRAPH +options NETGRAPH_ETHER +options NETGRAPH_PPPOE +options NETGRAPH_SOCKET +options NI4BING=2 +options NI4BIPR=2 +options NI4BRBCH=2 +options NI4BTEL=2 +options NI4BTRC=2 -options NFS_ROOT # NFS usable as /, requires NFSCLIENT +options NULLFS # NULL filesystem +options PANIC_REBOOT_WAIT_TIME=3600 -options PREEMPTION # Enable kernel thread preemption +options PREEMPTION -options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI +options SCSI_DELAY=2000 # Delay (in ms) before probing SCSI +options SW_WATCHDOG +options TEL_S0_16_3 Further, here are the modifications in /boot: /boot/loader.conf: >loader_logo="beastie" >geom_vinum_load="YES" /boot/devices_hints: >hint.ed.0.at="isa" >hint.ed.0.disabled="0" >hint.ed.0.port="0x300" >hint.ed.0.irq="11" >hint.ed.0.maddr="0xcc000" >hint.isic.0.at="isa" >hint.isic.0.port="0xd80" >hint.isic.0.irq="12" >hint.isic.0.flags="3" I should also mention that I already have done these steps: - reboot the old OS version and check if it still works there, to rule out a sudden hw failure. - try "minimal config": remove all add-on hardware except the failing part. The board itself is an ASUS P2B, and the bootlog can be sent to interested investigators, but will not be published, for security reasons.