Date: Mon, 23 Jul 2007 15:20:59 +0200 From: Karsten Rothemund <karsten@photor.de> To: freebsd-stable@freebsd.org Subject: starting hald causes panic Message-ID: <20070723132059.GA62722@www.photor.de>
next in thread | raw e-mail | index | archive | help
--k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello *, don't know, if I am right here. I've already asked that on the gnome-list some time ago, but they told me, it is a matter of the kernel). Now I've recompiled the kernel with debugging info: uname -a FreeBSD worf.mydomain.home 6.2-STABLE FreeBSD 6.2-STABLE #35: Thu Jul 19 22:04:13 CEST 2007 root@worf.mydomain.home:/usr/obj/usr/src/sys/ATHLON i386=20 The problem is, every time I try to start hald (e.g. /usr/local/etc/rc.d/hald forcestart) I get a kernel panic. =20 I have a backtrace here: -----8<----------8<----------8<----------8<----------8<----- worf# kgdb kernel.debug vmcore.1 kgdb: kvm_nlist(_stopped_cpus): kgdb: kvm_nlist(_stoppcbs): =20 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:= Un fined 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 condition= s. 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:=20 <118>Jul 19 23:03:48 worf init: /bin/sh on /etc/rc.shutdown terminated abno= rma y, going to single user mode <118>Jul 19 23:03:48 worf syslogd: exiting on signal 15 <118>Enter full pathname of shell or RETURN for /bin/sh: <118>#=20 <118>/dev/ad0s1a on / (ufs, local) <118>devfs on /dev (devfs, local) <118>/dev/ufs/usr on /usr (ufs, local, soft-updates) <118>/dev/ufs/backup on /usr/Backup (ufs, local, soft-updates) <118>/dev/ufs/var on /var (ufs, local, soft-updates) <118>/dev/ufs/home on /usr/home (ufs, local, soft-updates) <118>/dev/ufs/media on /usr/media (ufs, local, soft-updates) <118>/dev/ufs/ports on /usr/ports (ufs, local, soft-updates) <118>/dev/ufs/home2 on /usr/home2 (ufs, local, soft-updates) <118>/dev/md0 on /tmp (ufs, local, soft-updates) <118>procfs on /proc (procfs, local) <118># <118># <118># <118># <118># <118>/dev/ad0s1a on / (ufs, local) <118>devfs on /dev (devfs, local) <118>/dev/ufs/usr on /usr (ufs, local, soft-updates) <118>/dev/ufs/backup on /usr/Backup (ufs, local, soft-updates) <118>/dev/ufs/var on /var (ufs, local, soft-updates) <118>/dev/md0 on /tmp (ufs, local, soft-updates) <118>procfs on /proc (procfs, local) <118># <118># <118>Starting hald. Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x54 fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc0442fd5 stack pointer =3D 0x28:0xdd710ad8 frame pointer =3D 0x28:0xdd710ae8 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 1180 (hald-probe-storage) trap number =3D 12 panic: page fault Uptime: 15m18s Dumping 511 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 511MB (130800 pages) 495 479 463 447 431 415 399 383 367 351 335= 31 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:165 #1 0xc04d8112 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:4= 09 #2 0xc04d83a8 in panic (fmt=3D0xc06111ed "%s") at /usr/src/sys/kern/kern_shutdown.c:565 #3 0xc05f0a64 in trap_fatal (frame=3D0xdd710a98, eva=3D84) at /usr/src/sys/i386/i386/trap.c:837 #4 0xc05f07cb in trap_pfault (frame=3D0xdd710a98, usermode=3D0, eva=3D84) at /usr/src/sys/i386/i386/trap.c:745 #5 0xc05f0429 in trap (frame=3D {tf_fs =3D 8, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D 0, tf_esi =3D -1= 018177536, tf_ebp =3D -579794200, tf_isp =3D -579794236, tf_ebx =3D -101958= 9920, tf_edx =3D -1020556800, tf_ecx =3D 384750786, tf_eax =3D 0, tf_trapno= =3D 12, tf_err =3D 0, tf_eip =3D -1069273131, tf_cs =3D 32, tf_eflags =3D = 66182, tf_esp =3D -1002170368, tf_ss =3D 0}) at /usr/src/sys/i386/i386/trap.c:435 #6 0xc05de46a in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc0442fd5 in amdexecutesrb (arg=3D0xc33a4ae0, dm_segs=3D0xc32b8a00, ns= eg=3D1, error=3D0) at /usr/src/sys/dev/amd/amd.c:314 #8 0xc05dbffd in bus_dmamap_load (dmat=3D0xc335e800, map=3D0x0, buf=3D0xd3= 0d34a0, buflen=3D34, callback=3D0xc0442fc0 <amdexecutesrb>, callback_arg=3D0xc3= 3a4ae0, flags=3D0) at /usr/src/sys/i386/i386/busdma_machdep.c:736 #9 0xc04432d0 in amd_action (psim=3D0xc33a4ae0, pccb=3D0xc34fd800) at /usr/src/sys/dev/amd/amd.c:440 #10 0xc0432675 in xpt_run_dev_sendq (bus=3D0xc337dd80) at /usr/src/sys/cam/cam_xpt.c:4059 #11 0xc0431b5d in xpt_action (start_ccb=3D0xc34fd800) at /usr/src/sys/cam/cam_xpt.c:3153 #12 0xc042e81a in cam_periph_runccb (ccb=3D0xc34fd800, error_routine=3D0, camflags=3DCAM_RETRY_SELTO, sense_flags=3D1, ds=3D0xc34e40f0) at /usr/src/sys/cam/cam_periph.c:861 #13 0xc043d7f0 in passsendccb (periph=3D0x0, ccb=3D0xc34fd800, inccb=3D0xc3= 3d3c00) at /usr/src/sys/cam/scsi/scsi_pass.c:596 #14 0xc043d710 in passioctl (dev=3D0x0, cmd=3D3274410496, addr=3D0xc34fd800= "", flag=3D3, td=3D0xc3522c00) at /usr/src/sys/cam/scsi/scsi_pass.c:513 #15 0xc04aeede in giant_ioctl (dev=3D0xc351dc00, cmd=3D3261076738, data=3D0xc33d3c00 "", fflag=3D3, td=3D0xc3522c00) at /usr/src/sys/kern/kern_conf.c:306 #16 0xc0499363 in devfs_ioctl_f (fp=3D0xc3aef870, com=3D3261076738, data=3D0xc33d3c00, cred=3D0xc32bbd80, td=3D0xc3522c00) at /usr/src/sys/fs/devfs/devfs_vnops.c:479 #17 0xc04fa7a5 in ioctl (td=3D0xc3522c00, uap=3D0xdd710d04) at file.h:265 #18 0xc05f0d7b in syscall (frame=3D {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D -1077943952, tf= _esi =3D 134526916, tf_ebp =3D -1077943976, tf_isp =3D -579793564, tf_ebx = =3D 673522672, tf_edx =3D 34, tf_ecx =3D 134590464, tf_eax =3D 54, tf_trapn= o =3D 12, tf_err =3D 2, tf_eip =3D 674433399, tf_cs =3D 51, tf_eflags =3D 5= 34, tf_esp =3D -1077944004, tf_ss =3D 59}) at /usr/src/sys/i386/i386/trap.c:983 #19 0xc05de4bf in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s= :200 #20 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) f 7 #7 0xc0442fd5 in amdexecutesrb (arg=3D0xc33a4ae0, dm_segs=3D0xc32b8a00, ns= eg=3D1, error=3D0) at /usr/src/sys/dev/amd/amd.c:314 314 ccb =3D srb->pccb; (kgdb) l 309 union ccb *ccb; 310 struct amd_softc *amd; 311 int s; 312 313 srb =3D (struct amd_srb *)arg; 314 ccb =3D srb->pccb; 315 amd =3D (struct amd_softc *)ccb->ccb_h.ccb_amd_ptr; 316 317 if (error !=3D 0) { 318 if (error !=3D EFBIG) (kgdb) i loc srb =3D (struct amd_srb *) 0xc33a4ae0 ccb =3D (union ccb *) 0x0 amd =3D (struct amd_softc *) 0xc34fd800 (kgdb) -----8<----------8<----------8<----------8<----------8<----- I have looked into frame #7 because after that the trap is called and I suppose the problem ist there. But that's the end of my knowledge. The dmesg for the relevant hardware info. -----8<----------8<----------8<----------8<----------8<----- worf:~> dmesg=20 Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-STABLE #35: Thu Jul 19 22:04:13 CEST 2007 root@worf.mydomain.home:/usr/obj/usr/src/sys/ATHLON Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) Processor (698.65-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x621 Stepping =3D 1 Features=3D0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,= CMOV,PAT,PSE36,MMX,FXSR> AMD Features=3D0xc0400800<SYSCALL,MMX+,3DNow+,3DNow> real memory =3D 536805376 (511 MB) avail memory =3D 515891200 (491 MB) acpi0: <AMIINT > on motherboard acpi0: Power Button (fixed) unknown: I/O range not supported Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 cpu0: <ACPI CPU> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 agp0: <AMD 751 host to AGP bridge> port 0xdc00-0xdc03 mem 0xe0000000-0xe7ff= ffff,0xeedff000-0xeedfffff at device 0.0 on pci0 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 pci1: <ACPI PCI bus> on pcib1 drm0: <Matrox G400/G450 (AGP)> mem 0xdc000000-0xddffffff,0xefefc000-0xefeff= fff,0xef000000-0xef7fffff irq 11 at device 5.0 on pci1 info: [drm] AGP at 0xe0000000 128MB info: [drm] Initialized mga 3.2.2 20060319 amd0: <Tekram DC390(T)/AMD53c974 SCSI Host Adapter> port 0xd800-0xd87f irq = 9 at device 4.0 on pci0 amd0: [GIANT-LOCKED] isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 82C686A UDMA66 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177= ,0x376,0xffa0-0xffaf at device 7.1 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 3 at device 7.2 o= n pci0 uhci0: [GIANT-LOCKED] usb0: <VIA 83C572 USB controller> on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: <serial bus, SMBus> at device 7.4 (no driver attached) ed0: <RealTek 8029> port 0xd000-0xd01f irq 11 at device 9.0 on pci0 ed0: Ethernet address: 00:e0:7d:82:22:3f ed0: type RTL8029 (16 bit)=20 acpi_button0: <Sleep Button> on acpi0 fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acp= i0 sio0: type 16550A ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: <Parallel port bus> on ppc0 pmtimer0 on isa0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xc8fff,0xc9000-0xcbfff,0xe8000-0x= ebfff on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sbc0: <Creative SB16/SB32> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq = 5 drq 1,5 on isa0 sbc0: [GIANT-LOCKED] pcm0: <SB16 DSP 4.16> on sbc0 pcm0: [GIANT-LOCKED] ata2: <Generic ESDI/IDE/ATA controller> at port 0x168-0x16f,0x36e-0x36f irq= 10 on isa0 uhub1: vendor 0x04b4 product 0x6560, class 9/0, rev 2.00/0.09, addr 2 uhub1: 4 ports with 4 removable, self powered ums0: Logitech Trackball, rev 1.10/2.20, addr 3, iclass 3/1 ums0: 3 buttons and Z dir. Timecounter "TSC" frequency 698649046 Hz quality 800 Timecounters tick every 1.000 msec Waiting 12 seconds for SCSI devices to settle ad0: 19544MB <Maxtor 92049U6 RA530JN0> at ata0-master UDMA66 ad2: 238475MB <MAXTOR STM3250820A 3.AAE> at ata1-master UDMA66 GEOM_LABEL: Label for provider ad0s1d is ufs/var. GEOM_LABEL: Label for provider ad0s1e is ufs/usr. GEOM_LABEL: Label for provider ad0s1f is ufs/backup. GEOM_LABEL: Label for provider ad2s2d is ufs/ports. GEOM_LABEL: Label for provider ad2s2e is ufs/home. GEOM_LABEL: Label for provider ad2s2f is ufs/media. GEOM_LABEL: Label for provider ad2s2g is ufs/home2. cd0 at amd0 bus 0 target 3 lun 0 cd0: <PLEXTOR CD-ROM PX-20TS 1.00> Removable CD-ROM SCSI-2 device=20 cd0: 10.000MB/s transfers (10.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Logical unit is in pro= cess of becoming ready cd1 at amd0 bus 0 target 4 lun 0 cd1: <GENERIC CRD-RW2 1.21> Removable CD-ROM SCSI-2 device=20 cd1: 10.000MB/s transfers (10.000MHz, offset 8) cd1: Attempt to query device size failed: NOT READY, Medium not present - t= ray closed Trying to mount root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted info: [drm] Initialized card for AGP DMA. -----8<----------8<----------8<----------8<----------8<----- But I'm not experienced enough to find out, what really happens. So I need some help, which I hope to find here. If more info is needed, please feel free to ask. BTW: on my laptop I can start hald without any problem. So, it ist a matter of this special machine here. Greeting, Karsten --=20 Karsten Rothemund <karsten@photor.de> /"\ PGP-Key: 0x7019CAA5 \ / Fingerprint: E752 C759 B9B2 2057 E42F \ ASCII Ribbon Campaign 50EE 47AC A7CE 7019 CAA5 / \ Against HTML Mail and News --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGpKs6R6ynznAZyqURAuWjAJ9jDJ4pSm9owmcSLJWaczfCHt64pwCgsaXE XpAdLRVCdW9Cmsx2whJGbMM= =3GTo -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070723132059.GA62722>