[Pkg-gnupg-maint] Bug#776611: Bug#776611: [dirmngr] segfaults
Florian Reitmeir
florian at multi24.com
Tue Feb 17 23:25:26 UTC 2015
Hi,
> stat /var/cache/dirmngr/crls.d/DIR.txt
device 65024
inode 330320
mode 33184
nlink 1
uid 126
gid 133
rdev 0
size 0
atime 1424002234
mtime 1351168424
ctime 1422569978
blksize 4096
blocks 0
link
> ls -l /var/cache/dirmngr/crls.d/DIR.txt
-rw-r----- 1 dirmngr dirmngr 0 Oct 25 2012
/var/cache/dirmngr/crls.d/DIR.txt
yes its empty.
And no i don't know how it got in that state. Its a notebook i daily
use, i use XFS which is known to behave not always nice if the power is
cut. And i never cared about dirmngr, even now i don't know why its
running.
so it looks like, it broken for a long time..
greetings, and thanks for the fix
On 02/17/2015 12:24 AM, Daniel Kahn Gillmor wrote:
> Control: tags 776611 - moreinfo unreproducible
>
> Hi Florian--
>
> Sorry for taking a little while to get to this...
>
> On Thu 2015-02-05 02:59:28 -0500, Florian Reitmeir wrote:
>> cat /var/log/dirmngr/dirmngr.log
>> 2015-02-02 06:36:34 dirmngr[3324.0] permanently loaded certificates: 0
>> 2015-02-02 06:36:34 dirmngr[3324.0] runtime cached certificates: 0
>> 2015-02-02 16:02:48 dirmngr[2517.0] permanently loaded certificates: 0
>> 2015-02-02 16:02:48 dirmngr[2517.0] runtime cached certificates: 0
>> 2015-02-03 22:48:20 dirmngr[2384.0] permanently loaded certificates: 0
>> 2015-02-03 22:48:20 dirmngr[2384.0] runtime cached certificates: 0
> [...]
>> attached is a stack trace, ..
>
> Thanks for this information! It looks to me like the errors are related
> to loading the CRL cache. (in particular, in open_dir() in
> src/crlcache.c). I think i'm now able to reproduce this.
>
> I suspect you have a zero-length file in
> /var/cache/dirmngr/crls.d/DIR.txt, is that correct? can you show me the
> output of:
>
> stat /var/cache/dirmngr/crls.d/DIR.txt
>
> If you move that file out of the way, can you start dirmngr without
> it crashing?
>
> mv /var/cache/dirmngr/crls.d/DIR.txt /var/cache/dirmngr/crls.d/DIR.txt.bak
>
> If this works, do you have any idea how dirmngr's crlcache got into this
> state? I'm working on a patch now.
>
> --dkg
>
--
Dipl.-Inf. Univ. Florian Reitmeir
E-Mail: net at multi24.com
Tel: +43 650 2661660
Fax: +43 650 2661660
HP: http://net.multi24.com
Amraserstr 23
6020 Innsbruck / Austria
More information about the Pkg-gnupg-maint
mailing list