Re: [Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-04-11 Thread Tonio




Le 9 avr. 2013 à 22:56, Timo Sirainen t...@iki.fi a écrit :

 On 8.4.2013, at 23.26, to...@starbridge.org wrote:
 
 imap(clean-quarant...@spamguard.fr): Panic: file istream.c: line 153
 (i_stream_read): assertion failed: (_stream-skip != _stream-pos)
 
 http://hg.dovecot.org/dovecot-2.2/rev/fbef40826602 should fix this.
 

Thanks Timo
Its ok now

Regards
Tonio

Re: [Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-04-09 Thread Timo Sirainen
On 8.4.2013, at 23.26, to...@starbridge.org wrote:

 imap(clean-quarant...@spamguard.fr): Panic: file istream.c: line 153
 (i_stream_read): assertion failed: (_stream-skip != _stream-pos)

http://hg.dovecot.org/dovecot-2.2/rev/fbef40826602 should fix this.



Re: [Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-04-08 Thread to...@starbridge.org
Le 07/04/2013 22:56, Timo Sirainen a écrit :
 On Sun, 2013-04-07 at 21:47 +0200, to...@starbridge.org wrote:
 since I've upgraded to 2.2.rc5 (c24783148d78), I've got the previous
 error again:
 It's happening on a large mailbox on almost every emails, with Horde 5
 webmail client (works fine with thunderbird so far)
  Thanks for your help

 Apr  7 21:30:58 mx2 dovecot: imap(clean-quarant...@spamguard.fr): Panic:
 Buffer full (8206  8192, pool none)
 Thanks, this should fix it:
 http://hg.dovecot.org/dovecot-2.2/rev/bb25fa35d887


Hi Timo,
It's ok for this error, but now, on a few email, I've got this:
dovecot --version
2.2.rc6 (548e59794f2e)


imap(clean-quarant...@spamguard.fr): Panic: file istream.c: line 153
(i_stream_read): assertion failed: (_stream-skip != _stream-pos)
Apr  8 22:19:26 mx2 dovecot: imap(clean-quarant...@spamguard.fr): Error:
Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x60ada)
[0x7f692abe1ada] - /usr/lib/dovecot/libdovecot.so.0(+0x60b1e)
[0x7f692abe1b1e] - /usr/lib/dovecot/libdovecot.so.0(i_fatal+0)
[0x7f692aba3415] -
/usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x1b9) [0x7f692abea2a9]
- /usr/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x3d)
[0x7f692abea9dd] - /usr/lib/dovecot/libdovecot-storage.so.0(+0x9b624)
[0x7f692aed8624] -
/usr/lib/dovecot/libdovecot-storage.so.0(index_mail_get_binary_stream+0x77)
[0x7f692aed8ab7] -
/usr/lib/dovecot/libdovecot-storage.so.0(mail_get_binary_stream+0x60)
[0x7f692aeb1640] -
/usr/lib/dovecot/libdovecot-storage.so.0(imap_msgpart_open+0x9f)
[0x7f692af0db4f] - dovecot/imap() [0x418f35] - dovecot/imap()
[0x4175dd] - dovecot/imap(imap_fetch_more+0x34) [0x418534] -
dovecot/imap(cmd_fetch+0x309) [0x40e2c9] -
dovecot/imap(command_exec+0x3c) [0x41621c] - dovecot/imap() [0x415280]
- dovecot/imap() [0x41533a] - dovecot/imap(client_handle_input+0x115)
[0x4155f5] - dovecot/imap(client_input+0x72) [0x4159a2] -
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x36) [0x7f692abf14a6]
- /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd7)
[0x7f692abf22f7] - /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x28)
[0x7f692abf0fe8] -
/usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13)
[0x7f692aba85a3] - dovecot/imap(main+0x270) [0x40b940] -
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f692a815ead]
- dovecot/imap() [0x40ba9d]
Apr  8 22:19:26 mx2 dovecot: imap(clean-quarant...@spamguard.fr): Fatal:
master: service(imap): child 4369 killed with signal 6 (core dumped)


#0  0x7f692a829475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f692a82c6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7f692abe1ae8 in default_fatal_finish (type=optimized out,
status=status@entry=0) at failures.c:191
backtrace = 0x62d818 /usr/lib/dovecot/libdovecot.so.0(+0x60ada)
[0x7f692abe1ada] - /usr/lib/dovecot/libdovecot.so.0(+0x60b1e)
[0x7f692abe1b1e] - /usr/lib/dovecot/libdovecot.so.0(i_fatal+0)
[0x7f692aba3415] - /usr/lib/d...
#3  0x7f692abe1b1e in i_internal_fatal_handler (ctx=0x7fff605d4680,
format=optimized out, args=optimized out) at failures.c:652
status = 0
#4  0x7f692aba3415 in i_panic (format=format@entry=0x7f692ac06e68
file %s: line %d (%s): assertion failed: (%s)) at failures.c:263
ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0}
args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area =
0x7fff605d4770, reg_save_area = 0x7fff605d46b0}}
#5  0x7f692abea2a9 in i_stream_read (stream=stream@entry=0x9fa6a0)
at istream.c:153
_stream = 0x9fa640
old_size = 0
ret = -2
__FUNCTION__ = i_stream_read
#6  0x7f692abea9dd in i_stream_read_data
(stream=stream@entry=0x9fa6a0, data_r=data_r@entry=0x7fff605d4820,
size_r=size_r@entry=0x7fff605d4828, threshold=threshold@entry=0) at
istream.c:479
ret = optimized out
read_more = false
__FUNCTION__ = i_stream_read_data
#7  0x7f692aed8624 in blocks_count_lines (full_input=0x9fa6a0,
ctx=0x7fff605d4830) at index-mail-binary.c:319
block_idx = 5
p = optimized out
size = 0
data = 0x0
ret = optimized out
cur_block = 0x62d488
block_count = 7
cur_offset = 2755
skip = optimized out
#8  index_mail_read_binary_to_cache (_mail=_mail@entry=0x66d630,
part=part@entry=0x672190, include_hdr=include_hdr@entry=false,
binary_r=binary_r@entry=0x7fff605d48e6,
converted_r=converted_r@entry=0x7fff605d48e7) at index-mail-binary.c:393
mail = 0x66d630
cache = 0x657b30
ctx = {mail = 0x66d630, input = 0x685c00, has_nuls = false,
converted = true, blocks = {arr = {buffer = 0x62d3d8, element_size =
24}, v = 0x62d3d8, v_modifiable = 0x62d3d8}, copy_start_offset = 113072}
__FUNCTION__ = index_mail_read_binary_to_cache
#9  0x7f692aed8ab7 in index_mail_get_binary_stream (_mail=0x66d630,
part=0x672190, include_hdr=false, size_r=0x7fff605d49a8,

Re: [Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-04-07 Thread to...@starbridge.org
Le 19/03/2013 07:24, Tonio a écrit :



 Le 18 mars 2013 à 14:47, Timo Sirainen t...@iki.fi a écrit :

 On Sat, 2013-03-16 at 13:51 +0100, to...@starbridge.org wrote:
 Hi Timo,
 I've got a crash with  dovecot 2.2

 dovecot --version
 2.2.rc2 (69c26a9e3be5)

 It's occured when accessing with imap on a large mailbox (around 50k
 messages)

 imap(clean-quarant...@spamguard.fr): Panic: Buffer full (4254  4248,
 pool none)
 These should fix it: http://hg.dovecot.org/dovecot-2.2/rev/689dbeadf168
 http://hg.dovecot.org/dovecot-2.2/rev/ee7352f46d1e



 Thx Timo
 It's ok now

 Regards 
 Tonio 


Hi Timo,
since I've upgraded to 2.2.rc5 (c24783148d78), I've got the previous
error again:
It's happening on a large mailbox on almost every emails, with Horde 5
webmail client (works fine with thunderbird so far)
 Thanks for your help

Apr  7 21:30:58 mx2 dovecot: imap(clean-quarant...@spamguard.fr): Panic:
Buffer full (8206  8192, pool none)
Apr  7 21:30:58 mx2 dovecot: imap(clean-quarant...@spamguard.fr): Error:
Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x608ea)
[0x7f29866848ea] - /usr/lib/dovecot/libdovecot.so.0(+0x6092e)
[0x7f298668492e] - /usr/lib/dovecot/libdovecot.so.0(i_fatal+0)
[0x7f2986646385] - /usr/lib/dovecot/libdovecot.so.0(+0x5d198)
[0x7f2986681198] - /usr/lib/dovecot/libdovecot.so.0(+0x56d90)
[0x7f298667ad90] - /usr/lib/dovecot/libdovecot.so.0(+0x4fc1f)
[0x7f2986673c1f] - /usr/lib/dovecot/libdovecot.so.0(+0x4fc92)
[0x7f2986673c92] - /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x69)
[0x7f298668ce39] - /usr/lib/dovecot/libdovecot.so.0(+0x6ddac)
[0x7f2986691dac] - /usr/lib/dovecot/libdovecot.so.0(+0x6df59)
[0x7f2986691f59] - /usr/lib/dovecot/libdovecot.so.0(+0x6e04b)
[0x7f298669204b] - /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x69)
[0x7f298668ce39] -
/usr/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x3d)
[0x7f298668d6bd] - /usr/lib/dovecot/libdovecot-storage.so.0(+0x9b524)
[0x7f298697b524] -
/usr/lib/dovecot/libdovecot-storage.so.0(index_mail_get_binary_stream+0x77)
[0x7f298697b9b7] -
/usr/lib/dovecot/libdovecot-storage.so.0(mail_get_binary_stream+0x60)
[0x7f2986954590] -
/usr/lib/dovecot/libdovecot-storage.so.0(imap_msgpart_open+0x9f)
[0x7f29869b0a3f] - dovecot/imap() [0x418f35] - dovecot/imap()
[0x4175dd] - dovecot/imap(imap_fetch_more+0x34) [0x418534] -
dovecot/imap(cmd_fetch+0x309) [0x40e2c9] -
dovecot/imap(command_exec+0x3c) [0x41621c] - dovecot/imap() [0x415280]
- dovecot/imap() [0x41533a] - dovecot/imap(client_handle_input+0x115)
[0x4155f5] - dovecot/imap(client_input+0x72) [0x4159a2] -
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x36) [0x7f2986694186]
- /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd7)
[0x7f2986694fd7]
Apr  7 21:30:58 mx2 dovecot: imap(clean-quarant...@spamguard.fr): Fatal:
master: service(imap): child 23573 killed with signal 6 (core dumped)


#0  0x7f29862cc475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x7f29862cc475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f29862cf6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7f29866848f8 in default_fatal_finish (type=optimized out,
status=status@entry=0) at failures.c:191
backtrace = 0x62d6b0 /usr/lib/dovecot/libdovecot.so.0(+0x608ea)
[0x7f29866848ea] - /usr/lib/dovecot/libdovecot.so.0(+0x6092e)
[0x7f298668492e] - /usr/lib/dovecot/libdovecot.so.0(i_fatal+0)
[0x7f2986646385] - /usr/lib/d...
#3  0x7f298668492e in i_internal_fatal_handler (ctx=0x7fffe230f150,
format=optimized out, args=optimized out) at failures.c:652
status = 0
#4  0x7f2986646385 in i_panic (format=format@entry=0x7f29866b3890
Buffer full (%lu  %lu, pool %s)) at failures.c:263
ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0}
args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area =
0x7fffe230f240, reg_save_area = 0x7fffe230f180}}
#5  0x7f2986681198 in buffer_check_limits (data_size=38, pos=8168,
buf=optimized out) at buffer.c:65
extra = optimized out
new_size = 8206
#6  buffer_write (_buf=0x7fffe230f300, pos=8168, data=0x688beb,
data_size=38) at buffer.c:178
buf = optimized out
#7  0x7f298667ad90 in quoted_printable_decode_full (
src=src@entry=0x686c20 ' ' repeats 24 times, br\n, ' '
repeats 20 times, /strong\n, ' ' repeats 16 times, /td\n, '
' repeats 12 times, /tr\n, ' ' repeats 12 times, tr
height=3D\36\ align=3D\center\\n, ' ' repeats 16 times, td
width=3D\62%\ \n, ' ' repeats 17 times..., src_size=8192,
src_pos_r=src_pos_r@entry=0x7fffe230f2f8,
dest=dest@entry=0x7fffe230f300, eof=eof@entry=false) at
quoted-printable.c:61
hexbuf = 3D
src_pos = optimized out
pos = optimized out
next = optimized out
errors = optimized out
#8  0x7f298667af28 in quoted_printable_decode (
src=src@entry=0x686c20 ' ' repeats 24 times, br\n, ' '
repeats 20 times, /strong\n, ' ' repeats 16 times, /td\n, 

Re: [Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-04-07 Thread Timo Sirainen
On Sun, 2013-04-07 at 21:47 +0200, to...@starbridge.org wrote:
 since I've upgraded to 2.2.rc5 (c24783148d78), I've got the previous
 error again:
 It's happening on a large mailbox on almost every emails, with Horde 5
 webmail client (works fine with thunderbird so far)
  Thanks for your help
 
 Apr  7 21:30:58 mx2 dovecot: imap(clean-quarant...@spamguard.fr): Panic:
 Buffer full (8206  8192, pool none)

Thanks, this should fix it:
http://hg.dovecot.org/dovecot-2.2/rev/bb25fa35d887




Re: [Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-03-19 Thread Tonio




Le 18 mars 2013 à 14:47, Timo Sirainen t...@iki.fi a écrit :

 On Sat, 2013-03-16 at 13:51 +0100, to...@starbridge.org wrote:
 Hi Timo,
 I've got a crash with  dovecot 2.2
 
 dovecot --version
 2.2.rc2 (69c26a9e3be5)
 
 It's occured when accessing with imap on a large mailbox (around 50k
 messages)
 
 imap(clean-quarant...@spamguard.fr): Panic: Buffer full (4254  4248,
 pool none)
 
 These should fix it: http://hg.dovecot.org/dovecot-2.2/rev/689dbeadf168
 http://hg.dovecot.org/dovecot-2.2/rev/ee7352f46d1e
 
 
 

Thx Timo
It's ok now

Regards 
Tonio 




Re: [Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-03-18 Thread Timo Sirainen
On Sat, 2013-03-16 at 13:51 +0100, to...@starbridge.org wrote:
 Hi Timo,
 I've got a crash with  dovecot 2.2
 
 dovecot --version
 2.2.rc2 (69c26a9e3be5)
 
 It's occured when accessing with imap on a large mailbox (around 50k
 messages)
 
 imap(clean-quarant...@spamguard.fr): Panic: Buffer full (4254  4248,
 pool none)

These should fix it: http://hg.dovecot.org/dovecot-2.2/rev/689dbeadf168
http://hg.dovecot.org/dovecot-2.2/rev/ee7352f46d1e





[Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-03-16 Thread to...@starbridge.org
Hi Timo,
I've got a crash with  dovecot 2.2

dovecot --version
2.2.rc2 (69c26a9e3be5)

It's occured when accessing with imap on a large mailbox (around 50k
messages)

imap(clean-quarant...@spamguard.fr): Panic: Buffer full (4254  4248,
pool none)
Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x6089a)
[0x7f9d1bcde89a] - /usr/lib/dovecot/libdovecot.so.0(+0x608de)
[0x7f9d1bcde8de] - /usr/lib/dovecot/libdovecot.so.0(i_fatal+0)
[0x7f9d1bca039b] - /usr/lib/dovecot/libdovecot.so.0(+0x5d148)
[0x7f9d1bcdb148] - /usr/lib/dovecot/libdovecot.so.0(+0x56ba8)
[0x7f9d1bcd4ba8] - /usr/lib/dovecot/libdovecot.so.0(+0x4fa77)
[0x7f9d1bccda77] - /usr/lib/dovecot/libdovecot.so.0(+0x4faf2)
[0x7f9d1bccdaf2] - /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x69)
[0x7f9d1bce6de9] - /usr/lib/dovecot/libdovecot.so.0(+0x6dcac)
[0x7f9d1bcebcac] - /usr/lib/dovecot/libdovecot.so.0(+0x6de59)
[0x7f9d1bcebe59] - /usr/lib/dovecot/libdovecot.so.0(+0x6df4b)
[0x7f9d1bcebf4b] - /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x69)
[0x7f9d1bce6de9] -
/usr/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x3d)
[0x7f9d1bce765d] - /usr/lib/dovecot/libdovecot-storage.so.0(+0x9af84)
[0x7f9d1bfd4f84] -
/usr/lib/dovecot/libdovecot-storage.so.0(index_mail_get_binary_stream+0x77)
[0x7f9d1bfd5417] -
/usr/lib/dovecot/libdovecot-storage.so.0(mail_get_binary_stream+0x60)
[0x7f9d1bfae5c0] -
/usr/lib/dovecot/libdovecot-storage.so.0(imap_msgpart_open+0x9f)
[0x7f9d1c00a3df] - dovecot/imap() [0x418f55] - dovecot/imap()
[0x4175fd] - dovecot/imap(imap_fetch_more+0x34) [0x418554] -
dovecot/imap(cmd_fetch+0x309) [0x40e2c9] -
dovecot/imap(command_exec+0x3c) [0x41623c] - dovecot/imap() [0x4152a0]
- dovecot/imap() [0x41535a] - dovecot/imap(client_handle_input+0x115)
[0x415615] - dovecot/imap(client_input+0x72) [0x4159c2] -
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x36) [0x7f9d1bcee086]
- /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd7)
[0x7f9d1bceeed7]
Mar 16 13:37:19 mx2 dovecot: imap(clean-quarant...@spamguard.fr): Fatal:
master: service(imap): child 9983 killed with signal 6 (core dumped)

backtrace:

#0  0x7f9d1b926475 in raise () from
/lib/x86_64-linux-gnu/libc.so.6 

  

No symbol table info
available.  


 

#1  0x7f9d1b9296f0 in abort () from
/lib/x86_64-linux-gnu/libc.so.6 

  

No symbol table info
available.  


 

#2  0x7f9d1bcde8a8 in default_fatal_finish (type=optimized out,
status=status@entry=0) at
failures.c:191  

  

backtrace = 0x62d5f0 /usr/lib/dovecot/libdovecot.so.0(+0x6089a)
[0x7f9d1bcde89a] - /usr/lib/dovecot/libdovecot.so.0(+0x608de)
[0x7f9d1bcde8de] - /usr/lib/dovecot/libdovecot.so.0(i_fatal+0)
[0x7f9d1bca039b] - /usr/lib/d...
#3  0x7f9d1bcde8de in i_internal_fatal_handler (ctx=0x7fff68422000,
format=optimized out, args=optimized out) at
failures.c:652  
 

status =
0   


 

#4  0x7f9d1bca039b in i_panic (format=format@entry=0x7f9d1bd0d510
Buffer full (%lu  %lu, pool %s)) at
failures.c:263  

 

ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp =
0x0}

   

args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area =
0x7fff684220f0, reg_save_area =
0x7fff68422030}} 

Re: [Dovecot] crash with dovecot 2.2: Panic: Buffer full

2013-03-16 Thread Timo Sirainen
On 16.3.2013, at 13.51, to...@starbridge.org wrote:

 It's occured when accessing with imap on a large mailbox (around 50k
 messages)
 
 imap(clean-quarant...@spamguard.fr): Panic: Buffer full (4254  4248,
 pool none)
..
 #7  0x7f9d1bcd4ba8 in quoted_printable_decode_full
 ( 
   

 
src=src@entry=0x677eb0 enter\ bgcolor=3D\#ff\
 width=3D\560\\n  table cellspacing=3D\0\ border=3D\0\
 align=3D\center\ style=3D\margin: 0=\n auto;\ cellpadding=3D\0\
 width=3D\520\tr\ntd align=3D\left\ width=3D\520\\n 
 ...,
src_size=5570, src_pos_r=src_pos_r@entry=0x7fff684221a8,
 dest=dest@entry=0x7fff684221b0, eof=eof@entry=false) at
 quoted-printable.c:60 


The problem is with a specific mail and trying to decode its quoted-printable 
data. I can maybe figure out the bug with this info already, but it would be 
helpful if you could send the specific mail that causes the crash. You can 
probably cause the crash easiest by doing:

telnet localhost 143
a login user pass
b select inbox
c search text testing