[python] segfaults at Message.get_date

Sebastian Spaeth Sebastian at SSpaeth.de
Sat Jun 18 03:30:01 PDT 2011

On Fri, 17 Jun 2011 17:10:24 +0100, Patrick Totzke :
> #0  0x006eb87d in Xapian::Document::Internal::get_value(unsigned int) const () from /usr/lib/sse2/libxapian.so.22
> #1  0x006eb952 in Xapian::Document::get_value(unsigned int) const () from /usr/lib/sse2/libxapian.so.22
> #2  0x00523963 in notmuch_message_get_date () from /usr/local/lib/libnotmuch.so.1

One question, what type is libnotmuch really returning here? The code:

notmuch_message_get_date (notmuch_message_t *message)
{   ...
    return Xapian::sortable_unserialise (value);

But Xapian API says that sortable_unserialise() returns floating type "double"

"Convert a string encoded using sortable_serialise back to a floating
point number."

But time_t is usually a (signed) long and not floating point. Obviously
things have worked just fine so far, but is libnotmuch really returning
the right type here? Sorry, I expose my total lack of basic C++ knowledge

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110618/df8a2195/attachment.pgp>

More information about the notmuch mailing list