[Dovecot] [PATCH] dovecot-lda segfault

Florian Forster octo at noris.net
Wed Dec 8 13:23:10 EET 2010


On Tue, Dec 07, 2010 at 11:32:20PM +0000, Timo Sirainen wrote:
> Could you get gdb backtrace? Something like:

I'm a colleague of Michael's and helped him debug this issue.

The interesting part of the backtrace is the following:

-- 8< --
#0  acl_object_deinit (_aclobj=0x30) at acl-api.c:23
        aclobj = <value optimized out>
#1  0x00007f4673f35e84 in acl_backend_deinit (_backend=<value optimized out>) at acl-backend.c:95
        backend = (struct acl_backend *) 0x0
-- >8 --

For a reason I haven't investigated yet, "backend" is NULL in
"acl_backend_deinit". This leads to a NULL-pointer dereference in

The attached patch protects from this dereference but I have this
distinct feeling that I'm treating a symptom here.

Best regards,
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100

http://www.noris.de - The IT-Outsourcing Company

Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk -
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-2.0.8-acl_backend.patch
Type: text/x-diff
Size: 643 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20101208/e3d0f08c/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20101208/e3d0f08c/attachment-0001.bin 

More information about the dovecot mailing list