[LBBS-171] io: Intermittent hangs when writing large amount of data
This doesn't reproduce consistently but has been observed twice now in the past week, where when opening an email with large attachments using webmail, the IMAP module got locked up:
Thread 30 (Thread 0x7ffb757fa6c0 (LWP 4171309) "lbbs"):
#0 0x00007ffba59a880a in __GI_sendfile64 () at ../sysdeps/unix/syscall-template.S:120
#1 0x0000561b50f99c74 in bbs_sendfile (out_fd=92, in_fd=130, offset=0x7ffb757f37d0, count=5900767) at socket.c:2761
res = 140717984815120
written = 0
localoffset = 0
pfd = {fd = 92, events = 62, revents = 0}
__func__ = "bbs_sendfile"
#2 0x00007ffb885b1a6a in send_message (imap=0x7ffb757f9810, fbr=0x7ffb980e5780, item=0x7ffb885fb902 "BODY[]", fp=0x7ffb757f3c58, size=0x7ffb757f3c50, fullname=0x7ffb757f3cc0 "/home/bbs/maildir/1/.REDACTED/cur/1785519021103793,S=5900767,U=817,M=2457:2,S", sendmask=0) at imap_server_fetch.c:599
sendsize = 5900767
offset = 524288
__func__ = "send_message"
#3 0x00007ffb885b2330 in process_fetch_finalize (imap=0x7ffb757f9810, fetchreq=0x7ffb757f5fc0, seqno=2, fullname=0x7ffb757f3cc0 "/home/bbs/maildir/1/.REDACTED/cur/1785519021103793,S=5900767,U=817,M=2457:2,S", response=0x7ffb757f3ed0 "UID 817", responselen=8192, buf=0x7ffb757f5ee0, len=0x7ffb757f5edc) at imap_server_fetch.c:808
fbr = 0x7ffb980e5780
fp = 0x7ffb980f79e0
size = 5900767
res = 0
mime = 0x0
__func__ = "process_fetch_finalize"
#4 0x00007ffb885b3002 in process_fetch (imap=0x7ffb757f9810, usinguid=1, fetchreq=0x7ffb757f5fc0, sequences=0x7ffb757f77d1 "817", tagged=1) at imap_server_fetch.c:1023
This was with TLS. Related to this, when this happened, the IO thread seems to be stuck on poll so something somewhere isn't processing I/O when this happens.
Comments
You must be logged in to leave a comment.