Displaying 20 results from an estimated 25 matches for "mstream".
Did you mean:
stream
2014 Feb 02
1
Trouble implementing ov_callbacks, endless loop calling seek_func
...llback functions and see if
they can spot what I'm doing wrong, it'd be much appreciated:
size_t SourceFileImplOggVorbis::readFn( void *ptr, size_t size, size_t
nmemb, void *datasource )
{
auto sourceFile = (SourceFileImplOggVorbis *)datasource;
size_t bytes = size * nmemb;
sourceFile->mStream->readData( ptr, bytes );
return nmemb;
}
int SourceFileImplOggVorbis::seekFn( void *datasource, ogg_int64_t offset,
int whence )
{
auto sourceFile = (SourceFileImplOggVorbis *)datasource;
switch( whence ) {
case SEEK_SET:
sourceFile->mStream->seekAbsolute( (off_t)offset );
break;
case S...
2014 Feb 02
0
unsubscribe
...pot what I'm doing wrong, it'd be much appreciated:
>
> size_t SourceFileImplOggVorbis::readFn( void *ptr, size_t size, size_t nmemb, void *datasource )
> {
> auto sourceFile = (SourceFileImplOggVorbis *)datasource;
>
> size_t bytes = size * nmemb;
> sourceFile->mStream->readData( ptr, bytes );
>
> return nmemb;
> }
>
> int SourceFileImplOggVorbis::seekFn( void *datasource, ogg_int64_t offset, int whence )
> {
> auto sourceFile = (SourceFileImplOggVorbis *)datasource;
>
> switch( whence ) {
> case SEEK_SET:
> sourceFi...
2008 Dec 02
1
Panic 1.1.x
...am_read (stream=0x80f1c78) at istream.c:78
_stream = (struct istream_private *) 0x80f1c50
ret = <value optimized out>
__PRETTY_FUNCTION__ = "i_stream_read"
#9 0x080ad32e in i_stream_header_filter_read (stream=0x80f1d30) at istream-header-filter.c:313
mstream = <value optimized out>
ret = 135208240
pos = 0
__PRETTY_FUNCTION__ = "i_stream_header_filter_read"
#10 0x080bb5ed in i_stream_read (stream=0x80f1d58) at istream.c:78
_stream = (struct istream_private *) 0x80f1d30
ret = <value optimized out...
2007 Nov 15
1
imap process consuming 100% CPU (Dovecot 1.0.3)
...m_read(stream = 0x2003147c), line 58 in "istream.c"
> > _stream = 0x20031458
> > (dbx) up
> > istream-header-filter._read(stream = 0x2004aa98), line 234 in "istream-header-filter.c"
> > (dbx) list
> > 234 if ((ret = i_stream_read(mstream->input)) == -2) {
> > 235 if (stream->skip == 0)
> > 236 return -2;
> > 237 }
> > 238 stream->istream.stream_errno = mstream->input->stream_errno;
> >...
2016 Aug 19
2
Crash on opening mailbox
...header (mail=mail at entry=0x7d7e80, field=field at entry=0x7f328d663446 "Message-Id", value_r=value_r at entry=0x7ffc6c9df5e0) at mail.c:187
_data_stack_cur_id = 5
p = 0x7d7e80
ret = <optimized out>
#10 0x00007f328d62be70 in i_stream_mail_get_cached_mail_id (mstream=0x7d5230) at istream-mail.c:50
orig_lookup_abort = MAIL_LOOKUP_ABORT_NEVER
value = 0x7d52a0 ";\024"
ret = 0x7f328d65cc7e ""
i = <optimized out>
mail = 0x7d7e80
headers = {0x7f328d663446 "Message-Id", 0x7f328d6564d5...
2008 Oct 09
5
Panic 1.1.4
...i = 6
size = 65
startpos = 64
colon_pos = 4294967295
parse_size = 64
value_pos = <value optimized out>
ret = 6
continued = false
continues = <value optimized out>
crlf_newline = false
#10 0x080b9385 in read_header (mstream=0x8118da8) at
istream-header-filter.c:163
hdr = (struct message_header_line *) 0x0
highwater_offset = <value optimized out>
pos = <value optimized out>
ret = <value optimized out>
matched = false
hdr_ret = <value optimized out>...
2010 Mar 29
3
2.0.beta4, Panic: stream doesn't support seeking backwards
Hi,
got the following with beta4 while uploading messages from a local
mbox to the dovecot server in my LAN, tested with mutt and sylpheed,
the same action works with 1.2.11:
Mar 29 13:42:46 [dovecot] imap(juergen): Panic: stream doesn't support
seeking backwards
Mar 29 13:42:46 [dovecot] imap(juergen): Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0 [0xb76b7ec4] ->
2010 Feb 27
2
Possible CPU Denial-Of-Service attack to dovecot IMAP.
...time:
---
(gdb) where
#0 0xb7604060 in memset () from /lib/tls/libc.so.6
#1 0x080d7483 in buffer_write (_buf=0x8131db0, pos=135470571,
data=0x8132d52, data_size=2) at buffer.c:54
#2 0x080d74fb in buffer_append (buf=0x0, data=0x8132d52, data_size=2) at
buffer.c:168
#3 0x080cebfe in read_header (mstream=0x8131be8) at
istream-header-filter.c:214
#4 0x080cef07 in i_stream_header_filter_read (stream=0x8131be8) at
istream-header-filter.c:301
#5 0x080cef79 in parse_header (mstream=0x8131be8) at
istream-header-filter.c:323
#6 0x080cefce in i_stream_header_filter_seek (stream=0x8131be8,
v_offset=12881...
2023 Mar 13
1
dovecot crash with Panic: file istream-header-filter.c: line 663
...ar 2023, at 20.17, Patrick Mansfield <patmans at yahoo.com> wrote:
> >
> > Mar 12 10:32:27 goffin dovecot[8269]: imap(patman)<8452><r+ynYLf2PrDAqAEE>: Panic: file istream-header-filter.c: line 663 (i_stream_header_filter_snapshot_free): assertion failed: (snapshot->mstream->snapshot_pending)
>
> This is unfortunately rather difficult to debug. First you should find out which folder and mail this is happening in. You can do that with gdb:
>
> > #16 0x00007fa3849aa60a in index_mail_parse_headers_internal (mail=mail at entry=0x56150ea5fc78, headers=h...
2003 Oct 16
2
A view quirks
...opy from the current folder to the current folder I get
a scrambled mailbox and an error. This might be selfmade, though.
I'm currently trying to find this bug, but the various layers of
[_oi]streams and callback and function pointer structs do not help :)
I think the stream routines hide the mstream(istream(realstream(iostream)))
and the ostream(_ostream(iostream)) behind the same file descriptor
and the data gets written to the wrong position.
BTW: what exactly is "max_pos"?
Greetings and thanks!
Andy
2008 Oct 16
2
dovecot 1.1.4 maildir imap segfault in message_parse_header_next
...startpos = <value optimized out>
colon_pos = 4294967295
parse_size = 0
value_pos = <value optimized out>
ret = -2
continued = false
continues = <value optimized out>
crlf_newline = false
#1 0x080c62f5 in read_header (mstream=0x877d6d0) at istream-header-filter.c:163
hdr = (struct message_header_line *) 0x0
highwater_offset = <value optimized out>
pos = <value optimized out>
ret = <value optimized out>
matched = false
hdr_ret = <value optimized out>...
2018 Feb 07
0
dovecot-2.22.33.2, segfault on empty emails
..._SIZE,
reason=0x55a2a1706678 "read(/dane/domeny/mejor.pl/mail/marcin/.maildir/.Trash/tmp/1518011650.M572516P16520.jowisz) failed: Cached message size smaller than expected (0 < 14, box=Trash, UID=0)") at maildir-mail.c:770
#16 0x00007f7447e6ac52 in i_stream_mail_set_size_corrupted (mstream=mstream at entry=0x55a2a18014f0, size=size at entry=14) at istream-mail.c:95
#17 0x00007f7447e6ae5b in i_stream_mail_read (stream=0x55a2a18014f0) at istream-mail.c:121
#18 0x00007f7447ae9c84 in i_stream_read (stream=stream at entry=0x55a2a1801560) at istream.c:174
#19 0x00007f7447aeaa3d in i_stream...
2006 Aug 17
2
dovecot on OSF/1 4.0
...ect='istream-mmap.o' libtool=no
DEPDIR=.deps depmode=none /usr/bin/posix/sh ../../depcomp cc -std -
DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/pkg/include -ieee -O2 -I/
usr/pkg/include -I/usr/pkg/include -c istream-mmap.c
cc: Error: istream-mmap.c, line 121: In this statement, "mstream-
>mmap_base" and "(-1)" may not be compared for equality or inequality.
if (mstream->mmap_base == MAP_FAILED) {
--------------------^
And:
source='mmap-anon.c' object='mmap-anon.o' libtool=no DEPDIR=.deps
depmode=none /usr/
bin/posix/sh ....
2023 Mar 12
2
dovecot crash with Panic: file istream-header-filter.c: line 663
...hod=PLAIN, rip=192.168.1.4, lip=192.168.1.1, mpid=8479, TLS, session=<PnHKYLf2SrDAqAEE>
Mar 12 10:32:27 goffin dovecot[8269]: imap(patman)<8452><r+ynYLf2PrDAqAEE>: Panic: file istream-header-filter.c: line 663 (i_stream_header_filter_snapshot_free): assertion failed: (snapshot->mstream->snapshot_pending)
Mar 12 10:32:27 goffin audit[8452]: ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=kernel pid=8452 comm="imap" exe="/usr/libexec/dovecot/imap" sig=6 res=1
email client is fairemail version 1.2042a on android, but an older version had the...
2019 May 24
2
Panic: file mail-index-util.c: line 10 (mail_index_uint32_to_offset): assertion failed: (offset < 0x40000000)
....c:621
#11 0x00007ffff76e8969 in index_mail_parse_header_finish (mail=<optimized out>) at index-mail-headers.c:132
#12 index_mail_parse_header (part=<optimized out>, hdr=<optimized out>, mail=<optimized out>) at index-mail-headers.c:312
#13 0x00007ffff7350af9 in read_header (mstream=0x55555584b7f0) at istream-header-filter.c:357
#14 i_stream_header_filter_read (stream=0x55555584b7f0) at istream-header-filter.c:447
#15 0x00007ffff738131a in i_stream_read_memarea (stream=stream at entry=0x55555584b870) at istream.c:313
#16 0x00007ffff738165f in i_stream_read (stream=stream at en...
2008 Sep 18
2
dovecot 1.1.3 coredump
I found imap core in coredump dir:
(gdb) bt
#0 0x00000000004abdea in message_parse_header_next (ctx=0x79c150, hdr_r=0x7fffffffe478) at message-header-parser.c:114
#1 0x00000000004a8193 in read_header (mstream=0x795330) at istream-header-filter.c:162
#2 0x00000000004a84e7 in i_stream_header_filter_read (stream=0x795330) at istream-header-filter.c:288
#3 0x00000000004bc216 in i_stream_read (stream=0x795380) at istream.c:70
#4 0x00000000004bca0d in i_stream_read_data (stream=0x795380, data_r=0x7fffffffe...
2009 Apr 13
0
How can I skip EOH in headers?
...ck for get_stream is called from mail_get_stream in
mail_storage_copy. Further, mbox_save_init is called and it called
mbox_save_get_input_stream.
backtrace (A) for my callback:
#0 i_stream_header_filter_read (stream=0x8147e00) at istream-header-
filter.c:314
#1 0x080cdbaa in parse_header (mstream=0x8147e00) at istream-header-
filter.c:356
#2 0x080cdc0c in i_stream_header_filter_seek (stream=0x8147e00,
v_offset=0, mark=false) at istream-header-filter.c:370
#3 0x080dea5b in i_stream_seek (stream=0x8147e28, v_offset=0) at
istream.c:155
#4 0x080dfeae in i_stream_create_concat (input=0x8...
2019 Mar 26
4
v2.2.27 Panic: file rfc822-parser.h: line 23 (rfc822_parser_deinit): assertion failed: (ctx->data <= ctx->end)
...63c13d55a0, mail=0x5563c13e6de0) at index-mail-headers.c:298
_mail = 0x5563c13e6de0
data = 0x5563c13e6f60
field_idx = <optimized out>
count = <optimized out>
__FUNCTION__ = "index_mail_parse_header"
#10 0x00007f3a7c34779f in read_header (mstream=0x5563c13efef0) at
istream-header-filter.c:246
orig_matched = true
matched = true
max_buffer_size = <optimized out>
ret = <optimized out>
hdr = 0x5563c13d55a0
highwater_offset = <optimized out>
ret2 = <optimized out>...
2013 Apr 23
1
imap Panic: file istream-seekable.c: line 253 (i_stream_seekable_read): assertion failed: (stream->istream.v_offset + stream->pos <= sstream->write_peak)
...77ebf9 in i_stream_read_copy_from_parent (istream=0xd39f00) at istream.c:193
stream = 0xd39ea0
pos = 0
ret = 13868288
__FUNCTION__ = "i_stream_read_copy_from_parent"
#10 0x00007fea0daa1b67 in i_stream_mail_read (stream=0xd39ea0) at istream-mail.c:67
mstream = 0xd39ea0
size = 13868384
ret = 13254133
#11 0x00007fea0d77e866 in i_stream_read (stream=0xd39f00) at istream.c:149
_stream = 0xd39ea0
old_size = 0
ret = 140643221218978
__FUNCTION__ = "i_stream_read"
#12 0x00007fea0d782fc9 in i_stream_crlf...
2019 May 24
0
Panic: file mail-index-util.c: line 10 (mail_index_uint32_to_offset): assertion failed: (offset < 0x40000000)
...0x00007ffff76e8969 in index_mail_parse_header_finish (mail=<optimized out>) at index-mail-headers.c:132
> #12 index_mail_parse_header (part=<optimized out>, hdr=<optimized out>, mail=<optimized out>) at index-mail-headers.c:312
> #13 0x00007ffff7350af9 in read_header (mstream=0x55555584b7f0) at istream-header-filter.c:357
> #14 i_stream_header_filter_read (stream=0x55555584b7f0) at istream-header-filter.c:447
> #15 0x00007ffff738131a in i_stream_read_memarea (stream=stream at entry=0x55555584b870) at istream.c:313
> #16 0x00007ffff738165f in i_stream_read (stre...