indexer crash
Timo Sirainen
timo at sirainen.com
Tue Aug 31 12:17:36 EEST 2021
On 29. Aug 2021, at 0.42, Onno Molenkamp <onno at flox.org> wrote:
>
> Hi,
>
> Because I was getting segfaults in libc in calloc calls by the indexer process of Dovecot 2.3.16, I ran indexer with valgrind to look for possible memory corruption. It did indeed find that indexer was accessing memory that had already been freed, I've attached the log file.
>
> I've then tried running Dovecot with the fix in commit 97367ef61784a364ccf615cb816be6492329050d, but that didn't make any difference. Reverting (just the code in src/indexer) to the last revision before the recent rewrite to use connection.c (d76761698a06bab60a741c6794252fddec4292ef) did: valgrind doesn't log any errors anymore, and indexer has stopped crashing.
The attached patch should fix it?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3879.patch
Type: application/octet-stream
Size: 9538 bytes
Desc: not available
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210831/4497dc3f/attachment.obj>
-------------- next part --------------
More information about the dovecot
mailing list