[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#465279: ssl-cert: /var/lib/dpkg/info/ssl-cert.postinst of version 1.0.15 hangs inside chroot



* Tollef Fog Heen <tfheen@err.no> [20080214 14:48]:
> * Michael Prokop 

> | 17145:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:629:line 5

> Did you first set RANDFILE to /dev/random?

No (not that I'm aware of).

> Is /dev/random available in the chroot?

Yes:

# ls -la /dev/random
crw-rw-rw- 1 root root 1, 8 Oct 29 22:01 /dev/random

> What does strac-ing the openssl process show you, and

Running it from outside the chroot:

# strace -f -p 31838
Process 31838 attached - interrupt to quit
read(4, "\212\304;\210\204n\361\26", 976) = 8
read(4, "\210\4\266\332\\\272\17\276", 968) = 8
read(4, "\265\265\356\235\375\211\307\305", 960) = 8
read(4,  <unfinished ...>
[..]

> what does ls -l /proc/$pid_of_openssl/fd show you?

# ls -l /proc/31838/fd
total 0
lr-x------ 1 root root 64 Feb 14 16:12 0 -> pipe:[777359]
l-wx------ 1 root root 64 Feb 14 16:12 1 -> /dev/null
l-wx------ 1 root root 64 Feb 14 16:12 11 -> pipe:[777314]
l-wx------ 1 root root 64 Feb 14 16:10 2 -> /dev/null
l-wx------ 1 root root 64 Feb 14 16:12 3 -> pipe:[777360]
lr-x------ 1 root root 64 Feb 14 16:12 4 -> /dev/random

I prepared a minimal chroot where you should be able to reproduce
the problem on your own:

  http://grml.org/tmp/ssl-cert-chroot.tgz    (52M)

Running "apt-get install ssl-cert" inside it hopefully should allow
you to reproduce above problem.

regards,
-mika-

Attachment: signature.asc
Description: Digital signature


Reply to: