Here of course the missing backtrace:
#0 0x00007fcb470e517c in acl_mailbox_get_aclobj
(box=box at entry=0x5586bfc958f8) at acl-mailbox.c:31
#1 0x00007fcb470d06ed in imap_acl_cmd_myrights (cmd=0x5586bfc0cbe8,
mailbox=0x5586bfc2aef0 "shared/user5 at domain.com", box=<optimized
out>)
at imap-acl-plugin.c:658
#2 cmd_myrights (cmd=0x5586bfc0cbe8) at imap-acl-plugin.c:709
#3 0x00005586bec324d4 in command_exec (cmd=0x5586bfc0cbe8) at
imap-commands.c:201
#4 0x00005586bec3044f in client_command_input (cmd=<optimized out>) at
imap-client.c:1232
#5 0x00005586bec304fa in client_command_input (cmd=<optimized out>) at
imap-client.c:1302
#6 0x00005586bec309d5 in client_handle_next_command
(remove_io_r=<synthetic pointer>, client=0x5586bfc08838) at
imap-client.c:1344
#7 client_handle_input (client=0x5586bfc08838) at imap-client.c:1358
#8 0x00005586bec30f40 in client_input (client=0x5586bfc08838) at
imap-client.c:1402
#9 0x00007fcb473db529 in io_loop_call_io (io=0x5586bfc0d3e0) at
ioloop.c:737
#10 0x00007fcb473dcc12 in io_loop_handler_run_internal
(ioloop=ioloop at entry=0x5586bfbd9f10) at ioloop-epoll.c:222
#11 0x00007fcb473db5d0 in io_loop_handler_run (ioloop=0x5586bfbd9f10) at
ioloop.c:789
#12 0x00007fcb473db790 in io_loop_run (ioloop=0x5586bfbd9f10) at
ioloop.c:762
#13 0x00007fcb4734e353 in master_service_run (service=0x5586bfbd9d60,
callback=callback at entry=0x5586bec3ef90 <client_connected>) at
master-service.c:869
#14 0x00005586bec21f0a in main (argc=<optimized out>, argv=<optimized
out>) at main.c:564
On 16.05.22 16:08, Sebastian Kroczek wrote:> 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
--
Mit freundlichen Gr??en
Sebastian Kroczek
--
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