From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 19 23:50:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 745761065673 for ; Tue, 19 May 2009 23:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4EF6B8FC0A for ; Tue, 19 May 2009 23:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4JNo3Zr006177 for ; Tue, 19 May 2009 23:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4JNo3Jc006174; Tue, 19 May 2009 23:50:03 GMT (envelope-from gnats) Resent-Date: Tue, 19 May 2009 23:50:03 GMT Resent-Message-Id: <200905192350.n4JNo3Jc006174@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Geoffrey Mainland Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF7A1106564A for ; Tue, 19 May 2009 23:44:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 92F1E8FC0C for ; Tue, 19 May 2009 23:44:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4JNiiZ0050102 for ; Tue, 19 May 2009 23:44:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4JNiivC050101; Tue, 19 May 2009 23:44:44 GMT (envelope-from nobody) Message-Id: <200905192344.n4JNiivC050101@www.freebsd.org> Date: Tue, 19 May 2009 23:44:44 GMT From: Geoffrey Mainland To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/134731: hald uses 100% of CPU X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 23:50:05 -0000 >Number: 134731 >Category: ports >Synopsis: hald uses 100% of CPU >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 19 23:50:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Geoffrey Mainland >Release: 7.2-STABLE >Organization: >Environment: FreeBSD hilbert.apeiron.net 7.2-STABLE FreeBSD 7.2-STABLE #12: Mon May 4 11:49:12 EDT 2009 toor@hilbert.apeiron.net:/usr/obj/usr/src/sys/HILBERT i386 >Description: In moving from hal-0.5.11_21 to hal-0.5.11_23, hald suddenly took up 100% of my CPU and I was unable to run lshal at all. I recompiled hald with debug flags and noticed that the function hf_storage_device_probe_geom called itself recursively and eventually blew the stack. I'm afraid I don't know enough to debug exactly what the problem is, but after adding a return statement at the beginning of the function hf_storage_device_probe_geom and recompiling, all is well. I suspect the issue is the recently added support for the PART GEOM type. Here is the output of sysctl -b kern.geom.conftxt on my system: 0 DISK cd0 0 2048 hd 0 sc 0 0 DISK ad14 251000193024 512 hd 16 sc 63 1 PART ad14s2 162062659584 512 i 2 o 32256 ty !5 xs MBR xt 5 2 MBR ad14s2s2 119998609920 512 i 1 o 8192346624 ty 5 3 MBREXT ad14s2s5 119998577664 512 i 0 o 32256 ty 131 2 MBR ad14s2s1 8192314368 512 i 0 o 32256 ty 130 1 PART ad14s1 88937178624 512 i 1 o 162063014400 ty !175 xs MBR xt 175 1 MBR ad14s2 162062659584 512 i 1 o 32256 ty 5 2 PART ad14s2s2 119998609920 512 i 2 o 8192346624 ty !5 xs MBR xt 5 3 MBR ad14s2s2s2 17001653760 512 i 1 o 128190956544 ty 5 3 MBR ad14s2s2s1 119998577664 512 i 0 o 32256 ty 131 2 PART ad14s2s1 8192314368 512 i 1 o 32256 ty !130 xs MBR xt 130 2 MBREXT ad14s8 16870017024 512 i 3 o 145192642560 ty 131 2 MBREXT ad14s7 17001621504 512 i 2 o 128190988800 ty 131 2 MBREXT ad14s6 119998577664 512 i 1 o 8192378880 ty 131 2 MBREXT ad14s5 8192314368 512 i 0 o 32256 ty 130 1 MBR ad14s1 88937178624 512 i 0 o 162063014400 ty 175 0 DISK ad12 1000204886016 512 hd 16 sc 63 1 MBR ad12s1 824633639424 512 i 0 o 32256 ty 165 2 BSD ad12s1g 64424428032 512 i 6 o 760209211392 ty 7 2 BSD ad12s1f 68719476736 512 i 5 o 691489734656 ty 7 2 BSD ad12s1e 68719476736 512 i 4 o 622770257920 ty 7 2 BSD ad12s1d 536870912000 512 i 3 o 17179869184 ty 7 2 BSD ad12s1c 824633639424 512 i 2 o 0 ty 0 3 PART ad12s1cg 64424428032 512 i 7 o 760209211392 ty freebsd-ufs xs BSD xt 7 3 PART ad12s1cf 68719476736 512 i 6 o 691489734656 ty freebsd-ufs xs BSD xt 7 3 PART ad12s1ce 68719476736 512 i 5 o 622770257920 ty freebsd-ufs xs BSD xt 7 3 PART ad12s1cd 536870912000 512 i 4 o 17179869184 ty freebsd-ufs xs BSD xt 7 3 PART ad12s1cb 17179869184 512 i 2 o 0 ty freebsd-swap xs BSD xt 1 3 PART ad12s1ca 68719476736 512 i 1 o 554050781184 ty freebsd-ufs xs BSD xt 7 2 BSD ad12s1b 17179869184 512 i 1 o 0 ty 1 2 BSD ad12s1a 68719476736 512 i 0 o 554050781184 ty 7 0 DISK ad10 400088457216 512 hd 16 sc 63 1 PART ad10s1 400085812224 512 i 1 o 32256 ty !7 xs MBR xt 7 1 MBR ad10s1 400085812224 512 i 0 o 32256 ty 7 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: