Re: [CRASH] : deleted messages



On 2002.02.13 11:52 Emmanuel wrote:
> here is the crash I have when I manage to have a message displayed as 
> deleted (ie with the trash icon) (usually I get that because I'm 
> testing filters that move messages). Until then no problem, but when 
> I click on "commit all" and then click on one of the messages marked 
> as trashed I get a (really bad) segfault :
> 
> libbalsa_mailbox_commit: rc=0
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x80b5e98 in libbalsa_message_has_attachment (message=0x89960b0)
>     at message.c:901
> 901         if (msg_header->content->type != TYPETEXT) {
> 
> 
> I can't do backtrace because I have to kill gdb to unblock X that is 
> completely stalled after this segfault!!!
> This is reproducible, it's always the same crash. It seems that the 
> messages get freed when we commit changes to mailbox but that the 
> index is not aware of that. I'll try to dig it a bit, but I'm not 
> actually comfortable with this part of the code yet, so if someone 
> who knows better could also try ;-)

This explanation sounds quite reasonable to me. I think it is a kind of 
a race condition... I will look at the code at this angle. Basically, 
we should never remove anything from mailboxes BEFORE informing 
views/indexes about it.

-pawel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]