Re: [python] segfaults at Message.get_date
authorSebastian Spaeth <Sebastian@sspaeth.de>
Mon, 20 Jun 2011 07:29:22 +0000 (09:29 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:38 +0000 (09:38 -0800)
c8/4bedfa27ed47bac4360df0476aa2a3a6a5252b [new file with mode: 0644]

diff --git a/c8/4bedfa27ed47bac4360df0476aa2a3a6a5252b b/c8/4bedfa27ed47bac4360df0476aa2a3a6a5252b
new file mode 100644 (file)
index 0000000..4bd3e52
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <Sebastian@sspaeth.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id D0B5E431FD0\r
+       for <notmuch@notmuchmail.org>; Mon, 20 Jun 2011 00:29:28 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.09\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id PbSLK8n93MG9 for <notmuch@notmuchmail.org>;\r
+       Mon, 20 Jun 2011 00:29:28 -0700 (PDT)\r
+Received: from homiemail-a75.g.dreamhost.com (caiajhbdcbef.dreamhost.com\r
+       [208.97.132.145])\r
+       by olra.theworths.org (Postfix) with ESMTP id 58A2D431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 20 Jun 2011 00:29:28 -0700 (PDT)\r
+Received: from homiemail-a75.g.dreamhost.com (localhost [127.0.0.1])\r
+       by homiemail-a75.g.dreamhost.com (Postfix) with ESMTP id 7649C5EC080;\r
+       Mon, 20 Jun 2011 00:29:27 -0700 (PDT)\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=sspaeth.de; h=from:to:cc:subject\r
+       :in-reply-to:references:date:message-id:mime-version:\r
+       content-type; q=dns; s=sspaeth.de; b=nWQapD8ySzybxKXa0A7xPCy2D1f\r
+       TdvWsbVGTIyryCu9RVK/kLsWKWy2+SEkkRQK5IiBMXqMZQso8n3SxZlr3UIuSiVr\r
+       S0VJ1zu13RBQYbzWdV/Xh05OZet8Xc36U+xG5yr7r5+SqmdIsfmP1v/AJIHpOFxH\r
+       n3tDa3DilAJKW2lU=\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sspaeth.de; h=from:to:cc\r
+       :subject:in-reply-to:references:date:message-id:mime-version:\r
+       content-type; s=sspaeth.de; bh=MCwiHjUchT22sZNTXf/jAmNieAU=; b=C\r
+       IQOWAk3wpjSXH9bxU8qpLO/XTsOxgTZHSGNWg7HOeisszDcI+a0/wZOG3leOlOwG\r
+       617GPGkgc7EceCjJDU6NPhXerVuO8hB+wR/I6EZhNg5meyRzARCeMXXvsR5GI8I2\r
+       AgyrhkHRqcqQ6+AtcjCjKc2VOByZ2SymEYmUEMu4sc=\r
+Received: from spaetzbook.sspaeth.de (mtec-hg-docking-1-dhcp-253.ethz.ch\r
+       [129.132.133.253])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       (Authenticated sender: fax@sspaeth.de)\r
+       by homiemail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 9D22E5EC07E; \r
+       Mon, 20 Jun 2011 00:29:25 -0700 (PDT)\r
+Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation);\r
+       Mon, 20 Jun 2011 09:29:22 +0200\r
+From: Sebastian Spaeth <Sebastian@sspaeth.de>\r
+To: Austin Clements <amdragon@mit.edu>,\r
+       Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+Subject: Re: [python] segfaults at Message.get_date\r
+In-Reply-To: <BANLkTik8ged+SoUQf5=x0m-CDC6rAKUoWQ@mail.gmail.com>\r
+References: <20110616215439.GA26997@brick> <87boxxq833.fsf@SSpaeth.de>\r
+       <20110617161024.GA8154@optimusprime>\r
+       <87hb7n300m.fsf@SSpaeth.de> <87hb7m5f4s.fsf@gmail.com>\r
+       <BANLkTik8ged+SoUQf5=x0m-CDC6rAKUoWQ@mail.gmail.com>\r
+User-Agent: Notmuch/0.5-233-gb404931 (http://notmuchmail.org) Emacs/23.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 20 Jun 2011 09:29:22 +0200\r
+Message-ID: <878vsxvu3x.fsf@SSpaeth.de>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Cc: Patrick Totzke <patricktotzke@googlemail.com>, notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 20 Jun 2011 07:29:29 -0000\r
+\r
+--=-=-=\r
+\r
+On Sun, 19 Jun 2011 19:51:11 -0400, Austin Clements <amdragon@mit.edu> wrote:\r
+> A double will precisely represent integers up to 2^53, so this\r
+> conversion shouldn't be a problem until the year 285422109 or so.\r
+\r
+But given that it works, is it actually necessary, that xapian\r
+apparently pulls an int from the database, returns a std::string to\r
+libnotmuch, which calls a helper function to unserialize it to a double\r
+and casts it to time_t before handing it to the user how probably uses\r
+it as a long?\r
+\r
+Can't we easily put in longs and get longs back?\r
+\r
+Sebastian\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk3+9tIACgkQVYX1jMgnoGKHQwCfcXqonuzE7dc0sotFPsG8/hWE\r
+PJkAn3snuO39aX49i25Z2itS70LtWmN/\r
+=3FSr\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r