Re: [Mutt] #2935: Occasional segfault when IMAP inbox updates
#2935: Occasional segfault when IMAP inbox updates
---------------------+------------------------------------------------------
Reporter: skunk | Owner: brendan
Type: defect | Status: assigned
Priority: major | Milestone: 1.6
Component: IMAP | Version: 1.5.18
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment(by vegard):
Well, until now :) But they occur everywhere, in various files. The root
of the problem seems to be that msgcount is too big. There is a mismatch
between msgcount and hdrs. I don't know Mutt's code well enough to say if
it's msgcount increasing or hdrs not being updated properly, or if it's a
race. As a temporary fix I've inserted the above code almost everywhere
I've found the cur = ctx->hdrs[i] assignment, but I think it's better to
fix the source of the problem than to add these in everywhere.
Again - I'm not familiar with the code, so I'm not sure where to begin.
Any takers?
--
Ticket URL: <http://dev.mutt.org/trac/ticket/2935#comment:10>
Mutt <http://www.mutt.org/>
The Mutt mail user agent