From vladislav.kurz at webstep.net Mon Nov 13 11:35:14 2017 From: vladislav.kurz at webstep.net (root) Date: Mon, 13 Nov 2017 12:35:14 +0100 Subject: Bug#871921: cyrus-imap: Cyrus squatter fails with segmentation fault error on large mailboxes References: <150255033825.4567.6423082484824702333.reportbug@notaria-quiroga.mailcertificado.net> Message-ID: <151057291419.9540.12873160043943126487.reportbug@mail.webstep.net> Package: cyrus-imapd Version: 2.5.10-3 Followup-For: Bug #871921 Dear Maintainer, I have encountered the same problem. The threshold to trigger this bug seems to be even lower that 10000 mails, probably in the range af o few thousands. I was trying to strece squatter to find out if it is a single mail that makes it crash, but it did not help. Swuatter happily read all the emails, and crashed when trying to do something with one of the many temporary files it uses: open("/var/spool/cyrus/mail/domain/censored.cz/user/some^user/squatKmITgH", O_RDWR|O_CREAT|O_EXCL, 0600) = 110 unlink("/var/spool/cyrus/mail/domain/censored.cz/user/some^user/squatKmITgH") = 0 ... long long output skipped ... write(110, "O\33$O\33IO\33\303O\34EO\34\303O\35\\O\35\303O\36\36O\36\37O\36~O\36"..., 52145) = 52145 lseek(110, 0, SEEK_SET) = 0 mmap(NULL, 770211840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1f5a269000 mmap(NULL, 949834204, PROT_READ, MAP_SHARED, 110, 0) = 0x7f1f21893000 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x7f1f8816c008} --- +++ killed by SIGSEGV +++ Is there any chance someone will look into it? Thanks in advance Vladislav Kurz -- System Information: Debian Release: 9.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages cyrus-imapd depends on: pn cyrus-common ii dpkg 1.18.24 ii libc6 2.24-11+deb9u1 ii libicu57 57.1-6 ii libsasl2-2 2.1.27~101-g0780600+dfsg-3 ii libssl1.1 1.1.0f-3+deb9u1 ii libwrap0 7.6.q-26 ii zlib1g 1:1.2.8.dfsg-5 cyrus-imapd recommends no packages. cyrus-imapd suggests no packages. -- no debconf information