From owner-freebsd-current@FreeBSD.ORG Tue Feb 10 20:13:31 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 836E71065678 for ; Tue, 10 Feb 2009 20:13:31 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 08B498FC08 for ; Tue, 10 Feb 2009 20:13:30 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so38805fgb.35 for ; Tue, 10 Feb 2009 12:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=EYU/r0rjg3Vq3mfolxg69JK1nAjJOCshnskSex/N6A8=; b=dZJNXbE3t4qo+3i4X+zj15+wp+PT4pGXmdX4ei0ttLaMGq72BW2kTj7Y04Hfn3MUVq GlRSv6EernCO+D0qtcg87Na/bGMws9d1Lxy6PKSDH7OcGzkWbAvrZcSnKtjNI9notfhS DV17e7WVlYA6p47IF6GPM1RI22fzfjQ+1zO3A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=mo4UIAjvOz4OmAw+elD9rfzVEAVVxhlDsrQXE5BD8bKiFC4uq+gwBHOF7uNyKJhyT/ arhTqG1bxafY1omjCCVmh8WXRdB2qN/uu2/R8a9nm7Uw+/u0eQ+lpp22U1uQmCx8D1Af kj4CvtOP0k76GVJkl8Xd0WzGdvyrY1vUSDOeA= MIME-Version: 1.0 Received: by 10.86.94.11 with SMTP id r11mr75334fgb.53.1234296807611; Tue, 10 Feb 2009 12:13:27 -0800 (PST) Date: Tue, 10 Feb 2009 23:13:27 +0300 Message-ID: From: pluknet To: freebsd-current Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: hald/geom(?) lock up X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 20:13:32 -0000 Hi all. On recent -current after inserting a CD my system locks up in a few minutes. Any commands I tried then lock on sysctl lock; i.e. ctrl+t returns: load: 0.04 cmd: sudo 1008 [sysctl lock] 0.00u 0.00s 0% 312k FreeBSD 8.0-CURRENT #19: Tue Feb 10 00:24:21 UTC 2009 Captured ddb (partially transcribed as ddb capture does not return some data): db> show alllocks Process 924 (sshd) thread 0xc5d606c0 (100107) exclusive sx so_rcv_sx ... uipc_sockbuf.c:148 Process 890 (hald-addon-storage) thread 0xc5afd240 (100091) exclusive sx GEOM topology ... geom_dev.c:171 Process 880 (hald) thread 0xc5d60900 (100106) exclusive sx sysctl lock ... kern_sysctl.c:1510 Process 12 (intr) thread 0xc5663000 (100023) exclusive sleep mutex Giant ... kbdmux.c:1044 db> bt 890 Tracing pid 890 tid 100091 td 0xc5afd240 sched_switch(c5afd240,0,104,18d,ae7e8399,...) at sched_switch+0x437 mi_switch(104,0,c0805c50,1d2,0,...) at mi_switch+0x200 sleepq_switch(c5afd240,0,c0805c50,26a,2,...) at sleepq_switch+0x15f sleepq_timedwait(c089b424,0,c07f05e9,2,0,...) at sleepq_timedwait+0x6b _sleep(c089b424,0,0,c07f05e9,1f4,...) at _sleep+0x329 pause(c07f05e9,1f4,10,c5e170d0,c5986200,...) at pause+0x47 acd_geom_access(c5986200,1,0,0,0,...) at acd_geom_access+0xeb g_access(c5989340,1,0,0,2000,...) at g_access+0x20b g_dev_open(c59a0500,1,2000,c5afd240,c052a7b4,...) at g_dev_open+0x104 devfs_open(e7f1cacc,c5afd240,e7f1cba8,0,e7f1caf4,...) at devfs_open+0xe6 VOP_OPEN_APV(c0847e80,e7f1cacc,c07fd022,c07fa9c9,c5decb84,...) at VOP_OPEN_APV+0xa5 vn_open_cred(e7f1cba8,e7f1cc5c,0,c5512900,c5de47a8,...) at vn_open_cred+0x429 vn_open(e7f1cba8,e7f1cc5c,0,c5de47a8,3,...) at vn_open+0x33 kern_openat(c5afd240,ffffff9c,bfbfe490,0,1,...) at kern_openat+0x110 kern_open(c5afd240,bfbfe490,0,0,0,...) at kern_open+0x35 open(c5afd240,e7f1ccf8,c,c0818fe7,c084b2d8,...) at open+0x30 syscall(e7f1cd38) at syscall+0x2a3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (5, FreeBSD ELF32, open), eip = 0x281c5fd3, esp = 0xbfbfe19c, ebp = 0xbfbfe1c8 --- db> bt 880 Tracing pid 880 tid 100106 td 0xc5d60900 sched_switch(c5d60900,0,104,18d,dc8c7829,...) at sched_switch+0x437 mi_switch(104,0,c0805c50,1d2,4c,...) at mi_switch+0x200 sleepq_switch(c5d60900,0,c0805c50,26a,0,...) at sleepq_switch+0x15f sleepq_timedwait(c5c8e200,4c,c07f97cd,0,0,...) at sleepq_timedwait+0x6b _sleep(c5c8e200,0,4c,c07f97cd,3e8,...) at _sleep+0x329 g_waitfor_event(c0542cb0,c59847e0,2,0,0,...) at g_waitfor_event+0x9c sysctl_kern_geom_conftxt(c08493c0,0,0,e7f72ba4,e7f72ba4,...) at sysctl_kern_geom_conftxt+0x58 sysctl_root(e7f72ba4,0,c0802669,5e6,c5d60900,...) at sysctl_root+0x199 userland_sysctl(c5d60900,e7f72c10,3,0,bfbfe9c4,...) at userland_sysctl+0x115 __sysctl(c5d60900,e7f72cf8,18,c08087f9,c084c550,...) at __sysctl+0x94 syscall(e7f72d38) at syscall+0x2a3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (202, FreeBSD ELF32, __sysctl), eip = 0x28350b3f, esp = 0xbfbfe8bc, ebp = 0xbfbfe8e8 --- db> c [thread pid 12 tid 100023 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db> ps pid ppid pgrp uid state wmesg wchan cmd 1113 932 1113 1001 S+ sysctl l 0xc089b464 ls 1042 1 1042 0 Ss select 0xc5e3aaa4 sshd 981 884 880 0 S select 0xc5c950a4 initial thread 932 868 932 1001 S+ wait 0xc5af7a90 bash 929 928 929 1001 Ss+ ttyin 0xc575e270 bash 928 924 924 1001 S select 0xc5799624 sshd 924 1 924 0 Ss sbwait 0xc5df7238 sshd 890 884 880 0 S acdld 0xc089b424 initial thread 884 880 880 0 S select 0xc5989de4 initial thread 883 1 883 0 Ss (threaded) console-kit-daemon 100111 S waitvt 0xc0896f84 console-kit-daemon 100125 S waitvt 0xc0896fbc console-kit-daemon 100124 S waitvt 0xc0896fb8 console-kit-daemon 100123 S waitvt 0xc0896fb4 console-kit-daemon 100122 S waitvt 0xc0896fb0 console-kit-daemon 100121 S waitvt 0xc0896fac console-kit-daemon 100120 S waitvt 0xc0896fa8 console-kit-daemon 100119 S waitvt 0xc0896fa4 console-kit-daemon 100118 S waitvt 0xc0896fa0 console-kit-daemon db> bt 1113 Tracing pid 1113 tid 100126 td 0xc5d5f6c0 sched_switch(c5d5f6c0,0,104,18d,6d4b9014,...) at sched_switch+0x437 mi_switch(104,0,c0805c50,1d2,0,...) at mi_switch+0x200 sleepq_switch(c5d5f6c0,0,c0805c50,247,c089b464,...) at sleepq_switch+0x15f sleepq_wait(c089b464,0,c0802757,3,0,...) at sleepq_wait+0x63 _sx_xlock_hard(c089b464,c5d5f6c0,0,c0802669,5e6,...) at _sx_xlock_hard+0x286 _sx_xlock(c089b464,0,c0802669,5e6,c5d5f6c0,...) at _sx_xlock+0xc0 userland_sysctl(c5d5f6c0,e7faec10,2,bfbfeacc,bfbfead0,...) at userland_sysctl+0xf1 __sysctl(c5d5f6c0,e7faecf8,18,c,c084c550,...) at __sysctl+0x94 syscall(e7faed38) at syscall+0x2a3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (202, FreeBSD ELF32, __sysctl), eip = 0x2806147b, esp = 0xbfbfea6c, ebp = 0xbfbfea98 --- db> c -- wbr, pluknet