From owner-freebsd-questions@FreeBSD.ORG Sat Jul 18 16:29:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 796E3106566B for ; Sat, 18 Jul 2009 16:29:33 +0000 (UTC) (envelope-from mr.hyro@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 2A8E28FC12 for ; Sat, 18 Jul 2009 16:29:32 +0000 (UTC) (envelope-from mr.hyro@gmail.com) Received: by yxe11 with SMTP id 11so2416855yxe.3 for ; Sat, 18 Jul 2009 09:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=GRuMOVsAMkW17XYXQ5kTXt3zXctDuTWxGWcZScWEqcQ=; b=dJA4w8OphOrEBEiTfyheIhAeYZI52vSQpuXHBzjFN6UELEzyxGAXQZNMVAzP1xlN8v hpj9qCgtmZaA/c8idWdKoNr3LVw5A4THR1YW3kWVXAb/f1HP5965llKWOT0SsJMZEFQO IJeOuEL7AUF8p1Ev4B9pBtMIFeH7IF8evDYQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=M/klNyLLHKqrrBnNBJtCyinIPE1bmtnpAlqhC5Ysc8BdpsrX5b1KovMPEVzyNsNWtT 9C7lmCbf9vE7+Cgxkeg3YDZLYiuwUvpGZYM/XQ02GWpcYjO9OXwRWfpS86VMakleLXep uVxSTWfbkZdbH+czvTKFfZciMr5oB0e8wSOnU= MIME-Version: 1.0 Received: by 10.150.230.15 with SMTP id c15mr3924646ybh.22.1247934572409; Sat, 18 Jul 2009 09:29:32 -0700 (PDT) In-Reply-To: <200907172202.43824.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <24393ae80907171959u62705d8akb1e0aaec1d2f2c44@mail.gmail.com> <200907172202.43824.mel.flynn+fbsd.questions@mailing.thruhere.net> Date: Sat, 18 Jul 2009 12:29:32 -0400 Message-ID: <24393ae80907180929x71d2cf1frb8f1c900bf79c46a@mail.gmail.com> From: Andrey Shuvikov To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: hald: kmem_malloc error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2009 16:29:34 -0000 On Sat, Jul 18, 2009 at 2:02 AM, Mel Flynn wrote: > On Friday 17 July 2009 18:59:49 Andrey Shuvikov wrote: > >> I'm trying to configure X and according to the manual enabled DBUS and >> HALD. But when hald is starting up I get kernel panic: >> >> kmem_malloc: entry not found or misaligned >> >> Does anyone know what could be wrong? I have memory dump if it can >> help but it's big (173M). > > If you have a file /var/crash/vmcore.0, you will want to run the > following command: > kgdb /boot/kernel/kernel /var/crash/vmcore.0 > Then type bt at the prompt and paste output here. > > More info: > > > uname -a and dmesg output also help in diagnosing this problem. > -- > Mel > The uname output is: FreeBSD foxtrot.home 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 The kgdb output: 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: panic: kmem_malloc: entry not found or misaligned cpuid = 0 Uptime: 52s Physical memory: 2034 MB Dumping 176 MB: 161 145 129 113 97 81 65 49 33 17 1 Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko #0 doadump () at pcpu.h:196 196 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:196 #1 0xc07e25a7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc07e2879 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0xc0a1cdc0 in kmem_malloc (map=0xc147108c, size=0, flags=2) at /usr/src/sys/vm/vm_kern.c:381 #4 0xc0a13357 in page_alloc (zone=0x0, bytes=0, pflag=0xe7b6497f "\002", wait=2) at /usr/src/sys/vm/uma_core.c:952 #5 0xc0a15e20 in uma_large_malloc (size=0, wait=2) at /usr/src/sys/vm/uma_core.c:2706 #6 0xc07d16f8 in malloc (size=0, mtp=0xc0c46580, flags=2) at /usr/src/sys/kern/kern_malloc.c:393 #7 0xc0743044 in uhidopen (dev=0xc5713000, flag=1, mode=8192, p=0xc5c6a460) at /usr/src/sys/dev/usb/uhid.c:428 #8 0xc07a56a0 in giant_open (dev=0xc5713000, oflags=1, devtype=8192, td=0xc5c6a460) at /usr/src/sys/kern/kern_conf.c:332 #9 0xc076e1fc in devfs_open (ap=0xe7b64a88) at /usr/src/sys/fs/devfs/devfs_vnops.c:908 #10 0xc0af88d2 in VOP_OPEN_APV (vop=0xc0c47ee0, a=0xe7b64a88) at vnode_if.c:371 #11 0xc0870829 in vn_open_cred (ndp=0xe7b64b7c, flagp=0xe7b64c78, cmode=0, cred=0xc5470100, fp=0xc5b57da8) at vnode_if.h:199 #12 0xc0870973 in vn_open (ndp=0xe7b64b7c, flagp=0xe7b64c78, cmode=0, fp=0xc5b57da8) at /usr/src/sys/kern/vfs_vnops.c:94 #13 0xc086e0a3 in kern_open (td=0xc5c6a460, path=0xbfbfe90c
, pathseg=UIO_USERSPACE, flags=1, mode=0) at /usr/src/sys/kern/vfs_syscalls.c:1042 #14 0xc086e610 in open (td=0xc5c6a460, uap=0xe7b64cfc) at /usr/src/sys/kern/vfs_syscalls.c:1009 #15 0xc0ae4495 in syscall (frame=0xe7b64d38) at /usr/src/sys/i386/i386/trap.c:1090 #16 0xc0ac9260 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:255 #17 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) q The dmesg: Copyright (c) 1992-2009 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 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (2999.67-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x10676 Stepping = 6 Features=0xbfebfbff Features2=0x8e3fd AMD Features=0x20100000 AMD Features2=0x1 Cores per package: 2 real memory = 2146893824 (2047 MB) avail memory = 2091225088 (1994 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xc000-0xc0ff mem 0xd0000000-0xdfffffff,0xfe8e0000-0xfe8effff irq 16 at device 0.0 on pci1 pci1: at device 0.1 (no driver attached) uhci0: port 0xb800-0xb81f irq 16 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xb880-0xb89f irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xbc00-0xbc1f irq 18 at device 26.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xfe7ffc00-0xfe7fffff irq 18 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered umass0: on uhub3 pci0: at device 27.0 (no driver attached) pcib2: irq 17 at device 28.0 on pci0 pci4: on pcib2 pcib3: irq 17 at device 28.4 on pci0 pci3: on pcib3 atapci0: port 0xec00-0xec07,0xe880-0xe883,0xe800-0xe807,0xe480-0xe483,0xe400-0xe40f mem 0xfeaffc00-0xfeafffff irq 16 at device 0.0 on pci3 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] pcib4: irq 16 at device 28.5 on pci0 pci2: on pcib4 ale0: port 0xdc00-0xdc7f mem 0xfe9c0000-0xfe9fffff irq 17 at device 0.0 on pci2 ale0: 960 Tx FIFO, 1024 Rx FIFO ale0: Using 1 MSI messages. miibus0: on ale0 atphy0: PHY 0 on miibus0 atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto ale0: Ethernet address: 00:22:15:5a:67:e8 ale0: [FILTER] uhci3: port 0xb080-0xb09f irq 23 at device 29.0 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb4: on uhci3 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered uhci4: port 0xb400-0xb41f irq 19 at device 29.1 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered uhci5: port 0xb480-0xb49f irq 18 at device 29.2 on pci0 uhci5: [GIANT-LOCKED] uhci5: [ITHREAD] usb6: on uhci5 usb6: USB revision 1.0 uhub6: on usb6 uhub6: 2 ports with 2 removable, self powered ehci1: mem 0xfe7ff800-0xfe7ffbff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb7: EHCI version 1.0 usb7: companion controllers, 2 ports each: usb4 usb5 usb6 usb7: on ehci1 usb7: USB revision 2.0 uhub7: on usb7 uhub7: 6 ports with 6 removable, self powered ugen0: on uhub7 pcib5: at device 30.0 on pci0 pci5: on pcib5 fwohci0: mem 0xfebff000-0xfebfffff irq 19 at device 3.0 on pci5 fwohci0: [FILTER] fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:1e:8c:00:01:63:47:d0 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:1e:8c:63:47:d0 fwe0: Ethernet address: 02:1e:8c:63:47:d0 fwip0: on firewire0 fwip0: Firewire address: 00:1e:8c:00:01:63:47:d0 @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x12e4000 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0xa000-0xa007,0x9c00-0x9c03,0x9880-0x9887,0x9800-0x9803,0x9480-0x948f,0x9400-0x940f irq 19 at device 31.2 on pci0 atapci1: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] pci0: at device 31.3 (no driver attached) atapci2: port 0xb000-0xb007,0xac00-0xac03,0xa880-0xa887,0xa800-0xa803,0xa480-0xa48f,0xa400-0xa40f irq 19 at device 31.5 on pci0 atapci2: [ITHREAD] ata5: on atapci2 ata5: [ITHREAD] ata6: on atapci2 ata6: [ITHREAD] acpi_button0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse, device ID 3 cpu0: on acpi0 ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] - EE, should be E5 [20070320] est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 618092006000920 device_attach: est1 attach returned 6 p4tcc1: on cpu1 pmtimer0 on isa0 orm0: at iomem 0xd0000-0xd27ff pnpid ORM0000 on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata0: [ITHREAD] ata1 at port 0x170-0x177,0x376 irq 15 on isa0 ata1: [ITHREAD] ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 uhid0: on uhub5 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acd0: DVDR at ata2-master UDMA33 ad6: 152627MB at ata3-master SATA300 ad8: 305245MB at ata4-master SATA300 GEOM_LABEL: Label for provider ad6s1 is msdosfs/FREEDOS. GEOM_LABEL: Label for provider ad8s1 is ntfs/New Volume. GEOM_LABEL: Label for provider ad6s3a is ufsid/4a5a61fa90383ccc. GEOM_LABEL: Label for provider ad6s3d is ufsid/4a5a61fc87a6c3a0. GEOM_LABEL: Label for provider ad6s3e is ufsid/4a5a61fa5b9a9e33. GEOM_LABEL: Label for provider ad6s3f is ufsid/4a5a61fb3ef7459f. GEOM_LABEL: Label for provider ad6s3g is ufsid/4a5a61fa4e22975e. (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0 (probe0:umass-sim0:0:0:0): Medium not present (probe0:umass-sim0:0:0:0): Unretryable error (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 (probe0:umass-sim0:0:0:1): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:1): SCSI Status: Check Condition (probe0:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0 (probe0:umass-sim0:0:0:1): Medium not present (probe0:umass-sim0:0:0:1): Unretryable error (probe0:umass-sim0:0:0:2): TEST UNIT READY. CDB: 0 40 0 0 0 0 (probe0:umass-sim0:0:0:2): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:2): SCSI Status: Check Condition (probe0:umass-sim0:0:0:2): NOT READY csi:0,aa,55,40 asc:3a,0 (probe0:umass-sim0:0:0:2): Medium not present (probe0:umass-sim0:0:0:2): Unretryable error (probe0:umass-sim0:0:0:3): TEST UNIT READY. CDB: 0 60 0 0 0 0 (probe0:umass-sim0:0:0:3): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:3): SCSI Status: Check Condition (probe0:umass-sim0:0:0:3): NOT READY csi:0,aa,55,40 asc:3a,0 (probe0:umass-sim0:0:0:3): Medium not present (probe0:umass-sim0:0:0:3): Unretryable error SMP: AP CPU #1 Launched! da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present da1 at umass-sim0 bus 0 target 0 lun 1 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present da2 at umass-sim0 bus 0 target 0 lun 2 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da3 at umass-sim0 bus 0 target 0 lun 3 da3: Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad6s3a GEOM_LABEL: Label ufsid/4a5a61fa90383ccc removed. GEOM_LABEL: Label for provider ad6s3a is ufsid/4a5a61fa90383ccc. GEOM_LABEL: Label ufsid/4a5a61fa4e22975e removed. GEOM_LABEL: Label for provider ad6s3g is ufsid/4a5a61fa4e22975e. GEOM_LABEL: Label ufsid/4a5a61fa5b9a9e33 removed. GEOM_LABEL: Label for provider ad6s3e is ufsid/4a5a61fa5b9a9e33. GEOM_LABEL: Label ufsid/4a5a61fb3ef7459f removed. GEOM_LABEL: Label for provider ad6s3f is ufsid/4a5a61fb3ef7459f. GEOM_LABEL: Label ufsid/4a5a61fc87a6c3a0 removed. GEOM_LABEL: Label for provider ad6s3d is ufsid/4a5a61fc87a6c3a0. GEOM_LABEL: Label ufsid/4a5a61fa90383ccc removed. GEOM_LABEL: Label ufsid/4a5a61fa4e22975e removed. GEOM_LABEL: Label ufsid/4a5a61fa5b9a9e33 removed. GEOM_LABEL: Label ufsid/4a5a61fb3ef7459f removed. GEOM_LABEL: Label ufsid/4a5a61fc87a6c3a0 removed. GEOM_LABEL: Label msdosfs/FREEDOS removed. GEOM_LABEL: Label for provider ad6s1 is msdosfs/FREEDOS. GEOM_LABEL: Label msdosfs/FREEDOS removed. Thanks, Andrey