RE: v2.3.6 message delete causes signal 10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> > > I have just installed Cyrus IMAP v2.3.6 on a test system.
Whenever I
> > > try to delete a message in my INBOX, the delete fails and I see
the
> > > following message in the log file:
> > >
> > > May 26 11:41:01 xxxx master[10821]: [ID 970914 local6.error]
process
> > > 10841 exited, signaled to death by 10
...
>   I was able to determine that it
> appears to be choking on the following statement (line 1000 of
mailbox.c):
> 
>     record->modseq = htonll(*((bit64 *)(buf+OFFSET_MODSEQ_64)));

More information: it crashes when it tries to do the dereference in the
above statement.  I think it may be an alignment problem; the location
pointed to by (buf+OFFSET_MODSEQ_64) is not aligned on an 8-byte
boundary, and I am able to dereference the location 4 bytes before or
after that location.

I don't know the best way to fix this, but I suspect memcpy() will do
the right thing (on big-endian machines).
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux