[Pkg-gnupg-maint] Bug#776611: Bug#776611: [dirmngr] segfaults

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Feb 16 23:24:03 UTC 2015


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 948 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20150216/ccab2d30/attachment.sig>


More information about the Pkg-gnupg-maint mailing list