Cyrus IMAPd 2.3.7 Released

Дейтер Александр Валери Дейтер Александр Валери
Wed Jul 12 09:02:10 EDT 2006


Ken Murchison wtote:

>> I have removed #define HAVE_LONG_LONG_INT in config.h:
>> 
>> --- cyrus-imapd-2.3.7/config.h.orig        Wed Jul 12 13:54:00 2006
>> +++ cyrus-imapd-2.3.7/config.h    Wed Jul 12 11:24:17 2006
>> @@ -158,7 +158,7 @@
>>  #define HAVE_LONG_FILE_NAMES 1
>> 
>>  /* Does the compiler support long long int? */
>> -#define HAVE_LONG_LONG_INT
>> +#undef HAVE_LONG_LONG_INT
>> 
>>  /* Define to 1 if you have the `memmove' function. */
>>  #define HAVE_MEMMOVE 1
>> @@ -321,10 +321,10 @@
>>  #define SIZEOF_LONG 8
>> 
>>  /* The size of a `long long int', as computed by sizeof. */
>> -#define SIZEOF_LONG_LONG_INT 8
>> +#undef SIZEOF_LONG_LONG_INT
>> 
>>  /* The size of a `unsigned long long int', as computed by sizeof. */
>> -#define SIZEOF_UNSIGNED_LONG_LONG_INT 8
>> +#undef SIZEOF_UNSIGNED_LONG_LONG_INT
>> 
>>  /* Do we already have setproctitle? */
>>  /* #undef SPT_TYPE */
>> 
>> rebuild and reinstall Cyrus IMAP and reconstruct/imapd programs work again.
>> 
>> Comments ?
> The #undef is forcing the MODSEQ field of cyrus.index to be only 4-bytes 
> instead of 8.  This will obviously work, but its masking whatever 
> problem the Sun compiler is having with the 8-byte code.

GCC have same problem 'with the 8-byte code' ?

After rebuild Cyrus IMAP 64-bit whith with gcc 4.1.1 we have a same error:

Core was generated by
`/home/devel/build/cyrus-imapd-2.3.7/imap/reconstruct -rf user.devel'.
Program terminated with signal 10, Bus error.
#0  0x0000000100011e04 in mailbox_write_index_header
(mailbox=0xffffffff7fff3f70) at mailbox.c:1319
1319        *((bit64 *)(buf+OFFSET_HIGHESTMODSEQ_64)) =
htonll(mailbox->highestmodseq);
(gdb) bt
#0  0x0000000100011e04 in mailbox_write_index_header
(mailbox=0xffffffff7fff3f70) at mailbox.c:1319
#1  0x0000000100016ec4 in mailbox_create (name=0x1001f3408 "user.devel",
    partition=0x100203af8 "default", acl=0x10021afd0
"devel\tlrswipcda\t", uniqueid=0x0, format=0,
    mailboxp=0x0) at mailbox.c:2652
#2  0x000000010000aaa8 in reconstruct (name=0x1001f3408 "user.devel",
found=0xffffffff7fffdbf0)
    at reconstruct.c:471
#3  0x000000010000a6d0 in do_reconstruct (name=0xffffffff7fffd1d5
"user.devel", matchlen=10,
    maycreate=1, rock=0xffffffff7fffdbf0) at reconstruct.c:393
#4  0x000000010001fa64 in find_cb (rockp=0xffffffff7fffd9c8,
    key=0xffffffff79f000e4 <Address 0xffffffff79f000e4 out of bounds>,
keylen=10,
    data=0xffffffff79f000f4 <Address 0xffffffff79f000f4 out of bounds>,
datalen=26)
    at mboxlist.c:1973
#5  0x0000000100060b6c in myforeach (db=0x1002164c0,
prefix=0xffffffff7fffd5e1 "user.devel",
    prefixlen=10, goodp=0x10001ef68 <find_p>, cb=0x10001f5f8 <find_cb>,
rock=0xffffffff7fffd9c8,
    tid=0x0) at cyrusdb_skiplist.c:989
#6  0x00000001000205d0 in mboxlist_findall (namespace=0x100201a08,
    pattern=0x10020d770 "user.devel", isadmin=1, userid=0x0, auth_state=0x0,
    proc=0x10000a5a8 <do_reconstruct>, rock=0xffffffff7fffdbf0) at
mboxlist.c:2165
#7  0x0000000100009ff4 in main (argc=3, argv=0xffffffff7ffffd28) at
reconstruct.c:299

Thanks a lot!

-- 
Alex Deiter


More information about the Info-cyrus mailing list