On Fri, Feb 02, 2007 at 01:27:01PM +0200, Timo Sirainen wrote:
On Wed, 2007-01-31 at 11:32 -0500, Dean Brooks wrote:
#0 0x377fc in mbox_file_seek (mbox=0xc8560, view=0xc94c0, seq=1, deleted_r=0xffbef157) at mbox-file.c:167 167 if (data == NULL) { .. (gdb) print data $1 = (void *) 0xd9354
Are you using some non-x86 CPU? It appears to crash because it's dereferencing data as 64bit integer, but the data isn't 64bit aligned in the memory. I thought I had already fixed all these problems..
Actually, I meant to post to the list about this. We are indeed running on 64-bit Sparc hardware (Solaris 8) with Dovecot1.0RC19.
Disabling -O2 optimization on gcc fixed the problem completely.
For what its worth though, here is the output of the idxview dump:
-- INDEX: /mail/indexes/dean/.imap/INBOX/dovecot.index version = 7.0 base header size = 120 header size = 200 record size = 40 compat flags = 0 index id = 1170310633 flags = 0 uid validity = 1169150002 next uid = 204 messages count = 6 recent messages count = 0 seen messages count = 6 deleted messages count = 0 first recent uid lowwater = 202 first unseen uid lowwater = 197 first deleted uid lowwater = 202 log file seq = 1 log file int offset = 1296 log file ext offset = 1296 sync size = 87754 sync stamp = 1170351425 day stamp = 1170306000 day first uid[0] = 169 day first uid[1] = 0 day first uid[2] = 0 day first uid[3] = 0 day first uid[4] = 0 day first uid[5] = 0 day first uid[6] = 0 day first uid[7] = 0 -- Extension 0 -- name: mbox hdr_size: 0 reset_id: 0 record_offset: 8 record_size: 8 record_align: 8 name_size: 4 -- Extension 1 -- name: cache hdr_size: 0 reset_id: 1170310633 record_offset: 16 record_size: 4 record_align: 4 name_size: 5 -- Extension 2 -- name: header-md5 hdr_size: 0 reset_id: 0 record_offset: 20 record_size: 16 record_align: 1 name_size: 10
RECORD: offset=240, seq=1, uid=169, flags=9
- ext mbox(0): 0 (0000000000000000)
- ext cache(1): 604 (0000025c)
- ext header-md5(2): (00000000000000000000000000000000) RECORD: offset=280, seq=2, uid=170, flags=8
- ext mbox(0): 4269 (00000000000010ad)
- ext cache(1): 828 (0000033c)
- ext header-md5(2): (f646c3246ddcf824f389b9b82f44014d) RECORD: offset=320, seq=3, uid=189, flags=9
- ext mbox(0): 23513 (0000000000005bd9)
- ext cache(1): 1080 (00000438)
- ext header-md5(2): (0cdd7281ad0cd1dd743f9546f26dbdf7) RECORD: offset=360, seq=4, uid=196, flags=8
- ext mbox(0): 72397 (0000000000011acd)
- ext cache(1): 1400 (00000578)
- ext header-md5(2): (c6a7ad234c5e09ba4e2cdcd25910280d) RECORD: offset=400, seq=5, uid=202, flags=8
- ext mbox(0): 75089 (0000000000012551)
- ext cache(1): 2552 (000009f8)
- ext header-md5(2): (f0d67eedac892b6a94d34b1aaaac2438) RECORD: offset=440, seq=6, uid=203, flags=8
- ext mbox(0): 75933 (000000000001289d)
- ext cache(1): 2768 (00000ad0)
- ext header-md5(2): (acd1a113f8432fbeff30499b0372dee5)
-- Dean Brooks dean@iglou.com