Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Bron Gondwana
On Wed, Mar 25, 2009 at 08:43:10PM -0300, Patrick Boutilier wrote: > Bron Gondwana wrote: > > On Mon, Mar 23, 2009 at 04:08:47PM -0700, David R Bosso wrote: > >> I'd love to see a fix for this. > > > > Here's one: > > > >>From 8448c2f304bd61fe073b1d98a0d614b69b0ee184 > > Subject: [PATCH] Don't im

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Patrick Boutilier
Bron Gondwana wrote: > On Mon, Mar 23, 2009 at 04:08:47PM -0700, David R Bosso wrote: >> I'd love to see a fix for this. > > Here's one: > >>From 8448c2f304bd61fe073b1d98a0d614b69b0ee184 > Subject: [PATCH] Don't immediate expunge in ipurge > > This has two benefits. > > 1) you can unexpunge > 2

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Bron Gondwana
On Wed, Mar 25, 2009 at 11:55:09AM -0300, Patrick Boutilier wrote: > David R Bosso wrote: >> --On March 13, 2009 10:18:53 AM -0300 Patrick Boutilier >> wrote: >> >> >> This will be real easy to test though. I will just run ipurge on a subfolder of my mailbox and see if it corrupts it.

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Bron Gondwana
On Mon, Mar 23, 2009 at 04:08:47PM -0700, David R Bosso wrote: > I'd love to see a fix for this. Here's one: >From 8448c2f304bd61fe073b1d98a0d614b69b0ee184 Subject: [PATCH] Don't immediate expunge in ipurge This has two benefits. 1) you can unexpunge 2) it won't corrupt the cache pointers in th

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Patrick Boutilier
Raphael Jaffey wrote: Quoting Patrick Boutilier : David R Bosso wrote: --On March 13, 2009 10:18:53 AM -0300 Patrick Boutilier wrote: This will be real easy to test though. I will just run ipurge on a subfolder of my mailbox and see if it corrupts it. :-) FWIW we see the same corruptio

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Raphael Jaffey
Quoting Patrick Boutilier : > David R Bosso wrote: >> --On March 13, 2009 10:18:53 AM -0300 Patrick Boutilier >> wrote: >> >> >> This will be real easy to test though. I will just run ipurge on a subfolder of my mailbox and see if it corrupts it. :-) >> >> FWIW we see the same corr

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Pascal Gienger
Patrick Boutilier schrieb: > Plus you lose all the messages that are in "delayed expunge" state after > running a reconstruct. :-( Just delete cyrus.expunge in the appropriate mailboxes meta directory before running reconstruct. Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ:

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Patrick Boutilier
David R Bosso wrote: --On March 13, 2009 10:18:53 AM -0300 Patrick Boutilier wrote: This will be real easy to test though. I will just run ipurge on a subfolder of my mailbox and see if it corrupts it. :-) FWIW we see the same corruption here with ipurge. We use ipurge to clean out old

Re: unexpunge segfaults with -l on some mailboxes

2009-03-23 Thread Bron Gondwana
https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3145 (just copied and pasted what's below) And I've assigned it to myself so I don't forget to look at it! (this may wind up depending on all my other cache work, because I don't want to create too many conflicts, and besides - it's much nicer to w

Re: unexpunge segfaults with -l on some mailboxes

2009-03-23 Thread David R Bosso
--On March 13, 2009 10:18:53 AM -0300 Patrick Boutilier wrote: >> This will be real easy to test though. I will just run ipurge on a >> subfolder of my mailbox and see if it corrupts it. :-) FWIW we see the same corruption here with ipurge. We use ipurge to clean out old messages from a spa

Re: unexpunge segfaults with -l on some mailboxes

2009-03-13 Thread Patrick Boutilier
Patrick Boutilier wrote: Bron Gondwana wrote: Not so good. Crap. And this is on 2.3.13? I don't see any changes touching that code in the post 2.3.13 changelogs... Correct. We have been running 2.3.13 pretty much since it was released, 2.3.12 before that, and 2.3.11 before that. I'm

Re: unexpunge segfaults with -l on some mailboxes

2009-03-12 Thread Patrick Boutilier
Bron Gondwana wrote: > Not so good. Crap. And this is on 2.3.13? I don't see any changes > touching that code in the post 2.3.13 changelogs... Correct. We have been running 2.3.13 pretty much since it was released, 2.3.12 before that, and 2.3.11 before that. > >>> I'm tempted to protect t

Re: unexpunge segfaults with -l on some mailboxes

2009-03-12 Thread Bron Gondwana
On Thu, Mar 12, 2009 at 09:08:47AM -0300, Patrick Boutilier wrote: > Bron Gondwana wrote: >> On Wed, Mar 11, 2009 at 12:40:28PM -0300, Patrick Boutilier wrote: >>> Darn. This is caused by mailbox corruption again. My script to detect >>> corruption wasn't working properly. Any idea how we can tra

Re: unexpunge segfaults with -l on some mailboxes

2009-03-12 Thread Patrick Boutilier
Bron Gondwana wrote: On Wed, Mar 11, 2009 at 12:40:28PM -0300, Patrick Boutilier wrote: Darn. This is caused by mailbox corruption again. My script to detect corruption wasn't working properly. Any idea how we can track down what is causing the corruption? Yeah, I was going to say. It's co

Re: unexpunge segfaults with -l on some mailboxes

2009-03-11 Thread Bron Gondwana
On Wed, Mar 11, 2009 at 12:40:28PM -0300, Patrick Boutilier wrote: > Darn. This is caused by mailbox corruption again. My script to detect > corruption wasn't working properly. Any idea how we can track down what > is causing the corruption? Yeah, I was going to say. It's corrupted cache file

Re: unexpunge segfaults with -l on some mailboxes

2009-03-11 Thread Patrick Boutilier
Patrick Boutilier wrote: Cyrus 2.3.13: [cy...@student2 ~]$ gdb /usr/local/cyrus/bin/unexpunge core.16094 GNU gdb Red Hat Linux (6.5-37.el5_2.2rh) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it

unexpunge segfaults with -l on some mailboxes

2009-03-11 Thread Patrick Boutilier
Cyrus 2.3.13: [cy...@student2 ~]$ gdb /usr/local/cyrus/bin/unexpunge core.16094 GNU gdb Red Hat Linux (6.5-37.el5_2.2rh) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of