pkg hangs on 10.1 (ZFS-filesystem) in huge pkg update -f

Kurt Jaeger lists at opsec.eu
Tue Nov 18 19:28:26 UTC 2014


Hi!

I have a test box (10.1-REL amd64, ZFS filesystem), where pkg hangs in a

pkg update -f

operation:

[448/2310] Reinstalling graphviz-2.38.0_2: 100%

load: 0.15  cmd: dot 13636 [urdlck] 42255.22r 0.01u 0.03s 0% 6548k
load: 0.15  cmd: dot 13636 [urdlck] 42255.39r 0.01u 0.03s 0% 6548k
load: 0.15  cmd: dot 13636 [urdlck] 42255.53r 0.01u 0.03s 0% 6548k
load: 0.15  cmd: dot 13636 [urdlck] 42255.69r 0.01u 0.03s 0% 6548k

I can still log on that box (ssh). Running a pkg info brings, after a while
(seen by the ctrl-t output):

load: 0.47  cmd: pkg 18350 [nanslp] 26.65r 0.00u 0.03s 0% 5808k
pkg: sqlite error while executing PRAGMA user_version; in file pkgdb.c:2291: database is locked

A ktrace on the urdlck'ed pid did not show anything:

ktrace -f /tmp/traceit -p 13636
[waiting a bit]
ktrace -C

and:

-rw-------  1 root  wheel  0 Nov 18 19:21 /tmp/traceit

I have no idea why updating graphviz causes dot to be run ?

Any ideas on how I can debug this further ?

-- 
pi at opsec.eu            +49 171 3101372                         6 years to go !


More information about the freebsd-ports mailing list