search for: body_size

Displaying 20 results from an estimated 46 matches for "body_size".

2007 Nov 15
1
imap process consuming 100% CPU (Dovecot 1.0.3)
...0x2004aa98), line 234 in "istream-header-filter.c" > > i_stream_read(stream = 0x2004aabc), line 58 in "istream.c" > > i_stream_read_data(stream = 0x2004aabc, data = 0x2ff22630, size = 0x2ff22638, threshold = 1), line 250 in "istream.c" > > message_get_body_size(input = 0x2004aabc, body = 0x2002827c, has_nuls = (nil)), line 107 in "message-size.c" > > index_mail_init_stream(_mail = 0x200281a8, hdr_size = 0x2ff227a8, body_size = 0x2ff227b8), line 502 in "index-mail.c" > > mbox_mail_get_stream(_mail = 0x200281a8, hdr_size = 0x...
2009 Mar 12
0
Sieve - Backtrace after deliver(brabax): Panic: file sieve-cmu.c: line 264 (part_save): assertion failed: (buf->used - 1 == part->body_size.physical_size)
...user: postfix group: postfix /var/syslog Mar 10 22:19:01 aquarius /USR/SBIN/CRON[23838]: (root) CMD (/etc/webmin/fetchmail/check.pl --owner --errors) Mar 10 22:19:04 aquarius deliver(brabax): Panic: file sieve-cmu.c: line 264 (part_save): assertion failed: (buf->used - 1 == part- >body_size.physical_size) Mar 10 22:19:04 aquarius deliver(brabax): Raw backtrace: /usr/lib/dovecot/deliver [0xb8068e01] -> /usr/lib/dovecot/deliver(i_syslog_fatal_handler+0x38) [0xb8068ee8] -> /usr/lib/dovecot/deliver [0xb8068695] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so [0xb7e3...
2009 Oct 13
2
Panic: file sieve-cmu.c: line 262 (part_save): assertion failed: (buf->used - 1 == part->body_size.physical_size)
...are running in the same issue as Maciej Polewczynski does in http://www.dovecot.org/list/dovecot/2008-September/033645.html Is there already a solution? I dont think so? In the TODO-File for 1.2.2 this issue is still reported: #### [...] - sieve-cmu.c crash: i_assert(buf->used - 1 == part->body_size.physical_size); [...] #### I am not able to reproduce the problem but I think it has something to do with the charset of a mail? Because the 2 bits which are used with UTF-8 for special characters? Dovecot is running in a 64bit vServer on a 64bit host. Both are debian lenny with all patches. The...
2005 Sep 19
0
1.0alpha2: two asserts/cores
...(gdb) print *input $2 = {v_offset = 1530, stream_errno = 0, mmaped = 0, closed = 0, seekable = 0, eof = 0, real_stream = 0xb9c78} (gdb) print *part $3 = {parent = 0xb2188, next = 0x0, children = 0xb2228, physical_pos = 1500, header_size = {physical_size = 857, virtual_size = 875, lines = 0}, body_size = {physical_size = 551367, virtual_size = 558548, lines = 0}, flags = 65, context = 0x0} (gdb) up #5 0x00063464 in message_body_search_ctx (ctx=0xffbff3dc, input=0xb9ca0, part=0xb2188) at message-body-search.c:408 408 if (message_body_search_ctx(ctx, input, part-&...
2009 Apr 03
2
Implementation of editheaders in dovecot
...ress 0x15 out of bounds> (gdb) p data_size $5 = 1 /////////////////////////////////////////My code///////////////////////////////////////////////////////// static int rarules_get_stream(struct mail * mail, struct message_size * hdr_size, struct message_size * body_size, struct istream ** stream_r) { struct rarules_mail * ra_mail = RARULES_MAIL_CONTEXT(mail); struct istream * stream = NULL; struct istream ** chunks = NULL; const unsigned int max_chunks = 4; unsigned int i = 0; unsigned int cnt = 0; unsigned int exclude_cnt =...
2009 Sep 01
3
assertion failed while using sieve
Hi, there is a line in TODO: "- sieve-cmu.c crash: i_assert(buf->used - 1 == part->body_size.physical_size); ". Yes, we've really seen this crash. Therefore we upgraded to dovecot-1.2.3 with dovecot-1.2-sieve-0.1.11 in order to use sieve plugin (i.e. not cmu-sieve). We use Solaris 10 on Sun servers, we don't use NFS. However, unfortunately, dovecot with sieve crashes too....
2007 Dec 17
3
FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825
Whenever I try to access an e-mail in the middle (rather than at the end) of the mailbox, my mail-client (KMail) gets an error a message like this is logged in the maillog: IMAP(mi): FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825 IMAP(mi): Disconnected: Disconnected The actual numbers vary, but it is always X vs X+2 The problem started when I upgraded to 1.0.8.
2008 Mar 11
2
Mongrel 1.1.4, possible bug http_response
Hi, I found this while digging inside mongrel to provide IO streaming for mongrel (and thus for Rack and Ramaze): * In socket_error a local variable done is set, which has no effect. * done=() always sets to true, where it (for completeness sake) should honor the passed value. --- a/http_response.rb 2008-03-11 16:59:24.000000000 +0100 +++ b/http_response.rb 2008-03-11 17:02:20.000000000
2009 Apr 13
0
How can I skip EOH in headers?
...7e00, 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=0x8115528) at istream- concat.c:260 #5 0x2831e03d in rarules_get_stream (mail=0x8141860, hdr_size=0x0, body_size=0x0, stream_r=0xbfbfe920) at /home/pitman/work/rarules/src/rarules-plugin.c:181 #6 0x0809d830 in mail_get_stream (mail=0x8141860, hdr_size=0x0, body_size=0x0, stream_r=0xbfbfe920) at mail.c:149 #7 0x0809d936 in mail_storage_copy (t=0x811b980, mail=0x8141860, flags=0, keywords=0x0, dest_m...
2008 Dec 02
1
Panic 1.1.x
...TION__ = "i_stream_read" #11 0x080bb6fd in i_stream_read_data (stream=0x80f1d58, data_r=0xbfab4268, size_r=0xbfab4264, threshold=0) at istream.c:322 ret = 135205628 read_more = false __PRETTY_FUNCTION__ = "i_stream_read_data" #12 0x080b20fc in message_get_body_size (input=0x80f1d58, body=0x80f1380, has_nuls=0x0) at message-size.c:76 msg = (const unsigned char *) 0x0 i = <value optimized out> size = <value optimized out> missing_cr_count = <value optimized out> __PRETTY_FUNCTION__ = "message_get_bo...
2011 Jan 17
0
dsync crash
...30) 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, stream=0xbffff10c) at dbox-attachment.c:223 #10 0xb7f96a79 in get_mail_stream (_mail=0x81993a8, hdr_size=0x0, body_size=0x0, stream_r=0xbffff17c) at dbox-mail.c:234 #11 dbox_mail_get_stream (_mail=0x81993a8, hdr_size=0x0, body_size=0x0, stream_r=0xbffff17c) at dbox-mail.c:253 #12 0xb7f3d4f7 in mail_get_stream (mail=0x0, hdr_size=0x0, body_size=0x0, stream_r=0xbffff17c) at mail.c:179 #13 0xb7d1a66a in zlib_mail_save_...
2005 Aug 24
0
verbose imap logging
...k_partial(ctx->select_counter, ctx->cur_mail->uid, &partial, ctx->cur_input, body->skip); } - + ctx->client->retr_bytes+=size->virtual_size; return fetch_stream(ctx, size); } @@ -317,6 +317,7 @@ /* BODY[] - fetch everything */ message_size_add(&body_size, &hdr_size); fetch_size = &body_size; + ctx->client->retr_messages++; break; case 'H': /* BODY[HEADER] - fetch only header */ @@ -326,6 +327,7 @@ /* BODY[TEXT] - skip header */ i_stream_skip(ctx->cur_input, hdr_size.physical_size);...
2005 Sep 01
0
another assert/core with 1.0alpha1
...(ctx=0xffbff3a0, mail=0xaf2b0) at mbox-sync-update.c:443 443 ctx->mail.uid = mail->uid; (gdb) print *ctx $1 = {sync_ctx = 0xffbff708, mail = {uid = 13, idx_seq = 0, keywords = { buffer = 0x0, element_size = 0}, flags = 0 '\0', uid_broken = 0, from_offset = 0, body_size = 8816, offset = 36747, space = 0}, seq = 3, hdr_offset = 36747, body_offset = 37555, header_first_change = 779, header_last_change = 4294967295, header = 0xa20b0, hdr_md5_sum = "3\207I\234?\027\032P??C?e8?V", content_length = 18446744073709551615, hdr_pos = {754, 4294967295, 779,...
2005 Sep 07
0
1.0alpha1: new assert/core
...print *input $2 = {v_offset = 1387, stream_errno = 0, mmaped = 0, closed = 0, seekable = 0, eof = 0, real_stream = 0xb95c8} (gdb) print part *part $3 = {parent = 0xb1918, next = 0xb19b8, children = 0x0, physical_pos = 1384, header_size = {physical_size = 93, virtual_size = 98, lines = 0}, body_size = {physical_size = 4312, virtual_size = 4428, lines = 116}, flags = 72, context = 0x0} (gdb) print found $4 = 0 (gdb) print part->physical_pos $5 = 1384 (gdb) print part->parte ent $6 = (struct message_part *) 0xb1918 (gdb) print *(part->part ent) $7 = {parent = 0x0, next = 0x0, childre...
2005 Jun 16
1
imap crash
...=2028) at mbox-sync-parse.c:521 #2 0x080689d0 in mbox_file_seek (mbox=0x80c3ba8, view=0x80c8ea8, seq=2028, deleted_r=0xbffff748) at mbox-file.c:164 #3 0x0806a91f in mbox_mail_seek (mail=0x80c9200) at mbox-mail.c:63 #4 0x0806ab2a in mbox_mail_get_stream (_mail=0x80c9200, hdr_size=0x0, body_size=0x0) at mbox-mail.c:176 #5 0x0808cc55 in mail_get_stream (mail=0xfffffffe, hdr_size=0x0, body_size=0x0) at mail.c:106 #6 0x080760ef in index_mail_get_header_stream (_mail=0x80c9200, _headers=0x80c95d8) at index-mail-headers.c:606 #7 0x0808cc31 in mail_get_header_stream (mail=0xffffff...
2010 Jun 21
1
Plugin Handle input messages
...get this input.... My plugin is based in zlib plugin. In "static int zlib_permail_get_stream" function, have it. if (imail->data.stream != NULL || (_mail->uid == 0 && zuser->save_handler == NULL)) { return zmail->super.get_stream(_mail, hdr_size, body_size, stream_r); } I think this is the line that return the stream that is the stream sent by client. I try to change this line and put inside this IF , a call to my function to handle with the input email from client. But i got some errors about the input part. In other...
2005 Aug 16
2
test80: assert/core debug info
...f3a0, mail=0xb3900) at mbox-sync-update.c:443 443 ctx->mail.uid = mail->uid; (gdb) print *ctx $1 = {sync_ctx = 0xffbff708, mail = {uid = 21, idx_seq = 0, keywords = {buffer = 0x0, element_size = 0}, keywords__type = 0x0, flags = 8 '\b', uid_broken = 0, from_offset = 0, body_size = 20202, offset = 50, space = 0}, seq = 1, hdr_offset = 50, body_offset = 961, header_first_change = 4294967295, header_last_change = 0, header = 0x9e408, hdr_md5_sum = "\000\005Z? '\222f?\237\237\"??E?", content_length = 20202, hdr_pos = {851, 4294967295, 877, 864, 885},...
2005 Jun 04
0
Crash and Assertion Error
..., parse_line_num = 53, parts = 0x80cb018, envelope = 0x0, body = 0x0, bodystructure = 0x0, uid_string = 0x0, envelope_data = 0x0, seq = 9276, rec = 0xb7dd3854, cache_flags = 0, stream = 0x80f53c4, filter_stream = 0x0, hdr_size = {physical_size = 2347, virtual_size = 2347, lines = 52}, body_size = {physical_size = 374, virtual_size = 388, lines = 14}, parser_ctx = 0x0, parsing_count = 0, keywords = { buffer = 0x0, element_size = 0}, parse_header = 0, save_envelope = 0, save_sent_date = 0, save_bodystructure_header = 0, save_bodystructure_body = 0, parsed_bodystructure = 0, h...
2010 Feb 27
2
Possible CPU Denial-Of-Service attack to dovecot IMAP.
...9 in i_stream_read_data (stream=0x812c488, data_r=0xbf9d82e4, size_r=0xbf9d82e8, threshold=2) at istream.c:366 #11 0x080d400b in message_get_header_size (input=0x812c488, hdr=0x81298fc, has_nuls=0x0) at message-size.c:56 #12 0x0808f976 in index_mail_init_stream (mail=0x81297d0, hdr_size=0xbf9d83b0, body_size=0xbf9d8390, stream_r=0x0) at index-mail.c:852 #13 0x080838a1 in mbox_mail_get_stream (_mail=0x81297d0, hdr_size=0xbf9d83b0, body_size=0xbf9d8390, stream_r=0xbf9d838c) at mbox-mail.c:322 #14 0x0808e9ac in index_mail_get_virtual_size (_mail=0x81297d0, size_r=0xbf9d8400) at index-mail.c:397 #15 0x0806...
2010 Sep 01
3
Dovecot - some more optimisations
I did some more optimisation. Most performance hit in Dovecot do "for loop" in string operations. In one case (in message-parser.c) "for loop" has another "for" inside with the same variable used as iterator. This case is very hard to optimise by compiler. I do changes only in top functions listed in oprofile. Maybe I do more in future. Code was analysed and