Re: [Mutt] #3000: Deleting >50k messages from IMAP boxes fails with
#3000: Deleting >50k messages from IMAP boxes fails with Fatal error:
---------------------+------------------------------------------------------
Reporter: myon | Owner: brendan
Type: defect | Status: reopened
Priority: minor | Milestone: 1.6
Component: IMAP | Version: 1.5.17
Resolution: | Keywords:
---------------------+------------------------------------------------------
Changes (by jhawk):
* status: closed => reopened
* resolution: fixed =>
Comment:
I built the 8/31 snapshot and got a core dump after hitting "$" in
imap_sync_mailbox:
{{{
program terminated by signal SEGV (no mapping at the fault address)
Current function is imap_sync_mailbox
(dbx) where
=>[1] imap_sync_mailbox(ctx = 0xe9b60, expunge = 0, index_hint = 0x329f5),
line 1279 in "imap.c"
[2] mx_sync_mailbox(ctx = 0xe9b60, index_hint = 0xffbfd5dc), line 1159
in "mx.c"
[3] mutt_index_menu(), line 1023 in "curs_main.c"
[4] main(argc = 0, argv = 0xffbfed9c), line 1018 in "main.c"
(dbx) list -10
1269 idata->state = IMAP_AUTHENTICATED;
1270 goto out;
1271 }
1272 }
1273 else
1274 mutt_error _("Error saving flags");
1275 goto out;
1276 }
1277
1278 for (n = 0; n < ctx->msgcount; n++)
1279 ctx->hdrs[n]->changed = 0;
1280 ctx->changed = 0;
1281
1282 /* We must send an EXPUNGE command if we're not closing. */
1283 if (expunge && !(ctx->closing) &&
1284 mutt_bit_isset(idata->ctx->rights, M_ACL_DELETE))
1285 {
1286 mutt_message _("Expunging messages from server...");
1287 /* Set expunge bit so we don't get spurious reopened messages
*/
1288 idata->reopen |= IMAP_EXPUNGE_EXPECTED;
(dbx) print n
n = 207349
(dbx) print ctx->hdrs[n]
ctx->hdrs[n] = (nil)
(dbx) print ctx->hdrs
ctx->hdrs = 0x9f19b90
(dbx) print ctx->hdrs[n-1]
ctx->hdrs[n-1] = 0x78596d8
(dbx) print *(ctx->hdrs[n-1])
*ctx->hdrs[n-1] = {
security = 0
mime = 0
flagged = 0
tagged = 0
deleted = 0
changed = 0
attach_del = 0
old = 1U
read = 0
expired = 0
superseded = 0
replied = 0
subject_changed = 0
threaded = 0
display_subject = 0
recip_valid = 0
active = 1U
trash = 0
zhours = 7U
zminutes = 0
zoccident = 0
searched = 0
matched = 0
attach_valid = 0
collapsed = 0
limited = 0
num_hidden = 0
recipient = 0
pair = 0
date_sent = 1208793756
received = 1208794681
offset = 0
lines = 0
index = 156001
msgno = 207348
virtual = -1
score = 0
env = 0x7859740
content = 0x7859798
path = (nil)
tree = (nil)
thread = (nil)
attach_total = 0
data = 0x7858db8
maildir_flags = (nil)
}
(dbx)
}}}
Any more details you need? I'll keep the core file around for a while.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3000#comment:10>
Mutt <http://www.mutt.org/>
The Mutt mail user agent