search for: i_stream_skip

Displaying 20 results from an estimated 27 matches for "i_stream_skip".

2017 Jul 05
2
gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
...With this change applied to fresh origin/master-2.2 I see no error: --- a/src/lib-compression/istream-zlib.c +++ b/src/lib-compression/istream-zlib.c @@ -417,7 +417,7 @@ i_stream_zlib_seek(struct istream_private *stream, uoff_t v_offset, bool mark) } i_stream_skip(&stream->istream, avail); - } while ((ret = i_stream_read(&stream->istream)) > 0); + } while (i_stream_read(&stream->istream) > 0); i_assert(ret == -1); if (stream->istream.v_offset != v_offset) { But if ret...
2020 Nov 10
1
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
...b-storage/index/index-mail-binary.c > index 2577f1afe5..f7bf984916 100644 > --- a/src/lib-storage/index/index-mail-binary.c > +++ b/src/lib-storage/index/index-mail-binary.c > @@ -339,7 +339,7 @@ blocks_count_lines(struct binary_ctx *ctx, struct istream *full_input) > i_stream_skip(full_input, skip); > cur_block_offset += skip; > > - if (cur_block->input->eof) { > + if (i_stream_read_eof(cur_block->input)) { > /* go to the next block */ > if (++block_idx ==...
2004 Jun 06
2
Errors and periodic corruption using 99.10.5 release with mbox
Hi, I'm seeing these errors in our logs periodically: file istream.c: line 135 (i_stream_skip): assertion failed: (stream->v_size == 0 || stream->v_offset + count <= stream->v_size) Timeout leak: 0x8069328 Any idea on what may be causing these? System is freebsd, format is mbox. I'm also seeing periodic corruption of mailboxes. It's easily fixed because it's a...
2020 Nov 04
2
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
Hi, I would like to report an issue which is 100% reproducible with a specific mail available in the reproducer attached to Red Hat's bugzilla <https://bugzilla.redhat.com/show_bug.cgi?id=1894418> (https://bugzilla.redhat.com/attachment.cgi?id=1726535): -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- Return-Path: <XXXXXXXXX at
2017 Jul 05
0
gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
...rigin/master-2.2 I see no error: > --- a/src/lib-compression/istream-zlib.c > +++ b/src/lib-compression/istream-zlib.c > @@ -417,7 +417,7 @@ i_stream_zlib_seek(struct istream_private *stream, > uoff_t v_offset, bool mark) > } > > i_stream_skip(&stream->istream, avail); > - } while ((ret = i_stream_read(&stream->istream)) > 0); > + } while (i_stream_read(&stream->istream) > 0); > i_assert(ret == -1); > > if (stream->istream.v_offset !...
2010 Aug 31
0
istream_read like zlib, but without zlib
...ache */ i_stream_compress(stream); } if (stream->pos == stream->buffer_size) return -2; /* buffer full */ } } if(emxstream->supersize == 0){ /* need to read more data. try to read a full CHUNK_SIZE */ i_stream_skip(stream->parent, emxstream->prev_size); if (i_stream_read_data(stream->parent, &data, &size, CHUNK_SIZE-1) == -1 && size == 0) { if (stream->parent->stream_errno != 0) { stream->istream.stream_errno = stream->parent->stream_...
2017 Jul 05
2
gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
Hello, I use mbox compressed by gzip as read-only folder (using zlib plugin). I have errors in logs: Panic: file istream-zlib.c: line 416 (i_stream_zlib_seek): assertion failed: (ret == -1) and can't read messages in MUA. IMAP commands to reproduce a bug: 1 SELECT "compressed.gz" 2 UID fetch 2 BODY.PEEK[] # sleep 5 3 UID fetch 2 BODY.PEEK[] # repeat sleep/fetch until assert (a
2007 Nov 15
1
imap process consuming 100% CPU (Dovecot 1.0.3)
...op_run(ioloop = 0x2001d0e8), line 329 in "ioloop.c" > > main(argc = 1, argv = 0x2ff22b50, envp = 0x2ff22b58), line 290 in "main.c" > > (dbx) list > > 58 return _stream->read(_stream); > > 59 } > > 60 > > 61 void i_stream_skip(struct istream *stream, uoff_t count) > > 62 { > > 63 struct _istream *_stream = stream->real_stream; > > 64 size_t data_size; > > 65 > > 66 data_size = _stream->pos - _stream->skip; > > 67 i...
2007 Jan 30
1
1.0rc19 with plugins on AIX 5.2
...cot/imap/lib20_zlib_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol i_stream_get_data was referenced from module /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol i_stream_skip was referenced from module /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol i_stream_seek was referenced from module /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so(), but a runtime definition of...
2005 Sep 19
0
1.0alpha2: two asserts/cores
...#21 0x0006e348 in io_loop_run (ioloop=0xa10d8) at ioloop.c:230 #22 0x00029348 in main (argc=0, argv=0xffbffb94, envp=0xffbffb9c) at main.c:229 (gdb) up 4 #4 0x000633bc in message_body_search_ctx (ctx=0xffbff3dc, input=0xb9ca0, part=0xb21d8) at message-body-search.c:395 395 i_stream_skip(input, part->physical_pos - input->v_offset); (gdb) print *ctx $1 = {pool = 0x0, key = 0x98f00 "MEETING", key_len = 7, charset = 0xa9788 "US-ASCII", unknown_charset = 0, search_header = 0} (gdb) print *input $2 = {v_offset = 1530, stream_errno = 0, mmaped = 0, closed = 0...
2006 Sep 20
1
dovecot rc7 assert, core
...76148 in i_panic (format=0x946c0 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:177 177 panic_handler(format, args); (gdb) up #5 0x0006e868 in message_body_search_ctx (ctx=0x946c0, input=0x946f0, part=0x189) at message-body-search.c:395 395 i_stream_skip(input, part->physical_pos - input->v_offset); (gdb) print *ctx $1 = {pool = 0x66696c65, key = 0x2025733a <Address 0x2025733a out of bounds>, key_len = 543975790, charset = 0x65202564 <Address 0x65202564 out of bounds>, unknown_charset = 0, search_header = 0} (gdb) print *input $...
2016 Mar 20
2
[BUG] Dovecot 2.2.22 lmtp child killed with signal 11
...;. Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/local/dovecot/libexec/dovecot/lmtp...done. [New LWP 31124] Core was generated by `dovecot/lmtp'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f466de6d9fc in i_stream_skip (stream=0x0, count=0) at istream.c:241 241 struct istream_private *_stream = stream->real_stream; #0 0x00007f466de6d9fc in i_stream_skip (stream=0x0, count=0) at istream.c:241 _stream = 0x7f4670603020 data_size = 139940470939840 #1 0x00007f466de71e9b in i_stream_concat_skip (c...
2020 Nov 10
0
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
...ex-mail-binary.c b/src/lib-storage/index/index-mail-binary.c index 2577f1afe5..f7bf984916 100644 --- a/src/lib-storage/index/index-mail-binary.c +++ b/src/lib-storage/index/index-mail-binary.c @@ -339,7 +339,7 @@ blocks_count_lines(struct binary_ctx *ctx, struct istream *full_input) i_stream_skip(full_input, skip); cur_block_offset += skip; - if (cur_block->input->eof) { + if (i_stream_read_eof(cur_block->input)) { /* go to the next block */ if (++block_idx == block_count) {...
2005 Jan 07
0
Errors: file istream.c: line 135... assertion failed
I'm getting thease messages in log file: file istream.c: line 135 (i_stream_skip): assertion failed: (stream->v_size == 0 || stream->v_offset + count <= stream->v_size) kernel: pid 23364 (pop3), uid 1042: exited on signal 6 It doesn't happen very often, but I'd like to know what is causing them, any ideas? Should I be worried about it ? System is freebsd, f...
2009 Jun 15
1
Dovecot Antispam plugin
Timo, Christian has reported an error to me on dovecot 1.0.7, where the following code: 199 if (i_stream_read_data(mailstream, &beginning, &size, 5) < 0 || 200 size < 5) { 201 ret = -1; 202 mail_storage_set_error(t->box->storage, 203 ME(NOTPOSSIBLE) 204
2017 Feb 03
0
Crash while reading compressed mbox: Panic: file istream-zlib.c: line 416 (i_stream_zlib_seek): assertion failed: (ret == -1)
...f0) at failures.c:670 #5 0x0000000010ef3e5f in i_panic (format=0x1222cf93 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:275 #6 0x0000000012229238 in i_stream_zlib_seek (stream=0x118dd300, v_offset=56248, mark=false) at istream-zlib.c:416 #7 0x0000000010f05e48 in i_stream_skip (stream=0x118dd370, count=32489) at istream.c:278 #8 0x0000000010f057ba in i_stream_seek (stream=0x118dd370, v_offset=56248) at istream.c:300 #9 0x0000000010b17702 in istream_raw_mbox_get_body_size (stream=0x118ec870, expected_body_size=36695, body_size_r=0x7fffffffe2a0) at istream-raw-mbox.c...
2010 Mar 03
1
plugin Again
Hello.... Someone know ho work the istream-concat ? I made a copy of istream-concat, and use to manipulate my encrypted body. But i got some questions about the stream->pos, stream->skip and position of the message and pointer to buffer. My messages have the W= with the email size decrypted, and it is a little lass that the email size crypto. For exemple: I have a email with 6000k in
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest. I dont think I broke it.. Place into dovecot-source root as usual and compile with: gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H src/lib/liblib.a As per Timo's instructions. # imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX] [clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO] USER = template for
2005 Oct 18
1
1.0alpha3: assert and core
...#21 0x0006e4ac in io_loop_run (ioloop=0xa12d0) at ioloop.c:230 #22 0x00029350 in main (argc=0, argv=0xffbffb9c, envp=0xffbffba4) at main.c:229 (gdb) up 4 #4 0x000633fc in message_body_search_ctx (ctx=0xffbff3e4, input=0xc7ad0, part=0xb63c0) at message-body-search.c:395 395 i_stream_skip(input, part->physical_pos - input->v_offset); (gdb) print input $1 = (struct istream *) 0xc7ad0 (gdb) print *input $2 = {v_offset = 1517, stream_errno = 0, mmaped = 0, closed = 0, seekable = 0, eof = 0, real_stream = 0xc7aa8} (gdb) print *part $3 = {parent = 0xb6370, next = 0x0, children =...
2011 Jan 17
0
dsync crash
...\312\361\360\267O") at failures.c:201 #4 0xb7ebd79a in i_panic (format=0xb7f08c78 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:259 #5 0xb7ef1159 in i_stream_limit_seek (stream=0x82277e8, v_offset=25769827482, mark=false) at istream-limit.c:79 #6 0xb7eede77 in i_stream_skip (stream=0x8227818, count=197) at istream.c:202 #7 0xb7eedf07 in i_stream_seek (stream=0x8227818, v_offset=5630) at istream.c:224 #8 0xb7f93c1f in dbox_attachment_file_get_stream_from (file=0x81ef248, stream=0xbffff10c) at dbox-attachment.c:168 #9 dbox_attachment_file_get_stream (file=0x81ef248,...