segfault if notmuch-show query has spurious .. (w/ v0.17)
authorSanjoy Mahajan <sanjoy@olin.edu>
Wed, 22 Jan 2014 02:27:52 +0000 (21:27 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:12 +0000 (09:59 -0800)
2f/7405392010ae43a7ff3dfac13d7116421f48b6 [new file with mode: 0644]

diff --git a/2f/7405392010ae43a7ff3dfac13d7116421f48b6 b/2f/7405392010ae43a7ff3dfac13d7116421f48b6
new file mode 100644 (file)
index 0000000..4320689
--- /dev/null
@@ -0,0 +1,76 @@
+Return-Path: <Sanjoy.Mahajan@olin.edu>\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 1CBE9431FBD\r
+       for <notmuch@notmuchmail.org>; Tue, 21 Jan 2014 18:33:25 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 nflttG2lkWvr for <notmuch@notmuchmail.org>;\r
+       Tue, 21 Jan 2014 18:33:20 -0800 (PST)\r
+X-Greylist: delayed 324 seconds by postgrey-1.32 at olra;\r
+       Tue, 21 Jan 2014 18:33:20 PST\r
+Received: from EXCAS01.olin.edu (smtp.olin.edu [208.91.53.40])\r
+       (using TLSv1 with cipher AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A6770431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 21 Jan 2014 18:33:20 -0800 (PST)\r
+Received: from approx.mit.edu (71.126.235.4) by smtps.olin.edu (10.1.15.25)\r
+       with Microsoft SMTP Server (TLS) id 8.3.342.0; Tue, 21 Jan 2014 21:27:55\r
+       -0500\r
+Received: from sanjoy by approx.mit.edu with local (Exim 4.82) (envelope-from\r
+       <sanjoy@olin.edu>)      id 1W5nXk-0007TY-JY     for notmuch@notmuchmail.org;\r
+       Tue, 21 Jan 2014 21:27:52 -0500\r
+From: Sanjoy Mahajan <sanjoy@olin.edu>\r
+To: <notmuch@notmuchmail.org>\r
+Subject: segfault if notmuch-show query has spurious .. (w/ v0.17)\r
+User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1\r
+       (i486-pc-linux-gnu)\r
+Date: Tue, 21 Jan 2014 21:27:52 -0500\r
+Message-ID: <871u00oimv.fsf@approx.mit.edu>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Wed, 22 Jan 2014 02:33:25 -0000\r
+\r
+Probably because I kept using notmuch-emacs .elc code from 0.16 after\r
+notmuch got upgraded to 0.17 (I rarely restart emacs), my Emacs\r
+interface to notmuch started generating queries that caused Xapian\r
+exceptions and segfaults.  Here's one:\r
+\r
+  $ notmuch show '( FW: Student Employment Orie.. )'\r
+  A Xapian exception occurred performing query: Unknown range operation\r
+  Query string was: ( FW: Student Employment Orie.. )\r
+  Segmentation fault\r
+\r
+Restarting Emacs stopped those queries, so I don't think that's an\r
+issue.  However, notmuch itself probably should not segfault, even if\r
+Xapian gets confused by the .. in the query (making it look like a date\r
+range).\r
+\r
+This is on Debian/i386 with the notmuch 0.17-3 packages.\r
+-- \r
+-Sanjoy\r
+\r
+<http://savelongwharfpark.org/>\r
+Save Long Wharf Park in Boston Harbor!\r
+\r
+<http://streetfightingmath.com/>\r
+Six reasoning tools to make hard problems easy.\r