belesBSD
2006-Mar-27 13:16 UTC
Panic at startup after buildworld 6.1 PRERELEASE from 5.4 Stable
Hi, I have builded world and kernel with no errors. Also, everything seems to be ok in single user mode with mergemaster etc. then i installed world. However, when i try to boot normally, i get the following panic. The panic is completely reproducable (eg. every time i boot normally, it panics). Before the panic it gives a half "WARNING: Device driver" error, so could i possibly have done something wrong about the modules when building/installing? I've attached the dmesg output.. Thank you Script started on Mon Mar 27 15:28:03 2006 # kgdb kernel.debug /vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: WARNING: Device driver " Fatal trap 12: page fault while in kernel mode fault virtual address = 0x400000 fault code = supervisor read, page not present instruction pointer = 0x20:0xc06a84a4 stack pointer = 0x28:0xe40faaa4 frame pointer = 0x28:0xe40faaa4 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 = 428 (kldload) trap number = 12 panic: page fault Uptime: 8s Dumping 699 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 699MB (178944 pages) 684 668 652 636 620 604 588 572 556 540 524 508 492 476 460 444 428 412 396 380 364 348 332 316 300 284 268 252 236 220 204 188 172 156 140 124 108 92 76 60 44 28 12 #0 doadump () at pcpu.h:165 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) list *0xc06a84a4 0xc06a84a4 is in strlen (/root/stable/sys/src/sys/libkern/strlen.c:41). 36 strlen(str) 37 const char *str; 38 { 39 register const char *s; 40 41 for (s = str; *s; ++s); 42 return(s - str); 43 } 44 (kgdb) backtrace #0 doadump () at pcpu.h:165 #1 0xc0642811 in boot (howto=260) at /root/stable/sys/src/sys/kern/kern_shutdown.c:402 #2 0xc0642aa8 in panic (fmt=0xc0860391 "%s") at /root/stable/sys/src/sys/kern/kern_shutdown.c:558 #3 0xc0817428 in trap_fatal (frame=0xe40faa64, eva=4194304) at /root/stable/sys/src/sys/i386/i386/trap.c:836 #4 0xc081718f in trap_pfault (frame=0xe40faa64, usermode=0, eva=4194304) at /root/stable/sys/src/sys/i386/i386/trap.c:744 #5 0xc0816ded in trap (frame {tf_fs = -1064239096, tf_es = -1064107992, tf_ds = -468778968, tf_edi = 0, tf_esi = 0, tf_ebp = -468735324, tf_isp = -468735344, tf_ebx = -1064863469, tf_edx = 4194304, tf_ecx = 0, tf_eax = 4194304, tf_trapno = 12, tf_err = 0, tf_eip = -1066761052, tf_cs = 32, tf_eflags = 590406, tf_esp = -468735124, tf_ss = -1067068040}) at /root/stable/sys/src/sys/i386/i386/trap.c:434 #6 0xc0806d5a in calltrap () at /root/stable/sys/src/sys/i386/i386/exception.s:139 #7 0xc06a84a4 in strlen (str=0x400000 <Address 0x400000 out of bounds>) at /root/stable/sys/src/sys/libkern/strlen.c:41 #8 0xc065d578 in kvprintf (fmt=0xc0877913 "\" has wrong version %s\n", func=0xc065ccfc <putchar>, arg=0xe40fab88, radix=10, ap=0xe40fabac "?x\207?") at /root/stable/sys/src/sys/kern/subr_prf.c:679 #9 0xc065cc77 in printf ( fmt=0xc08778f9 "WARNING: Device driver \"%s\" has wrong version %s\n") ---Type <return> to continue, or q <return> to quit--- at /root/stable/sys/src/sys/kern/subr_prf.c:296 #10 0xc0619d5f in prep_cdevsw (devsw=0xc4340e00) at /root/stable/sys/src/sys/kern/kern_conf.c:450 #11 0xc0619fa0 in make_dev_credv (devsw=0xc4340e00, minornr=0, cr=0x0, uid=4194304, gid=4194304, mode=4194304, fmt=0xc433fd6c "rtc", ap=0xe40fac18 "\200D\036?$?\017?\225?3?P?\017??\226c?\200D\036?") at /root/stable/sys/src/sys/kern/kern_conf.c:521 #12 0xc061a068 in make_dev (devsw=0xc4340e00, minornr=0, uid=0, gid=0, mode=420, fmt=0xc433fd6c "rtc") at /root/stable/sys/src/sys/kern/kern_conf.c:567 #13 0xc433fb4b in ?? () #14 0xc4340e00 in ?? () #15 0x00000000 in ?? () #16 0x00000000 in ?? () #17 0x00000000 in ?? () #18 0x000001a4 in ?? () #19 0xc433fd6c in ?? () #20 0xc41e4480 in ?? () #21 0xe40fac24 in ?? () #22 0xc433fb95 in ?? () #23 0xe40fac50 in ?? () #24 0xc06396ff in module_register_init (arg=0xe40fac50) at /root/stable/sys/src/sys/kern/kern_module.c:121 Previous frame inner to this frame (corrupt stack?) (kgdb) quit # Script done on Mon Mar 27 15:30:42 2006 -------------- next part -------------- Mar 27 15:04:46 kernel: FreeBSD 6.1-PRERELEASE #0: Mon Mar 27 14:46:31 UTC 2006 Mar 27 15:04:46 kernel: root@:/usr/obj/root/stable/sys/src/sys/NEW Mar 27 15:04:46 kernel: Timecounter "i8254" frequency 1193182 Hz quality 0 Mar 27 15:04:46 kernel: CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz (1995.01-MHz 686-class CPU) Mar 27 15:04:46 kernel: Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Mar 27 15:04:46 kernel: Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Mar 27 15:04:46 kernel: Features2=0x4400<CNTX-ID,<b14>> Mar 27 15:04:46 kernel: real memory = 734003200 (700 MB) Mar 27 15:04:46 kernel: avail memory = 708919296 (676 MB) Mar 27 15:04:46 kernel: npx0: [FAST] Mar 27 15:04:46 kernel: npx0: <math processor> on motherboard Mar 27 15:04:46 kernel: npx0: INT 16 interface Mar 27 15:04:46 kernel: acpi0: <TOSHIB 750> on motherboard Mar 27 15:04:46 kernel: acpi0: Power Button (fixed) Mar 27 15:04:46 kernel: Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 Mar 27 15:04:46 kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0xd808-0xd80b on acpi0 Mar 27 15:04:46 kernel: cpu0: <ACPI CPU> on acpi0 Mar 27 15:04:46 kernel: acpi_perf0: <ACPI CPU Frequency Control> on cpu0 Mar 27 15:04:46 kernel: pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 Mar 27 15:04:46 kernel: pci0: <ACPI PCI bus> on pcib0 Mar 27 15:04:46 kernel: pci0: <base peripheral> at device 0.1 (no driver attached) Mar 27 15:04:46 kernel: pci0: <base peripheral> at device 0.3 (no driver attached) Mar 27 15:04:46 kernel: agp0: <Intel 8285xM (85xGM GMCH) SVGA controller> port 0xeff8-0xefff mem 0xd8000000-0xdfffffff,0xd0000000-0xd007ffff irq 10 at device 2.0 on pci0 Mar 27 15:04:46 kernel: agp0: detected 16252k stolen memory Mar 27 15:04:46 kernel: agp0: aperture size is 128M Mar 27 15:04:46 kernel: pci0: <display> at device 2.1 (no driver attached) Mar 27 15:04:46 kernel: uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xcfe0-0xcfff irq 10 at device 29.0 on pci0 Mar 27 15:04:46 kernel: uhci0: [GIANT-LOCKED] Mar 27 15:04:46 kernel: usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0 Mar 27 15:04:46 kernel: usb0: USB revision 1.0 Mar 27 15:04:46 kernel: uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 Mar 27 15:04:46 kernel: uhub0: 2 ports with 2 removable, self powered Mar 27 15:04:46 kernel: ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> at device 29.7 on pci0 Mar 27 15:04:46 kernel: ehci0: [GIANT-LOCKED] Mar 27 15:04:46 kernel: usb1: EHCI version 1.0 Mar 27 15:04:46 kernel: usb1: wrong number of companions (3 != 1) Mar 27 15:04:46 kernel: usb1: companion controller, 2 ports each: usb0 Mar 27 15:04:46 kernel: usb1: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> on ehci0 Mar 27 15:04:46 kernel: usb1: USB revision 2.0 Mar 27 15:04:46 kernel: uhub1: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 Mar 27 15:04:46 kernel: uhub1: 6 ports with 6 removable, self powered Mar 27 15:04:46 kernel: pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0 Mar 27 15:04:46 kernel: pci1: <ACPI PCI bus> on pcib1 Mar 27 15:04:46 kernel: fxp0: <Intel 82801DB (ICH4) Pro/100 VE Ethernet> port 0xcf40-0xcf7f mem 0xcffff000-0xcfffffff irq 11 at device 8.0 on pci1 Mar 27 15:04:46 kernel: miibus0: <MII bus> on fxp0 Mar 27 15:04:46 kernel: inphy0: <i82562ET 10/100 media interface> on miibus0 Mar 27 15:04:46 kernel: inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Mar 27 15:04:46 kernel: fxp0: Ethernet address: 00:08:0d:f4:7b:5e Mar 27 15:04:46 kernel: cbb0: <ToPIC100 PCI-CardBus Bridge> at device 11.0 on pci1 Mar 27 15:04:46 kernel: cardbus0: <CardBus bus> on cbb0 Mar 27 15:04:46 kernel: pccard0: <16-bit PCCard bus> on cbb0 Mar 27 15:04:46 kernel: isab0: <PCI-ISA bridge> at device 31.0 on pci0 Mar 27 15:04:46 kernel: isa0: <ISA bus> on isab0 Mar 27 15:04:46 kernel: atapci0: <Intel ICH4 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xbfa0-0xbfaf irq 11 at device 31.1 on pci0 Mar 27 15:04:46 kernel: ata0: <ATA channel 0> on atapci0 Mar 27 15:04:46 kernel: ata1: <ATA channel 1> on atapci0 Mar 27 15:04:46 kernel: pci0: <multimedia, audio> at device 31.5 (no driver attached) Mar 27 15:04:46 kernel: pci0: <simple comms, generic modem> at device 31.6 (no driver attached) Mar 27 15:04:46 kernel: acpi_lid0: <Control Method Lid Switch> on acpi0 Mar 27 15:04:46 kernel: battery0: <ACPI Control Method Battery> on acpi0 Mar 27 15:04:46 kernel: acpi_button0: <Power Button> on acpi0 Mar 27 15:04:46 kernel: acpi_acad0: <AC Adapter> on acpi0 Mar 27 15:04:46 kernel: acpi_tz0: <Thermal Zone> on acpi0 Mar 27 15:04:46 kernel: atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 Mar 27 15:04:46 kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0 Mar 27 15:04:46 kernel: kbd0 at atkbd0 Mar 27 15:04:46 kernel: atkbd0: [GIANT-LOCKED] Mar 27 15:04:46 kernel: psm0: <PS/2 Mouse> irq 12 on atkbdc0 Mar 27 15:04:46 kernel: psm0: [GIANT-LOCKED] Mar 27 15:04:46 kernel: psm0: model GlidePoint, device ID 0 Mar 27 15:04:46 kernel: pmtimer0 on isa0 Mar 27 15:04:46 kernel: orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xe0000-0xeffff on isa0 Mar 27 15:04:46 kernel: ppc0: parallel port not found. Mar 27 15:04:46 kernel: sc0: <System console> at flags 0x100 on isa0 Mar 27 15:04:46 kernel: sc0: VGA <16 virtual consoles, flags=0x300> Mar 27 15:04:46 kernel: sio0: configured irq 4 not in bitmap of probed irqs 0 Mar 27 15:04:46 kernel: sio0: port may not be enabled Mar 27 15:04:46 kernel: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 Mar 27 15:04:46 kernel: sio0: type 8250 or not responding Mar 27 15:04:46 kernel: sio1: configured irq 3 not in bitmap of probed irqs 0 Mar 27 15:04:46 kernel: sio1: port may not be enabled Mar 27 15:04:46 kernel: vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Mar 27 15:04:46 kernel: ums0: vendor 0x1241 product 0x1111, rev 1.00/1.00, addr 2, iclass 3/1 Mar 27 15:04:46 kernel: ums0: 3 buttons and Z dir. Mar 27 15:04:46 kernel: Timecounter "TSC" frequency 1995011804 Hz quality 800 Mar 27 15:04:46 kernel: Timecounters tick every 1.000 msec Mar 27 15:04:46 kernel: ad0: 38154MB <TOSHIBA MK4021GAS GA224A> at ata0-master UDMA100 Mar 27 15:04:46 kernel: acd0: CDRW <TOSHIBA DVD-ROM SD-R2412/1330> at ata1-master UDMA33 Mar 27 15:04:46 kernel: Trying to mount root from ufs:/dev/ad0s2a
Kris Kennaway
2006-Mar-27 17:14 UTC
Panic at startup after buildworld 6.1 PRERELEASE from 5.4 Stable
On Mon, Mar 27, 2006 at 04:16:14PM +0300, belesBSD wrote:> Hi, > > I have builded world and kernel with no errors. Also, everything seems to > be ok in single user mode with mergemaster etc. then i installed world. > However, > when i try to boot normally, i get the following panic. The panic is > completely > reproducable (eg. every time i boot normally, it panics). > Before the panic it gives a half "WARNING: Device driver" error, so > could i possibly have done something > wrong about the modules when building/installing? I've attached the > dmesg output..Yes, if you build modules with the old source then you're likely to get panics. Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060327/1e247792/attachment.pgp