[Dovecot] Bug [1.1rc5]: Crash during "CPU architecture changed" index upgrade

Cabel Sasser cabel at panic.com
Wed May 7 08:01:34 EEST 2008


Hello List,

We just migrated from a PPC Xserve to an Intel Xserve.

I used "rsync" to bring everyone's home directories over, and in the  
back of my mind wondered about how it would handle the binary index  
files... only one way to find out! :)

Once I tried to login to IMAP, I got the following results:

May  6 19:46:48 posh dovecot[1169]: IMAP(cabel): Rebuilding index  
file /Users/cabel/mail/.imap/INBOX/dovecot.index: CPU architecture  
changed
May  6 19:46:48 posh dovecot[1169]: IMAP(cabel): fscking index file / 
Users/cabel/mail/.imap/INBOX/dovecot.index
May  6 19:46:48 posh dovecot[1169]: IMAP(cabel): Fixed index file / 
Users/cabel/mail/.imap/INBOX/dovecot.index: log_file_seq 1 -> 637534208
May  6 19:46:48 posh dovecot[1169]: IMAP(cabel): /Users/cabel/ 
mail/.imap/INBOX/dovecot.index: log_file_head_offset too small
May  6 19:46:48 posh dovecot[1169]: Panic: IMAP(cabel): file mail- 
transaction-log-view.c: line 215 (mail_transaction_log_view_set):  
assertion failed: (min_file_offset >= view->tail->hdr.hdr_size)
May  6 19:46:48 posh dovecot[1169]: IMAP(cabel): Raw backtrace: 2    
imap                                0x000839d8 i_set_failure_file +  
392 -> 3   imap                                0x00083283 i_panic + 51  
-> 4   imap                                0x0006f512  
mail_transaction_log_view_set + 1170 -> 5    
imap                                0x000669c9 mail_index_sync_map +  
297 -> 6   imap                                0x0005d35c  
mail_index_map + 1580 -> 7   imap                                 
0x00061f5e mail_index_transaction_open_updated_view + 958 -> 8    
imap                                0x00062ba6  
mail_index_sync_begin_to + 102 -> 9    
imap                                0x0006352d mail_index_sync_begin +  
77 -> 10  imap                                0x00030b50 mbox_sync +  
1120 -> 11  imap                                0x0003203d  
mbox_storage_sync_init + 77 -> 12  imap                                 
0x0004f21f mailbox_sync + 31 -> 13   
imap                                0x00006167 cmd_select_full + 231 - 
 > 14  imap                                0x0000
May  6 19:46:48 posh dovecot[1169]: IMAP(cabel): 6329 cmd_select + 25 - 
 > 15  imap                                0x00008409  
client_handle_unfinished_cmd + 201 -> 16   
imap                                0x000084ab  
client_handle_unfinished_cmd + 363 -> 17   
imap                                0x00008705  
client_handle_unfinished_cmd + 965 -> 18   
imap                                0x00008962 client_input + 114 ->  
19  imap                                0x0008c2e9 io_loop_handler_run  
+ 313 -> 20  imap                                0x0008b606  
io_loop_run + 70 -> 21  imap                                0x000119f7  
main + 1207 -> 22  imap                                0x000016c6  
start + 54
May  6 19:46:49 posh ReportCrash[1222]: Formulating crash report for  
process imap[1202]
May  6 19:46:49 posh dovecot[1169]: child 1202 (imap) killed with  
signal 6
May  6 19:46:49 posh ReportCrash[1222]: Saved crashreport to /Library/ 
Logs/CrashReporter/imap_2008-05-06-194648_posh.crash using uid: 0 gid:  
0, euid: 0 egid: 0

Naturally, deleting everyone's ".imap" folders fixed the problem.

I'll attach the crash report to this e-mail. Hope this is useful to  
someone on this list!

Best,
Cabel
Panic

Process:         imap [1202]
Path:            /usr/local/libexec/dovecot/imap
Identifier:      imap
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  dovecot [1169]

Date/Time:       2008-05-06 19:46:48.366 -0700
OS Version:      Mac OS X Server 10.5.2 (9C31)
Report Version:  6

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib             	0x96d540ea __kill + 10
1   libSystem.B.dylib             	0x96dcb3f2 raise + 26
2   libSystem.B.dylib             	0x96dda9af abort + 73
3   imap                          	0x00083a0a i_internal_fatal_handler  
+ 106
4   imap                          	0x00083283 i_panic + 51
5   imap                          	0x0006f512  
mail_transaction_log_view_set + 1170 (mail-transaction-log-view.c:143)
6   imap                          	0x000669c9 mail_index_sync_map +  
297 (mail-index-sync-update.c:753)
7   imap                          	0x0005d35c mail_index_map + 1580  
(mail-index-map.c:926)
8   imap                          	0x00061f5e  
mail_index_sync_begin_init + 78 (mail-index-sync.c:355)
9   imap                          	0x00062ba6 mail_index_sync_begin_to  
+ 102 (mail-index-sync.c:418)
10  imap                          	0x0006352d mail_index_sync_begin +  
77 (mail-index-sync.c:323)
11  imap                          	0x00030b50 mbox_sync + 1120 (mbox- 
sync.c:1684)
12  imap                          	0x0003203d mbox_storage_sync_init +  
77 (mbox-sync.c:1880)
13  imap                          	0x0004f21f mailbox_sync + 31 (mail- 
storage.c:539)
14  imap                          	0x00006167 cmd_select_full + 231  
(cmd-select.c:39)
15  imap                          	0x00006329 cmd_select + 25 (cmd- 
select.c:88)
16  imap                          	0x00008409 client_command_input +  
41 (client.c:553)
17  imap                          	0x000084ab client_command_input +  
203 (client.c:604)
18  imap                          	0x00008705 client_handle_input +  
277 (client.c:643)
19  imap                          	0x00008962 client_input + 114  
(client.c:698)
20  imap                          	0x0008c2e9 io_loop_handler_run +  
313 (ioloop-kqueue.c:150)
21  imap                          	0x0008b606 io_loop_run + 70  
(ioloop.c:300)
22  imap                          	0x000119f7 main + 1207 (main.c:254)
23  imap                          	0x000016c6 start + 54

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x96dda96f  ecx: 0xbfffdcdc  edx: 0x96d540ea
  edi: 0x00201720  esi: 0x00000004  ebp: 0xbfffdcf8  esp: 0xbfffdcdc
   ss: 0x0000001f  efl: 0x00000282  eip: 0x96d540ea   cs: 0x00000007
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x00107000

Binary Images:
    0x1000 -    0xa9fe0 +imap ??? (???)  
<10c13baf127aaaae5e5c68a2929781d2> /usr/local/libexec/dovecot/imap
0x8fe00000 - 0x8fe2da53  dyld 96.2 (???)  
<7af47d3b00b2268947563c7fa8c59a07> /usr/lib/dyld
0x9024c000 - 0x90340ff4  libiconv.2.dylib ??? (???)  
<c508c60fafca17824c0017b2e4369802> /usr/lib/libiconv.2.dylib
0x935d3000 - 0x935d7fff  libmathCommon.A.dylib ??? (???) /usr/lib/ 
system/libmathCommon.A.dylib
0x93768000 - 0x9376ffe9  libgcc_s.1.dylib ??? (???)  
<a9ab135a5f81f6e345527df87f51bfc9> /usr/lib/libgcc_s.1.dylib
0x96ce5000 - 0x96e44ff3  libSystem.B.dylib ??? (???)  
<4899376234e55593b22fc370935f8cdf> /usr/lib/libSystem.B.dylib
0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???) /usr/lib/ 
libSystem.B.dylib



More information about the dovecot mailing list