Dovecot 3.21.1 -> 2.4.0 SegFault
Hi guys,
There seems to be some issue with Dovecot deployed on alpine. More specifically, the dovecot.config file is not properly read.
I have run some debugging and the SegFault is returned in the function below:
#0 0x000055555556779b in config_parsed_get_setting () No symbol table info available. #1 0x0000555555563708 in config_dump_full () No symbol table info available. #2 0x000055555555c814 in main () No symbol table info available.
This was also addressed by alpine here: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17050
Any idea what could be causing this?
Thanks for looking into it, Cata
On 29. Apr 2025, at 14.28, cstreang--- via dovecot <dovecot@dovecot.org> wrote:
Hi guys,
There seems to be some issue with Dovecot deployed on alpine. More specifically, the dovecot.config file is not properly read.
I have run some debugging and the SegFault is returned in the function below:
#0 0x000055555556779b in config_parsed_get_setting () No symbol table info available. #1 0x0000555555563708 in config_dump_full () No symbol table info available. #2 0x000055555555c814 in main () No symbol table info available.
This was also addressed by alpine here: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17050
..
#0 0x0000555555575254 in config_parsed_get_setting (config=0x7ffff7bdeee8, info_name=0x5555555840d6 "mail_storage", key=0x5555555840cc "mail_path") at config-parser.c:3090
I guess it crashes because ldef[info_idx].change_counters == NULL. And arguably it's a bug that it doesn't check for NULL here. But it's not supposed to be NULL in here, so in a way it's good that it's exposing this other issue. Somehow it's not reading mail_storage_default_settings_keyvalue default settings. It should be doing that in config_parser_add_info_defaults_arr(), but apparently that's not happening. May be some special compiler or linker flags or something is causing this? If someone can give me ssh access to a server where it's happening and I can modify the source and rebuild, I can debug it. Otherwise difficult to do anything about this.
participants (2)
-
Cata S
-
Timo Sirainen