Squatter crash with statusdb

Andy Fiddaman cyrus at fiddaman.net
Mon Jun 24 06:08:29 EDT 2013


Hi,

I've just upgraded my Cyrus installation to 2.4.17 and squatter is
crashing in statuscache_buildkey() because userid is NULL.

I'm not sure what the best fix for this is. Should squatter even be using
the statuscache or should it populate "cyrus" as the username when
initialising the index, or something else?

Thanks,

Andy

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0xfffffd7ffe3dccb0 in .strlenalign16_loop () from /lib/64/libc.so.1
(gdb) where
#0  0xfffffd7ffe3dccb0 in .strlenalign16_loop () from /lib/64/libc.so.1
#1  0xfffffd7ffe414149 in strlcpy () from /lib/64/libc.so.1
#2  0x00000000004610ac in statuscache_buildkey (
    mailboxname=0x5ab8b0 "example.net!user.silo", userid=0x0,
    keylen=0xfffffd7fffdfe0cc) at statuscache_db.c:155
#3  0x000000000046169a in statuscache_update_txn (
    mboxname=0x5ab8b0 "example.net!user.silo", sdata=0xfffffd7fffdfe290,
    tidptr=0xfffffd7fffdfe218) at statuscache_db.c:326
#4  0x00000000004619ad in statuscache_invalidate (
    mboxname=0x5ab8b0 "example.net!user.silo", sdata=0xfffffd7fffdfe290)
    at statuscache_db.c:425
#5  0x0000000000434099 in mailbox_unlock_index (mailbox=0x5db998,
    sdata=0xfffffd7fffdfe290) at mailbox.c:1637
#6  0x0000000000422feb in index_unlock (state=0x5af6a0) at index.c:1232
#7  0x0000000000420c98 in index_open (name=0x5ac960
"example.net!user.silo",
    init=0x0, stateptr=0xfffffd7fffdfec18) at index.c:246
#8  0x0000000000420395 in index_me (name=0x5ac960 "example.net!user.silo",
    matchlen=20, maycreate=0, rock=0xfffffd7fffdffcac) at squatter.c:594
#9  0x00000000004208f9 in main (argc=3, argv=0xfffffd7fffdffcf8)
    at squatter.c:745


(gdb) frame 7
#7  0x0000000000420c98 in index_open (name=0x5ac960
"example.net!user.silo",
    init=0x0, stateptr=0xfffffd7fffdfec18) at index.c:246
246     in index.c
(gdb) print *state
$4 = {mailbox = 0x5db998, num_records = 6933, oldexists = 0, exists =
6933,
  last_uid = 6934, highestmodseq = 1606, delayed_modseq = 0, map =
0x5dd740,
  mapsize = 7168, internalseen = 0, skipped_expunge = 0, seen_dirty = 0,
  keepingseen = 0, examining = 0, myrights = 0, numrecent = 0,
  numunseen = 6933, firstnotseen = 1, flagname = {0x0 <repeats 128
times>},
  userid = 0x0, out = 0x0, qresync = 0, authstate = 0x0}



More information about the Info-cyrus mailing list