* Thomas Leuxner <tlx at leuxner.net> 2017.07.19 14:29:
It seems to have a new side effect which I haven't noticed upfront as it
does not produce logging in Dovecot:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 io_loop_extract_notify_fd (ioloop=0x563456973540) at
ioloop-notify-inotify.c:224
224 ioloop-notify-inotify.c: No such file or directory.
(gdb) bt full
#0 io_loop_extract_notify_fd (ioloop=0x563456973540) at
ioloop-notify-inotify.c:224
ctx = 0x0
io = <optimized out>
fd = <optimized out>
new_inotify_fd = <optimized out>
#1 0x00007f30bc2b740d in mailbox_watch_extract_notify_fd (box=0x563456973fc8,
reason_r=reason_r at entry=0x7ffea4ebcfe8) at mailbox-watch.c:144
ioloop = 0x563456973540
file = 0x0
io = 0x91e89a45d153b800
iop = <optimized out>
temp_ios = {arr = {buffer = 0x5634566690e8, element_size = 8}, v =
0x5634566690e8, v_modifiable = 0x5634566690e8}
ret = <optimized out>
failed = false
#2 0x0000563456150418 in imap_client_hibernate (_client=_client at
entry=0x7ffea4ebd0d0) at imap-client-hibernate.c:221
client = 0x56345668be48
state = 0x563456a4bf20
error = 0x7f30bbfcbb02 <i_set_failure_prefix+194>
"H\211\005\027\353("
ret = 1
fd_notify = -1
fd_hibernate = -1
__FUNCTION__ = "imap_client_hibernate"
#3 0x0000563456146984 in idle_hibernate_timeout (ctx=0x5634566b6170) at
cmd-idle.c:191
client = 0x56345668be48
#4 0x00007f30bbfe09f2 in io_loop_handle_timeouts_real (ioloop=0x5634566719b0)
at ioloop.c:567
timeout = 0x56345697e090
item = 0x56345697e090
tv = {tv_sec = 0, tv_usec = 0}
tv_call = {tv_sec = 1500487741, tv_usec = 857399}
t_id = 3
#5 io_loop_handle_timeouts (ioloop=ioloop at entry=0x5634566719b0) at
ioloop.c:580
_data_stack_cur_id = 2
#6 0x00007f30bbfe2153 in io_loop_handler_run_internal (ioloop=ioloop at
entry=0x5634566719b0) at ioloop-epoll.c:196
ctx = 0x5634566734d0
io = <optimized out>
tv = {tv_sec = 0, tv_usec = 32654}
events_count = 5
msecs = <optimized out>
ret = 0
i = <optimized out>
j = <optimized out>
call = <optimized out>
__FUNCTION__ = "io_loop_handler_run_internal"
#7 0x00007f30bbfe0bdc in io_loop_handler_run (ioloop=ioloop at
entry=0x5634566719b0) at ioloop.c:648
No locals.
#8 0x00007f30bbfe0d88 in io_loop_run (ioloop=0x5634566719b0) at ioloop.c:623
__FUNCTION__ = "io_loop_run"
#9 0x00007f30bbf666d3 in master_service_run (service=0x563456671850,
callback=<optimized out>) at master-service.c:666
No locals.
#10 0x00005634561421d3 in main (argc=1, argv=0x5634566715e0) at main.c:491
set_roots = {0x56345636d6c0 <imap_setting_parser_info>,
0x7f30bc7b0540 <lda_setting_parser_info>, 0x0}
login_set = {auth_socket_path = 0x563456669048 "\001",
postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, callback =
0x56345615d2b0 <login_client_connected>, failure_callback = 0x56345615cbf0
<login_client_failed>,
request_auth_token = 1}
service_flags = <optimized out>
storage_service_flags = <optimized out>
username = 0x0
auth_socket_path = 0x563456166074 "auth-master"
c = <optimized out>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20170719/64d686c8/attachment-0001.sig>
> On July 19, 2017 at 9:16 PM Thomas Leuxner <tlx at leuxner.net> wrote: > > > * Thomas Leuxner <tlx at leuxner.net> 2017.07.19 14:29: > > It seems to have a new side effect which I haven't noticed upfront as it does not produce logging in Dovecot: >Should be fixed with commit 81e832796cdc6af790ed7be8a6c150889f03171c Author: Timo Sirainen <timo.sirainen at dovecot.fi> Date: Wed Jul 19 23:19:12 2017 +0300 virtual: Optimize mailbox_notify_changes() when there's only a single backend mailbox commit 2044eb7652b864a05842933e9097c583cb11256c Author: Timo Sirainen <timo.sirainen at dovecot.fi> Date: Wed Jul 19 23:11:12 2017 +0300 lib-storage: mailbox_watch_extract_notify_fd() - give better reason if mailbox has no IOs This happens currently with virtual mailboxes. commit a6280be05b9c90579bb59ff57a3035661706c3d3 Author: Timo Sirainen <timo.sirainen at dovecot.fi> Date: Wed Jul 19 23:09:13 2017 +0300 lib: io_loop_extract_notify_fd() - Don't crash if no notifys have been added Aki
* Aki Tuomi <aki.tuomi at dovecot.fi> 2017.07.20 05:40:> Should be fixed with > > commit 81e832796cdc6af790ed7be8a6c150889f03171c > Author: Timo Sirainen <timo.sirainen at dovecot.fi> > Date: Wed Jul 19 23:19:12 2017 +0300 > > virtual: Optimize mailbox_notify_changes() when there's only a single backend mailbox > > commit 2044eb7652b864a05842933e9097c583cb11256c > Author: Timo Sirainen <timo.sirainen at dovecot.fi> > Date: Wed Jul 19 23:11:12 2017 +0300 > > lib-storage: mailbox_watch_extract_notify_fd() - give better reason if mailbox has no IOs > > This happens currently with virtual mailboxes. > > commit a6280be05b9c90579bb59ff57a3035661706c3d3 > Author: Timo Sirainen <timo.sirainen at dovecot.fi> > Date: Wed Jul 19 23:09:13 2017 +0300 > > lib: io_loop_extract_notify_fd() - Don't crash if no notifys have been addedThanks I'll wait for them to show in 2.2 branch then. Regards Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20170720/f773baad/attachment.sig>
* Aki Tuomi <aki.tuomi at dovecot.fi> 2017.07.20 05:40:> Should be fixed with > > commit 81e832796cdc6af790ed7be8a6c150889f03171c > Author: Timo Sirainen <timo.sirainen at dovecot.fi> > Date: Wed Jul 19 23:19:12 2017 +0300 > > virtual: Optimize mailbox_notify_changes() when there's only a single backend mailbox > > commit 2044eb7652b864a05842933e9097c583cb11256c > Author: Timo Sirainen <timo.sirainen at dovecot.fi> > Date: Wed Jul 19 23:11:12 2017 +0300 > > lib-storage: mailbox_watch_extract_notify_fd() - give better reason if mailbox has no IOs > > This happens currently with virtual mailboxes. > > commit a6280be05b9c90579bb59ff57a3035661706c3d3 > Author: Timo Sirainen <timo.sirainen at dovecot.fi> > Date: Wed Jul 19 23:09:13 2017 +0300 > > lib: io_loop_extract_notify_fd() - Don't crash if no notifys have been addedAfter some testing with 2.2.devel (bf2fa36) I wasn't able to reproduce the segfaults anymore. Thanks! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20170720/6c8ae39e/attachment-0001.sig>