Fatal Error after upgrade to 2:2.3.19-2+debian11

Sebastian Kroczek skroczek at wavecon.de
Mon May 16 14:08:09 UTC 2022


after installing the dovecot-dbg package I now get additional error logs 
(or maybe I missed them before):

May 16 15:47:21 wv-mail-imap1-1 dovecot: 
imap(user3 at domain.com)<Cvn4QiHfzoAfrHBI>: Panic: Module context 
acl_storage_module missing
May 16 15:47:21 wv-mail-imap1-1 dovecot: 
imap(user3 at domain.com)<Cvn4QiHfzoAfrHBI>: Error: Raw backtrace: 
/usr/lib/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f5aeeeb1582] 
-> /usr/lib/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f5aeeeb169e] 
-> /usr/lib/dovecot/libdovecot.so.0(+0x1022fb) [0x7f5aeeebe2fb] -> 
/usr/lib/dovecot/libdovecot.so.0(+0x102391) [0x7f5aeeebe391] -> 
/usr/lib/dovecot/libdovecot.so.0(+0x55589) [0x7f5aeee11589] -> 
/usr/lib/dovecot/modules/lib01_acl_plugin.so(+0x7742) [0x7f5aeebd6742] 
-> /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so(+0x36ed) 
[0x7f5aeebc96ed] -> dovecot/imap [user3 at domain.com 31.172.112.72 
MYRIGHTS](command_exec+0xa4) [0x55f192b994d4] -> dovecot/imap 
[user3 at domain.com 31.172.112.72 MYRIGHTS](+0x2044f) [0x55f192b9744f] -> 
dovecot/imap [user3 at domain.com 31.172.112.72 MYRIGHTS](+0x204fa) 
[0x55f192b974fa] -> dovecot/imap [user3 at domain.com 31.172.112.72 
MYRIGHTS](client_handle_input+0x1b5) [0x55f192b979d5] -> dovecot/imap 
[user3 at domain.com 31.172.112.72 MYRIGHTS](client_input+0x70) 
[0x55f192b97f40] -> 
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69) [0x7f5aeeed4529] 
-> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x132) 
[0x7f5aeeed5c12] -> 
/usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x50) 
[0x7f5aeeed45d0] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x40) 
[0x7f5aeeed4790] -> 
/usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7f5aeee47353] -> dovecot/imap [user3 at domain.com 31.172.112.72 
MYRIGHTS](main+0x4fa) [0x55f192b88f0a] -> 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f5aeec17d0a] 
-> dovecot/imap [user3 at domain.com 31.172.112.72 MYRIGHTS](_start+0x2a) 
[0x55f192b88fca]


and the backtrace looks like this. But I'm not sure if I did everything 
right, because I use systemd-coredump to create the backtrace and I 
don't know much about gdb and core-dumps:

~# coredumpctl gdb
Failed to acquire bus: No such file or directory
            PID: 264430 (imap)
            UID: 5000 (vmail)
            GID: 5000 (vmail)
         Signal: 11 (SEGV)
      Timestamp: Mon 2022-05-16 15:50:43 CEST (1min 15s ago)
   Command Line: dovecot/imap [user2 at domain.com 31.172.112.72 MYRIGHTS]
     Executable: /usr/lib/dovecot/imap
  Control Group: /system.slice/dovecot.service
           Unit: dovecot.service
          Slice: system.slice
        Boot ID: acb78ce2252049778ff969755d277453
     Machine ID: 1367ff1e75be457cacbf5e204a28711b
       Hostname: wv-mail-imap1-1
        Storage: 
/var/lib/systemd/coredump/core.imap.5000.acb78ce2252049778ff969755d277453.264430.1652709043000000.zst
        Message: Process 264430 (imap) of user 5000 dumped core.

                 Stack trace of thread 264430:
                 #0  0x00007f8e0798617c acl_mailbox_get_aclobj 
(lib01_acl_plugin.so + 0xf17c)
                 #1  0x00007f8e079716ed imap_acl_cmd_myrights 
(lib02_imap_acl_plugin.so + 0x36ed)
                 #2  0x0000560b7d6ec4d4 command_exec (imap + 0x224d4)
                 #3  0x0000560b7d6ea44f client_command_input (imap + 
0x2044f)
                 #4  0x0000560b7d6ea4fa client_command_input (imap + 
0x204fa)
                 #5  0x0000560b7d6ea9d5 client_handle_next_command (imap 
+ 0x209d5)
                 #6  0x0000560b7d6eaf40 client_input (imap + 0x20f40)
                 #7  0x00007f8e07c7c529 io_loop_call_io (libdovecot.so.0 
+ 0x118529)
                 #8  0x00007f8e07c7dc12 io_loop_handler_run_internal 
(libdovecot.so.0 + 0x119c12)
                 #9  0x00007f8e07c7c5d0 io_loop_handler_run 
(libdovecot.so.0 + 0x1185d0)
                 #10 0x00007f8e07c7c790 io_loop_run (libdovecot.so.0 + 
0x118790)
                 #11 0x00007f8e07bef353 master_service_run 
(libdovecot.so.0 + 0x8b353)
                 #12 0x0000560b7d6dbf0a main (imap + 0x11f0a)
                 #13 0x00007f8e079bfd0a __libc_start_main (libc.so.6 + 
0x26d0a)
                 #14 0x0000560b7d6dbfca _start (imap + 0x11fca)

GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/dovecot/imap...
Reading symbols from 
/usr/lib/debug/.build-id/f5/ac49ff1d62fcb8549156a4db6555ea223176b8.debug...
[New LWP 264430]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `dovecot/imap'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8e0798617c in acl_mailbox_get_aclobj 
(box=box at entry=0x560b7e510c08) at acl-mailbox.c:31
31	acl-mailbox.c: No such file or directory.





If this is not the information you need and you want me to do something 
different here, please just let me know.

Thanks

Sebastian


On 16.05.22 15:28, Timo Sirainen wrote:
> On 16. May 2022, at 14.09, Sebastian Kroczek <skroczek at wavecon.de> wrote:
>>
>> Hello all,
>>
>> I updated the server tonight and with it Dovecot from 2.2.27 to 2:2.3.19-2+debian11. However, there seems to be a problem with the ACLs, because since then fatal errors are logged (see core dump). I suspect that some outdated configuration is causing this behavior, but so far I couldn't figure out which one it could be. I also have no clue right now how to debug this further.
>> Thank you very much for your help. If more information are needed, I will of course be happy to provide them.
> ..
>>                 #0  0x00007f5db938c17c acl_mailbox_get_aclobj (lib01_acl_plugin.so + 0xf17c)
>>                 #1  0x00007f5db93776ed n/a (lib02_imap_acl_plugin.so + 0x36ed)
> 
> It looks like one of the IMAP ACL commands causes the crash, but other than that this isn't enough information and I can't easily reproduce. Can you install dovecot-dbg package and see if you can get a gdb backtrace? :
> 
> gdb /usr/lib/dovecot/imap /path/to/core
> bt full
> 



--
Wavecon GmbH

Anschrift:      Gustavstraße 18, 90762 Fürth
Website:        www.wavecon.de
Support:        support at wavecon.de

Telefon:        +49 (0)911-1206581 (werktags von 9 - 17 Uhr)
Hotline 24/7:   0800-WAVECON
Fax:            +49 (0)911-2129233

Registernummer: HRB Fürth 18164
GF:             Cemil Degirmenci
UstID:          DE251398082

Pflichtinformationen nach Art. 13 DSGVO siehe wavecon.de/de/datenschutz


More information about the dovecot mailing list