hald/geom(?) lock up

From: pluknet <pluknet_at_gmail.com>
Date: Tue, 10 Feb 2009 23:13:27 +0300
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
Received on Tue Feb 10 2009 - 19:13:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC