[Dovecot] another assert/core with 1.0alpha1
Jeff A. Earickson
jaearick at colby.edu
Thu Sep 1 20:35:40 EEST 2005
Same as reported before:
Assert:
IMAP(user): file mbox-sync-update.c: line 442
(mbox_sync_update_header_from): assertion failed: (ctx->mail.uid == 0 ||
ctx->mail.uid_broken || ctx->mail.uid == mail->uid)
Setup: 1.0alpha1 on Solaris 9, built with gcc 4.0.1
Debug output of the core is attached.
Jeff Earickson
Colby College
-------------- next part --------------
Script started on Thu Sep 01 13:24:50 2005
%gdb imap core.mswarlau
GNU gdb 6.3
Copyright 2004 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 it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.9"...
Core was generated by `imap'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libsendfile.so.1...done.
Loaded symbols for /usr/lib/libsendfile.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmd5.so.1...done.
Loaded symbols for /usr/lib/libmd5.so.1
Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
#0 0xff2201a0 in _libc_kill () from /usr/lib/libc.so.1
(gdb) backtrace
#0 0xff2201a0 in _libc_kill () from /usr/lib/libc.so.1
#1 0xff1b6ce0 in abort () from /usr/lib/libc.so.1
#2 0x0006944c in i_internal_panic_handler (
fmt=0x7d1c0 "file %s: line %d (%s): assertion failed: (%s)",
args=0xffbff310) at failures.c:374
#3 0x00068f30 in i_panic (
format=0x7d1c0 "file %s: line %d (%s): assertion failed: (%s)")
at failures.c:173
#4 0x0003f2d8 in mbox_sync_update_header_from (ctx=0xffbff3a0, mail=0xaf2b0)
at mbox-sync-update.c:443
#5 0x0003db18 in mbox_sync_read_and_move (sync_ctx=0xffbff708, mails=Variable "mails" is not available.
)
at mbox-sync-rewrite.c:353
#6 0x0003e07c in mbox_sync_rewrite (sync_ctx=0xffbff708, end_offset=The value of variable 'end_offset' is distributed across several
locations, and GDB cannot access its value.
)
at mbox-sync-rewrite.c:473
#7 0x0003a2c8 in mbox_sync_handle_eof_updates (sync_ctx=0xffbff708,
mail_ctx=0xffbff5d8) at mbox-sync.c:1265
#8 0x0003a994 in mbox_sync_do (sync_ctx=0xffbff708, flags=Variable "flags" is not available.
)
at mbox-sync.c:1465
#9 0x0003afe0 in mbox_sync (mbox=0xaa438, flags=MBOX_SYNC_REWRITE)
at mbox-sync.c:1692
#10 0x000335bc in mbox_storage_close (box=0xaa438) at mbox-storage.c:955
#11 0x0005bb7c in mailbox_close (box=Variable "box" is not available.
) at mail-storage.c:298
#12 0x000202fc in cmd_unselect (cmd=0xa2ee8) at cmd-unselect.c:18
#13 0x00020c60 in client_handle_input (cmd=0xa2ee8) at client.c:334
#14 0x00020d68 in _client_input (context=Variable "context" is not available.
) at client.c:386
#15 0x0006e850 in io_loop_handler_run (ioloop=0xa0db0) at ioloop-poll.c:184
#16 0x0006e11c in io_loop_run (ioloop=0xa0db0) at ioloop.c:230
#17 0x00029348 in main (argc=0, argv=0xffbffba4, envp=0xffbffbac) at main.c:229
(gdb) up 4
#4 0x0003f2d8 in mbox_sync_update_header_from (ctx=0xffbff3a0, mail=0xaf2b0)
at mbox-sync-update.c:443
443 ctx->mail.uid = mail->uid;
(gdb) print *ctx
$1 = {sync_ctx = 0xffbff708, mail = {uid = 13, idx_seq = 0, keywords = {
buffer = 0x0, element_size = 0}, flags = 0 '\0', uid_broken = 0,
from_offset = 0, body_size = 8816, offset = 36747, space = 0}, seq = 3,
hdr_offset = 36747, body_offset = 37555, header_first_change = 779,
header_last_change = 4294967295, header = 0xa20b0,
hdr_md5_sum = "3\207I\234?\027\032P??C?e8?V",
content_length = 18446744073709551615, hdr_pos = {754, 4294967295, 779, 766,
787}, parsed_uid = 13, last_uid_value_start_pos = 0, have_eoh = 1,
need_rewrite = 0, seen_imapbase = 0, pseudo = 0, updated = 0, recent = 0,
dirty = 0, imapbase_rewrite = 0, imapbase_updated = 0}
(gdb) print *mail
$2 = {uid = 8, idx_seq = 8, keywords = {buffer = 0x0, element_size = 0},
flags = 0 '\0', uid_broken = 1, from_offset = 36691, body_size = 8816,
offset = 36747, space = -3}
(gdb) print ctx->mail.uid_broken
$3 = 0
(gdb) up
#5 0x0003db18 in mbox_sync_read_and_move (sync_ctx=0xffbff708, mails=Variable "mails" is not available.
)
at mbox-sync-rewrite.c:353
353 mbox_sync_update_header_from(&mail_ctx, &mails[idx]);
(gdb) print idx
Variable "idx" is not available.
(gdb) print mails
Variable "mails" is not available.
(gdb) print mail
No symbol "mail" in current context.
(gdb) print mail_ctx
$4 = {sync_ctx = 0xffbff708, mail = {uid = 13, idx_seq = 0, keywords = {
buffer = 0x0, element_size = 0}, flags = 0 '\0', uid_broken = 0,
from_offset = 0, body_size = 8816, offset = 36747, space = 0}, seq = 3,
hdr_offset = 36747, body_offset = 37555, header_first_change = 779,
header_last_change = 4294967295, header = 0xa20b0,
hdr_md5_sum = "3\207I\234?\027\032P??C?e8?V",
content_length = 18446744073709551615, hdr_pos = {754, 4294967295, 779, 766,
787}, parsed_uid = 13, last_uid_value_start_pos = 0, have_eoh = 1,
need_rewrite = 0, seen_imapbase = 0, pseudo = 0, updated = 0, recent = 0,
dirty = 0, imapbase_rewrite = 0, imapbase_updated = 0}
(gdb) print mails.space
Variable "mails" is not available.
(gdb) quit
%ls
checkpassword-reply* dovecot-auth* pop3-login*
core.agpeters imap* rawlog*
core.mswarlau imap-login* typescript
deliver* pop3*
%ls -l
total 20448
-rwxr-xr-x 1 root other 150936 Aug 18 16:00 checkpassword-reply*
-rw-r--r-- 1 agpeters agpeters 1588384 Aug 25 04:15 core.agpeters
-rw------- 1 mswarlau mswarlau 408736 Sep 1 01:31 core.mswarlau
-rwxr-xr-x 1 root other 1940432 Aug 18 16:00 deliver*
-rwxr-xr-x 1 root other 797828 Aug 18 16:00 dovecot-auth*
-rwxr-xr-x 1 root other 2280888 Aug 18 16:00 imap*
-rwxr-xr-x 1 root other 481304 Aug 18 16:00 imap-login*
-rwxr-xr-x 1 root other 1983372 Aug 18 16:00 pop3*
-rwxr-xr-x 1 root other 460004 Aug 18 16:00 pop3-login*
-rwxr-xr-x 1 root other 261796 Aug 18 16:00 rawlog*
-rw-r--r-- 1 root other 0 Sep 1 13:24 typescript
%e3xit[K[K[K[Kxit
exit
script done on Thu Sep 01 13:31:09 2005
More information about the dovecot
mailing list