[Dovecot] dovecot -n segfault

Uldis Pakuls neko at it4u.lv
Tue Jun 26 22:46:24 EEST 2007


Luca Corti wrote:
> On Thu, 2007-06-21 at 01:25 +0300, Timo Sirainen wrote:
>   
>> gdb dovecot
>> r -n
>> bt full
>>     
> #1  0x000190b4 in settings_dump (def=0x65766500, sets=0x2d980,
> set_names=0x1010101, count=2155905152, nondefaults=false,
> indent=1869873152) at master-settings.c:1531
> Do you need a gdb run with unstripped dovecot?
>
> ciao
>
> Luca
Are you applied "managesieve" patch? There is bug in 
"master_settings_dump" causing segfault with "dovecot -n"
look for old  posts; few month ago I posted patch here.

..or fix it yourself:
----------
@@ -1536,8 +1584,8 @@
 void master_settings_dump(struct server_settings *set, bool nondefaults)
 {
-       const void *sets[4];
-       const char *set_names[4];
+       const void *sets[5];
+       const char *set_names[5];
        unsigned int count;
        sets[0] = &default_settings;
----------

Uldis




More information about the dovecot mailing list