Re: [Dovecot] panic in istream-raw-mbox.c - 2.0.beta3+

2010-02-27 Thread Mark Sapiro
Mark Sapiro wrote:

 Timo Sirainen wrote:
 
On 23.2.2010, at 7.04, Mark Sapiro wrote:

 Feb 22 20:44:47 sbh16 dovecot: imap(mark): Panic: file
 istream-raw-mbox.c: line503 (istream_raw_mbox_get_start_offset):
 assertion failed: (rstream-seeked)

I think this fixes it: http://hg.dovecot.org/dovecot-2.0/rev/d825d532db87
 
 
 Thanks Timo,
 
 I've applied the patch, and I'll see if there's a recurrence.


I've now been running 2.0.beta3 with the above patch for over twice as
long as without the patch. Without the patch, I saw 3 occurrences of the
Panic. Since installing the patch, there have been none, so I think the
patch fixed the problem.

Thanks Timo.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan



Re: [Dovecot] panic in istream-raw-mbox.c - 2.0.beta3+

2010-02-24 Thread Mark Sapiro
Timo Sirainen wrote:

On 23.2.2010, at 7.04, Mark Sapiro wrote:

 Feb 22 20:44:47 sbh16 dovecot: imap(mark): Panic: file
 istream-raw-mbox.c: line503 (istream_raw_mbox_get_start_offset):
 assertion failed: (rstream-seeked)

I think this fixes it: http://hg.dovecot.org/dovecot-2.0/rev/d825d532db87


Thanks Timo,

I've applied the patch, and I'll see if there's a recurrence.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan



Re: [Dovecot] Panic in istream-raw-mbox.c - 2.0.beta3+

2010-02-23 Thread Mark Sapiro
Mark Sapiro wrote:

Saw the following in the log after shutting down my client.

Feb 22 20:44:47 sbh16 dovecot: imap(mark): Disconnected: Logged out
bytes=1755/9765

Feb 22 20:44:47 sbh16 dovecot: imap(mark): Panic: file
istream-raw-mbox.c: line503 (istream_raw_mbox_get_start_offset):
assertion failed: (rstream-seeked)

Feb 22 20:44:47 sbh16 dovecot: imap(mark): Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0 [0x5ad950] -
/usr/local/lib/dovecot/libdovecot.so.0 [0x5ad9a5] -
/usr/local/lib/dovecot/libdovecot.so.0 [0x5ad008] -
/usr/local/lib/dovecot/libdovecot-storage.so.0 [0xe387a7] -
/usr/local/lib/dovecot/libdovecot-storage.so.0 [0xe406e4] -
/usr/local/lib/dovecot/libdovecot-storage.so.0(mail_get_special+0x1d)
[0xdcaaed] -
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_mail_expunge+0x34)
[0xe0aed4] -
/usr/local/lib/dovecot/libdovecot-storage.so.0(mail_expunge+0xf)
[0xdcab9f] - dovecot/imap(imap_expunge+0xc5) [0x8056eb5] -
dovecot/imap(cmd_close+0x73) [0x804eab3] - dovecot/imap [0x80550cc]
- dovecot/imap [0x805517b] - dovecot/imap(client_handle_input+0x33)
[0x80552d3] - dovecot/imap(client_continue_pending_input+0x79)
[0x8055529] -
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x110)
[0x5b98d0] - /usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x2f)
[0x5b858f] - /usr/local/lib/dovec

(the above appears truncated, but that's all that was logged)

Feb 22 20:44:47 sbh16 dovecot: master: service(imap): child 27281
killed with signal 6 (core dumps disabled)

Feb 22 20:44:47 sbh16 dovecot: imap(gpc): Disconnected: Logged out
bytes=274/1356

This is 2.0.beta3 plus
http://hg.dovecot.org/dovecot-2.0/rev/32d6dd7ce7cb

[r...@sbh16 dovecot]# dovecot -n
# 2.0.beta3: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-8.1.14.el5 i686 CentOS release 5 (Final)
auth_mechanisms = plain apop login
auth_worker_max_count = 5
mail_location = mbox:~/Mail:INBOX=/var/spool/mail/%u
mail_privileged_group = mail
mbox_write_locks = fcntl dotlock
passdb {
  args = /usr/local/etc/dovecot.passwd
  deny = no
  driver = passwd-file
  master = no
  pass = no
}
passdb {
  deny = no
  driver = pam
  master = no
  pass = no
}
protocols = imap pop3
service auth {
  unix_listener /var/spool/postfix/private/auth {
mode = 0666
  }
}
ssl_cert = /etc/postfix/sbh16-cert.pem
ssl_key = /etc/postfix/sbh16-key.pem
userdb {
  driver = passwd
}
[r...@sbh16 dovecot]#


Here's a slightly different (but still truncated) backtrace and error
scenario from the one above. This time I think I was just accessing
mailboxes.

Feb 23 10:06:00 sbh16 dovecot: imap-login: Login: user=mark,
method=PLAIN, rip=68.183.193.239, lip=72.52.113.16, TLS

Feb 23 10:06:00 sbh16 dovecot: imap(mark): Panic: file
istream-raw-mbox.c: line 503 (istream_raw_mbox_get_start_offset):
assertion failed: (rstream-seeked)

Feb 23 10:06:00 sbh16 dovecot: imap(mark): Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0 [0x329950] -
/usr/local/lib/dovecot/libdovecot.so.0 [0x3299a5] -
/usr/local/lib/dovecot/libdovecot.so.0 [0x329008] -
/usr/local/lib/dovecot/libdovecot-storage.so.0 [0x1f07a7] -
/usr/local/lib/dovecot/libdovecot-storage.so.0 [0x1f86e4] -
/usr/local/lib/dovecot/libdovecot-storage.so.0(mail_get_special+0x1d)
[0x182aed] -
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_mail_expunge+0x34)
[0x1c2ed4] -
/usr/local/lib/dovecot/libdovecot-storage.so.0(mail_expunge+0xf)
[0x182b9f] - dovecot/imap(imap_expunge+0xc5) [0x8056eb5] -
dovecot/imap [0x804f52a] - dovecot/imap(cmd_expunge+0x24) [0x804f5f4]
- dovecot/imap [0x80550cc] - dovecot/imap [0x805517b] -
dovecot/imap(client_handle_input+0x33) [0x80552d3] -
dovecot/imap(client_input+0x5f) [0x8055c9f] -
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x110)
[0x3358d0] - /usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x2f)
[0x33458f] - /usr/lo

Feb 23 10:06:00 sbh16 dovecot: master: service(imap): child 14261
killed with signal 6 (core dumps disabled)

Feb 23 10:06:01 sbh16 dovecot: imap-login: Login: user=mark,
method=PLAIN, rip=68.183.193.239, lip=72.52.113.16, TLS

Feb 23 10:06:01 sbh16 dovecot: master: service(imap): child 14263
killed with signal 11 (core dumps disabled)

Feb 23 10:06:06 sbh16 dovecot: imap-login: Login: user=mark,
method=PLAIN, rip=68.183.193.239, lip=72.52.113.16, TLS

Feb 23 10:06:06 sbh16 dovecot: imap-login: Login: user=mark,
method=PLAIN, rip=68.183.193.239, lip=72.52.113.16, TLS

Feb 23 10:06:07 sbh16 dovecot: master: service(imap): child 14237
killed with signal 11 (core dumps disabled)

Feb 23 10:06:08 sbh16 dovecot: imap-login: Login: user=mark,
method=PLAIN, rip=68.183.193.239, lip=72.52.113.16, TLS

Feb 23 10:06:08 sbh16 dovecot: master: service(imap): child 14269
killed with signal 11 (core dumps disabled)

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan



Re: [Dovecot] panic in istream-raw-mbox.c - 2.0.beta3+

2010-02-23 Thread Timo Sirainen
On 23.2.2010, at 7.04, Mark Sapiro wrote:

 Feb 22 20:44:47 sbh16 dovecot: imap(mark): Panic: file
 istream-raw-mbox.c: line503 (istream_raw_mbox_get_start_offset):
 assertion failed: (rstream-seeked)

I think this fixes it: http://hg.dovecot.org/dovecot-2.0/rev/d825d532db87