I've tried this on both Solaris 8 and SuSE Enterprise 9 (64-bit).
I get a assert-crash when using a gzipped mbox folder
. OK Logged in.
. SELECT test.gz
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Label4 $Label2 
$Label1 $Label3 $Label5)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 167 EXISTS
* 0 RECENT
* OK [UNSEEN 2] First unseen.
* OK [UIDVALIDITY 1096038620] UIDs valid
* OK [UIDNEXT 42890] Predicted next UID
. OK [READ-ONLY] Select completed.
. FETCH 167 FULL
* 167 FETCH (FLAGS () INTERNALDATE "05-Jan-2003 07:05:37 +0000" 
RFC822.SIZE 4693 ENVELOPE ("Sat, 04 Jan 2003 21:05:48 -0800"
"[xxxxxxx]
xx: xxxx xxxxxxxxxxx" (("xxxxx xxxxxxxx" NIL
"xxxxxxxxxxxx"
"xxxxx.xxx")) ((NIL NIL "xxxxxxx-xxxxxx"
"xxxxxxxxxx.xx")) (("xxxxx
xxxxxxxx" NIL "xxxxxxxxxxxx" "xxxxx.xxx"))
(("xxxxxxx xxxx xxxx" NIL
"xxxxxxx" "xxxxxxxxxx.xx")) NIL NIL NIL
"<xxxxxxxx.xxxxxxx at xxxxx.xxx>")
BODY ("text" "plain" ("charset"
"us-ascii" "format" "flowed") NIL NIL
"7bit" 3408 35))
. OK Fetch completed.
. FETCH 167 BODY[]
Connection closed by foreign host.
dovecot: Jul 23 15:35:39 Info: imap-login: Login: user=<xxxxxxxx>, 
method=PLAIN, rip=xxx.xxx.xxx.xxx, lip=xxx.xxx.xxx.xxx
dovecot: Jul 23 15:35:39 Info: auth(default): new auth connection: pid=841
dovecot: Jul 23 15:35:54 Panic: IMAP 888 xxxxxxxx xxx.xxx.xxx.xxx : file 
istream-raw-mbox.c: line 363 (i_stream_create_raw_mbox): assertion 
failed: (input->v_offset == 0)
dovecot: Jul 23 15:35:54 Error: IMAP 888 xxxxxxxx xxx.xxx.xxx.xxx : Raw 
backtrace: imap [0x4833b8] -> imap [0x483413] -> imap [0x482e46] ->
imap
[0x43ce47] ->
imap(mbox_file_open_stream+0x40) [0x434f40] -> imap [0x4363c1] -> imap 
[0x436778] -> imap(mail_get_stream+0xa) [0x4547ea] -> 
imap(index_mail_set_seq+0x144) [
0x44b444] -> imap [0x436a79] -> imap(mail_set_seq+0x7) [0x454697] -> 
imap(index_storage_search_next_nonblock+0xd7) [0x44ef07] -> 
imap(mailbox_search_next_non
block+0x10) [0x455ef0] -> imap(mailbox_search_next+0x20) [0x455f20] -> 
imap(imap_fetch+0x87) [0x41d457] -> imap(cmd_fetch+0x1f4) [0x4174b4] -> 
imap [0x41b2e4
] -> imap [0x41b2d8] -> imap [0x41bc91] -> imap(client_input+0x5f) 
[0x41bdaf] -> imap(io_loop_handler_run+0xf7) [0x489d97] -> 
imap(io_loop_run+0x28) [0x48906
8] -> imap(main+0x462) [0x4233b2] -> 
/lib64/tls/libc.so.6(__libc_start_main+0xea) [0x2a9578caaa] -> 
imap(__ctype_b_loc+0x4a) [0x415b3a]
dovecot: Jul 23 15:35:54 Error: child 888 (imap) killed with signal 6
dovecot -n output:
# 1.1.1: /opt/RDGdovect/etc/dovecot.conf
base_dir: /opt/RDGdovect/var/run/
log_path: /opt/RDGdovect/var/log/dovecot.log
info_log_path: /opt/RDGdovect/var/log/dovecot.log
protocols: imap
listen: *:143
ssl_disable: yes
disable_plaintext_auth: no
shutdown_clients: no
login_dir: /opt/RDGdovect/var/run/login
login_executable: /opt/RDGdovect/libexec/dovecot/imap-login
login_greeting: University of Reading IMAP test1.1 ready.
login_process_per_connection: no
verbose_proctitle: yes
mail_location: 
mbox:/export/folders/%13.h/mail/:INBOX=/export/mail/%13.h/INBOX:INDEX=/export/indexes/%13.h
mbox_very_dirty_syncs: yes
mail_drop_priv_before_exec: yes
mail_plugins: zlib
mail_log_prefix: %Us %p %u %r :
imap_client_workarounds: outlook-idle delay-newmail
auth default:
   mechanisms: plain login
   username_format: %Ln
   verbose: yes
   debug: yes
   passdb:
     driver: ldap
     args: /opt/RDGdovect/etc/dovecot-ldap.conf
   userdb:
     driver: passwd-file
     args: /opt/RDGdovect/etc/userdb
I've attached the relevant test.gz file (anonymised for the test)
Has anybody else got it working?
Best Wishes,
Chris
-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.gz
Type: application/x-gzip
Size: 42799 bytes
Desc: not available
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20080723/125f42af/attachment-0002.gz>
On Wed, 2008-07-23 at 15:58 +0100, Chris Wakelin wrote:> I've tried this on both Solaris 8 and SuSE Enterprise 9 (64-bit). > > I get a assert-crash when using a gzipped mbox folder..> istream-raw-mbox.c: line 363 (i_stream_create_raw_mbox): assertion > failed: (input->v_offset == 0)Fixed: http://hg.dovecot.org/dovecot-1.1/rev/0c67730b9002 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080724/83ca77d0/attachment-0002.bin>
Timo Sirainen wrote:> On Wed, 2008-07-23 at 15:58 +0100, Chris Wakelin wrote: >> I've tried this on both Solaris 8 and SuSE Enterprise 9 (64-bit). >> >> I get a assert-crash when using a gzipped mbox folder > .. >> istream-raw-mbox.c: line 363 (i_stream_create_raw_mbox): assertion >> failed: (input->v_offset == 0) > > Fixed: http://hg.dovecot.org/dovecot-1.1/rev/0c67730b9002 >Well, now it doesn't assert crash, but (on the Solaris 8 machine):> dovecot: Jul 24 00:22:22 Error: IMAP 13458 xxxxxxxx xxx.xxx.xxx.xxx : Cached message offset 75979 is invalid for mbox file (read-only mbox stream) > dovecot: Jul 24 00:22:22 Error: IMAP 13458 xxxxxxxx xxx.xxx.xxx.xxx : Cached message offset 75979 is invalid for mbox file (read-only mbox stream) > dovecot: Jul 24 00:22:22 Error: IMAP 13458 xxxxxxxx xxx.xxx.xxx.xxx : Losing sync for mail uid=39 in mbox file (read-only mbox stream) > dovecot: Jul 24 00:22:22 Error: IMAP 13458 xxxxxxxx xxx.xxx.xxx.xxx : Unexpectedly lost From-line at 75979 > dovecot: Jul 24 00:22:22 Error: IMAP 13458 xxxxxxxx xxx.xxx.xxx.xxx : FETCH for mailbox test.gz UID 39 got too little data: 0 vs 1671 > dovecot: Jul 24 00:22:22 Error: IMAP 13458 xxxxxxxx xxx.xxx.xxx.xxx : Corrupted index cache file /export/indexes/xxxxxxxx/.imap/test.gz/dovecot.index.cache: Broken virtual size for mail UID 39 > dovecot: Jul 24 00:22:22 Info: IMAP 13458 xxxxxxxx xxx.xxx.xxx.xxx : Disconnected: Disconnected bytes=135/88800after (I think - I was picking messages at "random"), . SELECT test.gz (ok) . FETCH 1:167 FULL (ok) . FETCH 167 BODY[] (ok) . FETCH 123 BODY[] * 123 FETCH (BODY[] {1769} (ok) . FETCH 39 BODY[] * 39 FETCH (BODY[] {1671} Connection closed by foreign host. I'd deleted the index files to be sure it wasn't left over from the previous problems. I'll try on the SuSE box as well. Best Wishes, Chris -- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin at reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094