1 Return-Path: <Sebastian@SSpaeth.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 50AA2429E29
\r
6 for <notmuch@notmuchmail.org>; Sat, 18 Jun 2011 03:30:18 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id o6PPsYATswdl for <notmuch@notmuchmail.org>;
\r
17 Sat, 18 Jun 2011 03:30:17 -0700 (PDT)
\r
18 Received: from homiemail-a15.g.dreamhost.com (caiajhbdcagg.dreamhost.com
\r
20 by olra.theworths.org (Postfix) with ESMTP id 9D7B1431FB6
\r
21 for <notmuch@notmuchmail.org>; Sat, 18 Jun 2011 03:30:17 -0700 (PDT)
\r
22 Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1])
\r
23 by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id E006D76C069;
\r
24 Sat, 18 Jun 2011 03:30:16 -0700 (PDT)
\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:cc:subject
\r
26 :in-reply-to:references:date:message-id:mime-version:
\r
27 content-type; q=dns; s=sspaeth.de; b=mEnNpj6Oopm06XRro6+6ISrmP6n
\r
28 ayF80EZyJUmvDU9DqXgzXfR56BGVldK1BTeLpD1bceTj23GicGzTNT7MakWZ8wcw
\r
29 nToBvOMDIq1gsjslJl4EP851nVQcRWV+X1tC28MgdU2BkqOAWXlnBjUnIXGbYZIo
\r
31 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to:cc
\r
32 :subject:in-reply-to:references:date:message-id:mime-version:
\r
33 content-type; s=sspaeth.de; bh=tJ/OdZFS3fhe3PruXjqyh1m5PUg=; b=P
\r
34 wOi7LP8KxR450aiV/9q0hlzdN2XgvoVfl7PdrxLjp4l+cflYw4lwR3yFD2RFajjy
\r
35 Ra1xfSZajAEvQvWwucGSkKezEuRPphgnuZjwWU/eRDW2g3RANYEsdnRixDT9BVgy
\r
36 vGE5ztFT0Kf9zLiXH98FCXMSMEWxVsyjR56EkLhxpg=
\r
37 Received: from spaetzbook.sspaeth.de (unknown [62.48.121.245])
\r
38 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
39 (No client certificate requested)
\r
40 (Authenticated sender: fax@sspaeth.de)
\r
41 by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPSA id C1CA976C065;
\r
42 Sat, 18 Jun 2011 03:30:14 -0700 (PDT)
\r
43 Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation);
\r
44 Sat, 18 Jun 2011 12:30:10 +0200
\r
45 From: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
46 To: Patrick Totzke <patricktotzke@googlemail.com>
\r
47 Subject: Re: [python] segfaults at Message.get_date
\r
48 In-Reply-To: <20110617161024.GA8154@optimusprime>
\r
49 References: <20110616215439.GA26997@brick> <87boxxq833.fsf@SSpaeth.de>
\r
50 <20110617161024.GA8154@optimusprime>
\r
51 User-Agent: Notmuch/0.5-233-gb404931 (http://notmuchmail.org) Emacs/23.2.1
\r
52 (x86_64-pc-linux-gnu)
\r
53 Date: Sat, 18 Jun 2011 12:30:01 +0200
\r
54 Message-ID: <87hb7n300m.fsf@SSpaeth.de>
\r
56 Content-Type: multipart/signed; boundary="=-=-=";
\r
57 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
58 Cc: notmuch@notmuchmail.org
\r
59 X-BeenThere: notmuch@notmuchmail.org
\r
60 X-Mailman-Version: 2.1.13
\r
62 List-Id: "Use and development of the notmuch mail system."
\r
63 <notmuch.notmuchmail.org>
\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
67 List-Post: <mailto:notmuch@notmuchmail.org>
\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
71 X-List-Received-Date: Sat, 18 Jun 2011 10:30:18 -0000
\r
75 On Fri, 17 Jun 2011 17:10:24 +0100, Patrick Totzke :
\r
76 > #0 0x006eb87d in Xapian::Document::Internal::get_value(unsigned int) const () from /usr/lib/sse2/libxapian.so.22
\r
77 > #1 0x006eb952 in Xapian::Document::get_value(unsigned int) const () from /usr/lib/sse2/libxapian.so.22
\r
78 > #2 0x00523963 in notmuch_message_get_date () from /usr/local/lib/libnotmuch.so.1
\r
80 One question, what type is libnotmuch really returning here? The code:
\r
84 notmuch_message_get_date (notmuch_message_t *message)
\r
86 return Xapian::sortable_unserialise (value);
\r
89 But Xapian API says that sortable_unserialise() returns floating type "double"
\r
91 http://xapian.org/docs/apidoc/html/namespaceXapian.html#326fe2d6b0ee59ac9536f3960e8fd99b
\r
92 "Convert a string encoded using sortable_serialise back to a floating
\r
95 But time_t is usually a (signed) long and not floating point. Obviously
\r
96 things have worked just fine so far, but is libnotmuch really returning
\r
97 the right type here? Sorry, I expose my total lack of basic C++ knowledge
\r
103 Content-Type: application/pgp-signature
\r
105 -----BEGIN PGP SIGNATURE-----
\r
106 Version: GnuPG v1.4.11 (GNU/Linux)
\r
108 iEYEARECAAYFAk38fikACgkQVYX1jMgnoGKItgCdHDom7GmtoOmVAuYqtMVDi9SS
\r
109 yRAAnA1PeP/D+dN/wA508cNubDJ7lZIz
\r
111 -----END PGP SIGNATURE-----
\r