--- /dev/null
+Return-Path: <jeff@ocjtech.us>\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 9A62B431FBC\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 10:00:12 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 qiqjcXbLyIWA for <notmuch@notmuchmail.org>;\r
+ Wed, 18 Nov 2009 10:00:12 -0800 (PST)\r
+Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com\r
+ [209.85.210.204])\r
+ by olra.theworths.org (Postfix) with ESMTP id 38392431FAE\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 10:00:12 -0800 (PST)\r
+Received: by yxe42 with SMTP id 42so1466551yxe.22\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 10:00:11 -0800 (PST)\r
+MIME-Version: 1.0\r
+Received: by 10.91.26.5 with SMTP id d5mr2700164agj.16.1258567210434; Wed, 18 \r
+ Nov 2009 10:00:10 -0800 (PST)\r
+Date: Wed, 18 Nov 2009 12:00:10 -0600\r
+Message-ID: <935ead450911181000w2cddfe95qe9efd5bea9f9209d@mail.gmail.com>\r
+From: Jeffrey Ollie <jeff@ocjtech.us>\r
+To: notmuch@notmuchmail.org\r
+Content-Type: text/plain; charset=UTF-8\r
+Subject: [notmuch] Segfault searching for tags\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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, 18 Nov 2009 18:00:12 -0000\r
+\r
+Getting the following segfault with 306635c2 on Fedora 12. Seems to\r
+be happening with any 'tag:' search that returns results. For\r
+example, 'notmuch search tag:inbox' and 'notmuch search tag:unread'\r
+segfault but 'notmuch search tag:nosuchtag', 'notmuch search\r
+subject:logwatch' and 'notmuch search video' seem to work fine.\r
+\r
+Core was generated by `/usr/bin/notmuch search --sort=oldest-first tag:inbox'.\r
+Program terminated with signal 11, Segmentation fault.\r
+\#0 Xapian::TermIterator::operator* (this=<value optimized out>)\r
+ at api/omtermlistiterator.cc:78\r
+78 RETURN(internal->get_termname());\r
+Current language: auto\r
+The current source language is "auto; currently c++".\r
+\r
+Thread 1 (Thread 15005):\r
+\#0 Xapian::TermIterator::operator* (this=<value optimized out>)\r
+ at api/omtermlistiterator.cc:78\r
+No locals.\r
+\#1 0x000000000040d213 in _notmuch_message_get_in_reply_to (message=0x1594f70)\r
+ at lib/message.cc:288\r
+ prefix = 0x415b77 "XREPLYTO"\r
+ prefix_len = 0\r
+ i = {internal = {dest = 0x0}}\r
+ in_reply_to = ""\r
+\#2 0x000000000040f842 in _resolve_thread_relationships (thread=0x1595a00)\r
+ at lib/thread.cc:157\r
+ node = 0x1596130\r
+ message = 0x1594f70\r
+ parent = 0x7fff2cade9c8\r
+ prev = 0x1595cd0\r
+ in_reply_to = <value optimized out>\r
+\#3 _notmuch_thread_create (thread=0x1595a00) at lib/thread.cc:285\r
+ thread = 0x1595a00\r
+ thread_id_query = 0x158beb0\r
+ matched_query = <value optimized out>\r
+ messages = 0x7fff2cade948\r
+ message = <value optimized out>\r
+ thread_id_query_string = <value optimized out>\r
+ matched_query_string = <value optimized out>\r
+\#4 0x000000000040f3d0 in notmuch_query_search_threads (\r
+ query=<value optimized out>, first=<value optimized out>,\r
+ max_threads=<value optimized out>) at lib/query.cc:217\r
+ threads = 0x158b5f0\r
+ thread = 0x6e00000077\r
+ messages = 0x158b7c0\r
+ message = 0x158c580\r
+ thread_id = 0x158b890 "2065b08615b4cbbb22d9ee874bb84d3e"\r
+ seen = 0x15454a0\r
+ messages_seen = 0\r
+ threads_seen = 0\r
+\#5 0x00000000004089a1 in do_search_threads (ctx=0x1543140, query=\r
+ 0x7fff2cade8a0, sort=NOTMUCH_SORT_OLDEST_FIRST,\r
+ first=<value optimized out>, max_threads=<value optimized out>)\r
+ at notmuch-search.c:40\r
+ thread = <value optimized out>\r
+ threads = 0x1551290\r
+ tags = 0x2\r
+ date = <value optimized out>\r
+ relative_date = 0x2 <Address 0x2 out of bounds>\r
+\#6 0x0000000000408ddd in notmuch_search_command (ctx=<value optimized out>,\r
+ argc=1, argv=<value optimized out>) at notmuch-search.c:156\r
+ config = <value optimized out>\r
+ query = 0x158b510\r
+ query_str = <value optimized out>\r
+ i = 1\r
+ first = <value optimized out>\r
+ max_threads = <value optimized out>\r
+ opt = <value optimized out>\r
+ end = 0x0\r
+ sort = <value optimized out>\r
+\#7 0x000000000040636f in main (argc=4, argv=0x7fff2cadec98) at notmuch.c:400\r
+ local = 0x1543140\r
+ command = <value optimized out>\r
+\r
+\r
+-- \r
+Jeff Ollie\r