2.3 -> 2.4 segmentation fault
Hello there,
First, thanks for the terrific job you're doing. Dovecot rocks!
I installed some time ago Dovecot on my macbook with Homebrew, that was Dovecot v2.3.18. I recently upgraded everything I installed with Homebrew to the latest which brought Dovecot to v2.4.0. I then modified my dovecot.conf file to make it work with this latest version but now, I constantly get a segmentation fault when I use any /dove/ command : zsh: segmentation fault doveadm
Also, while it looks like Dovecot is listening at the specified port, my email client cannot connect anymore complaining the server refused the connection. tcp4 0 0 127.0.0.1.10143 *.* LISTEN 662
PID TTY TIME CMD
662 ?? 0:06.66 /usr/local/sbin/dovecot -F
Here is my 2.4 conf.
dovecot_config_version = 2.4.0
log_path = /var/log/dovecot
mail_debug = yes
default_vsz_limit = 0
default_internal_user = _dovecot default_login_user = _dovenull default_internal_group = mail
mail_home=/var/mail/%{user} mail_path=sdbox:~/Mail
this is sometimes needed
first_valid_uid = 500
last_valid_gid = 100
if you want to use system users
passdb pam { driver = pam }
userdb passwd-file { driver = passwd-file
args = blocking=no
override_fields = uid=214 gid=vmail
}
protocols imap { }
service imap-login { inet_listener imap {
address = 127.0.0.1
port = 10143 } }
ssl=no
ssl_cert=</path/to/cert.pem
ssl_key=</path/to/key.pem
if you are using v2.3.0-v2.3.2.1 (or want to support non-ECC DH
algorithms)
since v2.3.3 this setting has been made optional.
#ssl_dh=</path/to/dh.pem
namespace inbox { inbox = yes separator = / }
I get this output below from the command line and I have this diagnostic attached. Hopefully that can help someone help me.
2.4.0 (daeb6bc59c): /usr/local/etc/dovecot/dovecot.conf
Pigeonhole version 2.4.0 (1b2d5bb9)
doveconf: Error: managesieve-login: dump-capability process killed with signal 11 zsh: segmentation fault /usr/local/Cellar/dovecot/2.4.0/bin/doveconf
Thanks a lot.
Emmanuel
PS : If I'm using the wrong mailing list, please point me to the right channel
Hello there,
First, thanks for the terrific job you're doing. Dovecot rocks!
I installed some time ago Dovecot on my macbook with Homebrew, that was Dovecot v2.3.18. I recently upgraded everything I installed with Homebrew to the latest which brought Dovecot to v2.4.0. I then modified my dovecot.conf file to make it work with this latest version but now, I constantly get a segmentation fault when I use any dove command : zsh: segmentation fault doveadm
Also, while it looks like Dovecot is listening at the specified port, my email client cannot connect anymore complaining the server refused the connection. tcp4 0 0 127.0.0.1.10143 *.* LISTEN 662
PID TTY TIME CMD 662 ?? 0:06.66 /usr/local/sbin/dovecot -F
Here is my 2.4 conf.
dovecot_config_version = 2.4.0
log_path = /var/log/dovecot
mail_debug = yes
default_vsz_limit = 0
default_internal_user = _dovecot default_login_user = _dovenull default_internal_group = mail
mail_home=/var/mail/%{user} mail_path=sdbox:~/Mail
this is sometimes needed
first_valid_uid = 500
last_valid_gid = 100
if you want to use system users
passdb pam { driver = pam }
userdb passwd-file { driver = passwd-file
args = blocking=no
override_fields = uid=214 gid=vmail
}
protocols imap { }
service imap-login { inet_listener imap {
address = 127.0.0.1
port = 10143 } }
ssl=no
ssl_cert=</path/to/cert.pem
ssl_key=</path/to/key.pem
if you are using v2.3.0-v2.3.2.1 (or want to support non-ECC DH algorithms)
since v2.3.3 this setting has been made optional.
#ssl_dh=</path/to/dh.pem
namespace inbox { inbox = yes separator = / }
I get this output below from the command line and I have this diagnostic attached. Hopefully that can help someone help me.
2.4.0 (daeb6bc59c): /usr/local/etc/dovecot/dovecot.conf
Pigeonhole version 2.4.0 (1b2d5bb9)
doveconf: Error: managesieve-login: dump-capability process killed with signal 11 zsh: segmentation fault /usr/local/Cellar/dovecot/2.4.0/bin/doveconf
Thanks a lot.
Emmanuel
PS : If I'm using the wrong mailing list, please point me to the right channel
On 02/04/2025 19:21 EEST Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote:
Hello there,
First, thanks for the terrific job you're doing. Dovecot rocks!
I installed some time ago Dovecot on my macbook with Homebrew, that was Dovecot v2.3.18. I recently upgraded everything I installed with Homebrew to the latest which brought Dovecot to v2.4.0. I then modified my dovecot.conf file to make it work with this latest version but now, I constantly get a segmentation fault when I use any /dove/ command :
Can you try changing default_vsz_limit to unlimited instead?
Aki
Hello Aki,
Thanks for the suggestion. With this being set: "default_vsz_limit = unlimited", I don't get the seg fault with doveadm anymore.
However, I now have :
% sudo doveadm log errors
Error: cmd log errors:
net_connect_unix(/usr/local/var/run/dovecot/master) failed:
Connection refused
%
And when I look at the logs : Apr 07 09:46:13 master: Panic: file ./time-util.h: line 40 (timeval_add_usecs): assertion failed: (usecs >= 0) Apr 07 09:46:13 master: Error: Raw backtrace: 0 libdovecot.0.dylib 0x000000010cbffa18 backtrace_append
- 61 -> 1 libdovecot.0.dylib 0x000000010cbffb4c backtrace_get + 40 -> 2 libdovecot.0.dylib 0x000000010cc0dfc5 default_fatal_finish + 64 -> 3 libdovecot.0.dylib 0x000000010cc0c9ac default_error_handler + 0 -> 4 libdovecot.0.dylib 0x000000010cc0c97e fatal_handler_real + 0 -> 5 dovecot 0x0000000104405cf8 master_fatal_callback + 231 -> 6 libdovecot.0.dylib 0x000000010cc0cb9e i_fatal + 0 -> 7 libdovecot.0.dylib 0x000000010cc2542b ioloop_iolist_add + 0 -> 8 libdovecot.0.dylib 0x000000010cc239c6 io_loop_handle_timeouts + 613 -> 9 libdovecot.0.dylib 0x000000010cc25f34 io_loop_handler_run_internal + 203 -> 10 libdovecot.0.dylib 0x000000010cc2407b io_loop_handler_run + 223 -> 11 libdovecot.0.dylib 0x000000010cc23f5b io_loop_run + 81 -> 12 libdovecot.0.dylib 0x000000010cb8321e master_service_run + 24 -> 13 dovecot 0x0000000104405609 main + 3097 -> 14 dyld 0x00000002044232cd start + 1805 Apr 07 09:46:13 log(78532): Warning: Killed with signal 15 (by pid=1 uid=0 code=unknown 0) Apr 07 09:46:14 master: Warning: fd limit (ulimit -n) is lower than required under max. load (256 < 2550), because of service anvil { client_limit } Apr 07 09:46:14 master: Info: Dovecot v2.4.0 (daeb6bc59c) starting up for imap (core dumps disabled)
I admit this is a bit obscure to me. I hope this can help you help me.
Emmanuel
Le 03/04/2025 à 08:02, Aki Tuomi via dovecot a écrit :
On 02/04/2025 19:21 EEST Emmanuel Bardet via dovecot<dovecot@dovecot.org> wrote:
Hello there,
First, thanks for the terrific job you're doing. Dovecot rocks!
I installed some time ago Dovecot on my macbook with Homebrew, that was Dovecot v2.3.18. I recently upgraded everything I installed with Homebrew to the latest which brought Dovecot to v2.4.0. I then modified my dovecot.conf file to make it work with this latest version but now, I constantly get a segmentation fault when I use any /dove/ command :
Can you try changing default_vsz_limit to unlimited instead?
Aki
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
Hello Aki, Thanks for the suggestion. With this being set: "default_vsz_limit = unlimited", I don't get the seg fault with doveadm anymore. However, I now have : % sudo doveadm log errors Error: cmd log errors: net_connect_unix(/usr/local/var/run/dovecot/ master) failed: Connection refused % And when I look at the logs : Apr 07 09:46:13 master: Panic: file ./time-util.h: line 40 (timeval_add_usecs): assertion failed: (usecs >= 0) Apr 07 09:46:13 master: Error: Raw backtrace: 0 libdovecot.0.dylib 0x000000010cbffa18 backtrace_append + 61 -
- 613 -> 9 libdovecot.0.dylib 0x000000010cc25f34 io_loop_handler_run_internal + 203 -> 10 libdovecot.0.dylib 0x000000010cc2407b io_loop_handler_run + 223 -> 11 libdovecot.0.dylib 0x000000010cc23f5b io_loop_run + 81 -> 12 libdovecot.0.dylib 0x000000010cb8321e master_service_run + 24 -> 13 dovecot 0x0000000104405609 main + 3097 -
14 dyld 0x00000002044232cd start + 1805 Apr 07 09:46:13 log(78532): Warning: Killed with signal 15 (by pid=1 uid=0 code=unknown 0) Apr 07 09:46:14 master: Warning: fd limit (ulimit -n) is lower than required under max. load (256 < 2550), because of service anvil { client_limit } Apr 07 09:46:14 master: Info: Dovecot v2.4.0 (daeb6bc59c) starting up for imap (core dumps disabled)
1 libdovecot.0.dylib 0x000000010cbffb4c backtrace_get + 40 -> 2 libdovecot.0.dylib 0x000000010cc0dfc5 default_fatal_finish + 64 -> 3 libdovecot.0.dylib 0x000000010cc0c9ac default_error_handler + 0 -> 4 libdovecot.0.dylib 0x000000010cc0c97e fatal_handler_real + 0 - 5 dovecot 0x0000000104405cf8 master_fatal_callback + 231 -> 6 libdovecot.0.dylib 0x000000010cc0cb9e i_fatal + 0 -> 7 libdovecot.0.dylib 0x000000010cc2542b ioloop_iolist_add + 0 -> 8 libdovecot.0.dylib 0x000000010cc239c6 io_loop_handle_timeouts
I admit this is a bit obscure to me. I hope this can help you help me.
Emmanuel
Le 03/04/2025 à 08:02, Aki Tuomi via dovecot a écrit : On 02/04/2025 19:21 EEST Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote:
Hello there,
First, thanks for the terrific job you're doing.
Dovecot rocks!
I installed some time ago Dovecot on my macbook with
Homebrew, that was
Dovecot v2.3.18. I recently upgraded everything I
installed with
Homebrew to the latest which brought Dovecot to v2.4.0.
I then modified
my dovecot.conf file to make it work with this latest
version but now, I
constantly get a segmentation fault when I use any /dove/
command :
Can you try changing default_vsz_limit to unlimited instead?
Aki
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-leave@dovecot.org
On 07/04/2025 11:03 EEST Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote:
Hello Aki,
Thanks for the suggestion. With this being set: "default_vsz_limit = unlimited", I don't get the seg fault with doveadm anymore.
However, I now have :
Can you try upgrading to 2.4.1 first and seeing if that helps?
Aki
Hello Aki,
2.4.0 is the latest available via homebrew. I'm not too sure I can upgrade manually.
% brew info dovecot ==> dovecot: stable 2.4.0 (bottled) IMAP/POP3 server https://dovecot.org/ Installed /usr/local/Cellar/dovecot/2.4.0 (938 files, 22.2MB) * Poured from bottle using the formulae.brew.sh API on 2025-03-25 at 16:01:24 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/d/dovecot.rb
Le 07/04/2025 à 10:09, Aki Tuomi via dovecot a écrit :
On 07/04/2025 11:03 EEST Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote:
Hello Aki,
Thanks for the suggestion. With this being set: "default_vsz_limit = unlimited", I don't get the seg fault with doveadm anymore.
However, I now have :
Can you try upgrading to 2.4.1 first and seeing if that helps?
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
This is of course the same issue I’ve been raising for weeks now. I’ve been waiting for the home brew upgrade.
J
On Apr 7, 2025, at 10:19, Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote:
Hello Aki,
2.4.0 is the latest available via homebrew. I'm not too sure I can upgrade manually.
% brew info dovecot ==> dovecot: stable 2.4.0 (bottled) IMAP/POP3 server https://dovecot.org/ Installed /usr/local/Cellar/dovecot/2.4.0 (938 files, 22.2MB) * Poured from bottle using the formulae.brew.sh API on 2025-03-25 at 16:01:24 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/d/dovecot.rb
Le 07/04/2025 à 10:09, Aki Tuomi via dovecot a écrit :
On 07/04/2025 11:03 EEST Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote:
Hello Aki,
Thanks for the suggestion. With this being set: "default_vsz_limit = unlimited", I don't get the seg fault with doveadm anymore.
However, I now have :
Can you try upgrading to 2.4.1 first and seeing if that helps?
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
John, this is not down to dovecot, it's more homebrew related. I don't feel I can do it myself so I'm left with the homebrew team (@carlocab ;) ) to do it when they have time, so as you I suppose. Once I can upgrade, I'll let this list know whether it fixes my problem.
Le 07/04/2025 à 10:32, John Muccigrosso via dovecot a écrit :
This is of course the same issue I’ve been raising for weeks now. I’ve been waiting for the home brew upgrade.
J
On Apr 7, 2025, at 10:19, Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote:
Hello Aki,
2.4.0 is the latest available via homebrew. I'm not too sure I can upgrade manually.
% brew info dovecot ==> dovecot: stable 2.4.0 (bottled) IMAP/POP3 server https://dovecot.org/ Installed /usr/local/Cellar/dovecot/2.4.0 (938 files, 22.2MB) * Poured from bottle using the formulae.brew.sh API on 2025-03-25 at 16:01:24 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/d/dovecot.rb
Le 07/04/2025 à 10:09, Aki Tuomi via dovecot a écrit :
On 07/04/2025 11:03 EEST Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote: Hello Aki,
Thanks for the suggestion. With this being set: "default_vsz_limit = unlimited", I don't get the seg fault with doveadm anymore.
However, I now have :
Can you try upgrading to 2.4.1 first and seeing if that helps?
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hello there, John,
I don't know which of the 2 actions below I took helped but the result is I got dovecot 2.4.0 working at the end.
I originally installed Homebrew on an Intel based MacBook and I'm now on Apple M2. Hence, I was running running brew with Rosetta. I decided to re-install brew for M2 following https://github.com/orgs/Homebrew/discussions/417#discussioncomment-2556937
Before trying to upgrade dovecot, it used to listen at port 10143. I realised late after the upgrade dovecot listens at port 143 (doveconf -a => imapc_port = 143) and therefore changed my client IMAP account settings.
Hope this helps.
Le 07/04/2025 à 11:16, Emmanuel Bardet via dovecot a écrit :
John, this is not down to dovecot, it's more homebrew related. I don't feel I can do it myself so I'm left with the homebrew team (@carlocab ;) ) to do it when they have time, so as you I suppose. Once I can upgrade, I'll let this list know whether it fixes my problem.
Le 07/04/2025 à 10:32, John Muccigrosso via dovecot a écrit :
This is of course the same issue I’ve been raising for weeks now. I’ve been waiting for the home brew upgrade.
J
On Apr 7, 2025, at 10:19, Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote:
Hello Aki,
2.4.0 is the latest available via homebrew. I'm not too sure I can upgrade manually.
% brew info dovecot ==> dovecot: stable 2.4.0 (bottled) IMAP/POP3 server https://dovecot.org/ Installed /usr/local/Cellar/dovecot/2.4.0 (938 files, 22.2MB) * Poured from bottle using the formulae.brew.sh API on 2025-03-25 at 16:01:24 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/d/dovecot.rb
Le 07/04/2025 à 10:09, Aki Tuomi via dovecot a écrit :
On 07/04/2025 11:03 EEST Emmanuel Bardet via dovecot <dovecot@dovecot.org> wrote: Hello Aki,
Thanks for the suggestion. With this being set: "default_vsz_limit = unlimited", I don't get the seg fault with doveadm anymore.
However, I now have :
Can you try upgrading to 2.4.1 first and seeing if that helps?
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
participants (3)
-
Aki Tuomi
-
Emmanuel Bardet
-
John Muccigrosso