dovecot reload 2.4.1 => core dump
"systemctl reload docecot" crashed.
systemctl start and restart work fine before and after the reload crash.
Running on archlinux (using the arch dovecot 2.4.1 package).
Probably about 15-20 connected clients at time of crash .
Is this a known issue I wonder?
thanks
gene
All I have at this point is systemd reported trace of the crash:
Process 1381 (dovecot) of user 0 dumped core. Stack trace of thread 1381: #0 0x00007e78fad7ed1d n/a (libc.so.6 + 0x16ed1d) #1 0x00007e78fac758d8 n/a (libc.so.6 + 0x658d8) #2 0x00007e78fac99e2e n/a (libc.so.6 + 0x89e2e) #3 0x00007e78fac705d6 snprintf (libc.so.6 + 0x605d6) #4 0x00007e78fad271e1 n/a (libc.so.6 + 0x1171e1) #5 0x00007e78fad27943 __syslog_chk (libc.so.6 + 0x117943) #6 0x00007e78faf38ce5 n/a (libdovecot.so.0 + 0x138ce5) #7 0x00007e78faf36d4d n/a (libdovecot.so.0 + 0x136d4d) #8 0x00007e78faf3701e i_syslog_error_handler (libdovecot.so.0 + 0x13701e) #9 0x000058ca208bd7bf n/a (/usr/bin/dovecot + 0x87bf) #10 0x00007e78faf355e6 i_warning (libdovecot.so.0 + 0x1355e6) #11 0x000058ca208c79fa n/a (/usr/bin/dovecot + 0x129fa) #12 0x00007e78faf5b698 n/a (libdovecot.so.0 + 0x15b698) #13 0x00007e78faf536e4 io_loop_call_io (libdovecot.so.0 + 0x1536e4) #14 0x00007e78faf54c8b io_loop_handler_run_internal (libdovecot.so.0 + 0x154c8b) #15 0x00007e78faf54d47 io_loop_handler_run (libdovecot.so.0 + 0x154d47) #16 0x00007e78faf54f49 io_loop_run (libdovecot.so.0 + 0x154f49) #17 0x00007e78fae9fc00 master_service_run (libdovecot.so.0 + 0x9fc00) #18 0x000058ca208bd017 main (/usr/bin/dovecot + 0x8017) #19 0x00007e78fac376b5 n/a (libc.so.6 + 0x276b5) #20 0x00007e78fac37769 __libc_start_main (libc.so.6 + 0x27769) #21 0x000058ca208bd605 _start (/usr/bin/dovecot + 0x8605) ELF object binary architecture: AMD x86-64
-- Gene
"systemctl reload docecot" crashed. systemctl start and restart work fine before and after the reload crash. Running on archlinux (using the arch dovecot 2.4.1 package). Probably about 15-20 connected clients at time of crash . Is this a known issue I wonder? thanks gene All I have at this point is systemd reported trace of the crash: Process 1381 (dovecot) of user 0 dumped core. Stack trace of thread 1381: #0 0x00007e78fad7ed1d n/a (libc.so.6 + 0x16ed1d) #1 0x00007e78fac758d8 n/a (libc.so.6 + 0x658d8) #2 0x00007e78fac99e2e n/a (libc.so.6 + 0x89e2e) #3 0x00007e78fac705d6 snprintf (libc.so.6 + 0x605d6) #4 0x00007e78fad271e1 n/a (libc.so.6 + 0x1171e1) #5 0x00007e78fad27943 __syslog_chk (libc.so.6 + 0x117943) #6 0x00007e78faf38ce5 n/a (libdovecot.so.0 + 0x138ce5) #7 0x00007e78faf36d4d n/a (libdovecot.so.0 + 0x136d4d) #8 0x00007e78faf3701e i_syslog_error_handler (libdovecot.so.0 + 0x13701e) #9 0x000058ca208bd7bf n/a (/usr/bin/dovecot + 0x87bf) #10 0x00007e78faf355e6 i_warning (libdovecot.so.0 + 0x1355e6) #11 0x000058ca208c79fa n/a (/usr/bin/dovecot + 0x129fa) #12 0x00007e78faf5b698 n/a (libdovecot.so.0 + 0x15b698) #13 0x00007e78faf536e4 io_loop_call_io (libdovecot.so.0 + 0x1536e4) #14 0x00007e78faf54c8b io_loop_handler_run_internal (libdovecot.so.0 + 0x154c8b) #15 0x00007e78faf54d47 io_loop_handler_run (libdovecot.so.0 + 0x154d47) #16 0x00007e78faf54f49 io_loop_run (libdovecot.so.0 + 0x154f49) #17 0x00007e78fae9fc00 master_service_run (libdovecot.so.0 + 0x9fc00) #18 0x000058ca208bd017 main (/usr/bin/dovecot + 0x8017) #19 0x00007e78fac376b5 n/a (libc.so.6 + 0x276b5) #20 0x00007e78fac37769 __libc_start_main (libc.so.6 + 0x27769) #21 0x000058ca208bd605 _start (/usr/bin/dovecot + 0x8605) ELF object binary architecture: AMD x86-64
Gene
On Tue, 2025-07-08 at 16:14 -0400, Genes Lists via dovecot wrote:
"systemctl reload docecot" crashed.
systemctl start and restart work fine before and after the reload crash.
Running on archlinux (using the arch dovecot 2.4.1 package).
Probably about 15-20 connected clients at time of crash .
Is this a known issue I wonder?
thanks
gene
All I have at this point is systemd reported trace of the crash:
Process 1381 (dovecot) of user 0 dumped core.
Here'a a better trace of the core dump triggered by "doveadm reload": (plain text so apologize for the wrapping):
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76 #1 0x00007e78fac758d8 in __printf_buffer (buf=buf@entry=0x7ffe54e2f2e0, format=0x7e78fadc1e5e "<%d>%s%n%s%s%.0d%s: ", ap=0x7ffe54e2f3b0, mode_flags=mode_flags@entry=0) at /usr/src/debug/glibc/glibc/stdio- common/vfprintf-process-arg.c:435 #2 0x00007e78fac99e2e in __vsnprintf_internal (string=<optimized out>, maxlen=<optimized out>, format=<optimized out>, args=args@entry=0x7ffe54e2f3b0, mode_flags=mode_flags@entry=0) at vsnprintf.c:96 #3 0x00007e78fac705d6 in __GI___snprintf (s=s@entry=0x7ffe54e2f590 "<20>Jul 8 15:48:08 \376\177", maxlen=maxlen@entry=1024, format=format@entry=0x7e78fadc1e5e "<%d>%s%n%s%s%.0d%s: ") at snprintf.c:31 #4 0x00007e78fad271e1 in __vsyslog_internal (pri=20, fmt=0x7e78faf7e481 "%s", ap=ap@entry=0x7ffe54e2f9e0, mode_flags=mode_flags@entry=2) at syslog.c:184 #5 0x00007e78fad27943 in ___syslog_chk (pri=pri@entry=4, flag=flag@entry=1, fmt=fmt@entry=0x7e78faf7e481 "%s") at syslog.c:110 #6 0x00007e78faf38ce5 in syslog (__pri=4, __fmt=0x7e78faf7e481 "%s") at /usr/include/bits/syslog.h:37 #7 syslog_write (ctx=<optimized out>, format=<optimized out>, args=<optimized out>) at ../lib/failures.c:182 #8 0x00007e78faf36d4d in common_handler (ctx=ctx@entry=0x7e78fb01c0e0 <failure_ctx_warning>, format=0x58ca208ca708 "SIGHUP received - reloading configuration", args=0x7ffe54e2fbe0) at ../lib/failures.c:268 #9 0x00007e78faf3701e in error_handler_real (ctx=0x7e78fb01c0e0 <failure_ctx_warning>, format=<optimized out>, args=<optimized out>) at ../lib/failures.c:281 #10 i_syslog_error_handler (ctx=0x7e78fb01c0e0 <failure_ctx_warning>, format=<optimized out>, args=<optimized out>) at ../lib/failures.c:655 #11 0x000058ca208bd7bf in master_error_handler (ctx=0x7e78fb01c0e0 <failure_ctx_warning>, fmt=0x58ca208ca708 "SIGHUP received - reloading configuration", args=0x7ffe54e2fbe0) at /usr/src/debug/dovecot/dovecot- 2.4.1-4/src/master/main.c:161 #12 0x00007e78faf355e6 in i_warning (format=format@entry=0x58ca208ca708 "SIGHUP received - reloading configuration") at ../lib/failures.c:580 #13 0x000058ca208c79fa in sig_settings_reload (si=<optimized out>, context=<optimized out>) at /usr/src/debug/dovecot/dovecot-2.4.1- 4/src/master/main.c:400 #14 0x00007e78faf5b698 in signal_read (context=<optimized out>) at ../lib/lib-signals.c:389 #15 0x00007e78faf536e4 in io_loop_call_io (io=0x58ca222ee180) at ../lib/ioloop.c:743 #16 0x00007e78faf54c8b in io_loop_handler_run_internal (ioloop=ioloop@entry=0x58ca2228a250) at ../lib/ioloop-epoll.c:222 #17 0x00007e78faf54d47 in io_loop_handler_run (ioloop=ioloop@entry=0x58ca2228a250) at ../lib/ioloop.c:795 #18 0x00007e78faf54f49 in io_loop_run (ioloop=0x58ca2228a250) at ../lib/ioloop.c:768 #19 0x00007e78fae9fc00 in master_service_run (service=0x58ca222899b0, callback=callback@entry=0x0) at ../lib-master/master-service.c:1210 #20 0x000058ca208bd017 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dovecot/dovecot-2.4.1-4/src/master/main.c:965
-- Gene
On 8. Jul 2025, at 23.38, Genes Lists via dovecot <dovecot@dovecot.org> wrote:
On Tue, 2025-07-08 at 16:14 -0400, Genes Lists via dovecot wrote:
"systemctl reload docecot" crashed.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76 #1 0x00007e78fac758d8 in __printf_buffer (buf=buf@entry=0x7ffe54e2f2e0, format=0x7e78fadc1e5e "<%d>%s%n%s%s%.0d%s: ", ap=0x7ffe54e2f3b0, mode_flags=mode_flags@entry=0) at /usr/src/debug/glibc/glibc/stdio- common/vfprintf-process-arg.c:435 #2 0x00007e78fac99e2e in __vsnprintf_internal (string=<optimized out>, maxlen=<optimized out>, format=<optimized out>, args=args@entry=0x7ffe54e2f3b0, mode_flags=mode_flags@entry=0) at vsnprintf.c:96 #3 0x00007e78fac705d6 in __GI___snprintf (s=s@entry=0x7ffe54e2f590 "<20>Jul 8 15:48:08 \376\177", maxlen=maxlen@entry=1024, format=format@entry=0x7e78fadc1e5e "<%d>%s%n%s%s%.0d%s: ") at snprintf.c:31 #4 0x00007e78fad271e1 in __vsyslog_internal (pri=20, fmt=0x7e78faf7e481 "%s", ap=ap@entry=0x7ffe54e2f9e0, mode_flags=mode_flags@entry=2) at syslog.c:184 #5 0x00007e78fad27943 in ___syslog_chk (pri=pri@entry=4, flag=flag@entry=1, fmt=fmt@entry=0x7e78faf7e481 "%s") at syslog.c:110 #6 0x00007e78faf38ce5 in syslog (__pri=4, __fmt=0x7e78faf7e481 "%s") at /usr/include/bits/syslog.h:37 #7 syslog_write (ctx=<optimized out>, format=<optimized out>, args=<optimized out>) at ../lib/failures.c:182
...
Fixed by https://github.com/dovecot/core/commit/9240e3a4386808789d593537a8ebe3e873e89...
On Wed, 2025-07-16 at 09:32 +0300, Timo Sirainen via dovecot wrote:
On 8. Jul 2025, at 23.38, Genes Lists via dovecot <dovecot@dovecot.org> wrote:
On Tue, 2025-07-08 at 16:14 -0400, Genes Lists via dovecot wrote:
"systemctl reload docecot" crashed.
Fixed by https://github.com/dovecot/core/commit/9240e3a4386808789d593537a8ebe3 e873e89683
That is awesome - thank you for tracking it down and fixing.
-- Gene
participants (2)
-
Genes Lists
-
Timo Sirainen