1 Return-Path: <bgamari.foss@gmail.com>
\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 BDF34431FAF
\r
6 for <notmuch@notmuchmail.org>; Mon, 6 Aug 2012 22:52:56 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 1t6GJM64yfre for <notmuch@notmuchmail.org>;
\r
17 Mon, 6 Aug 2012 22:52:56 -0700 (PDT)
\r
18 Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com
\r
19 [209.85.220.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 3C913431FAE
\r
22 for <notmuch@notmuchmail.org>; Mon, 6 Aug 2012 22:52:56 -0700 (PDT)
\r
23 Received: by vcbfl17 with SMTP id fl17so4227205vcb.26
\r
24 for <notmuch@notmuchmail.org>; Mon, 06 Aug 2012 22:52:55 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:subject:user-agent:date:message-id:mime-version
\r
27 :content-type; bh=d9SAUzAOrkWBrcD9slR9knkh4ybgG9nB0O+9ivq3xgc=;
\r
28 b=kIMUaNRHLd8e7POck5Lb98TjF1K76JZBxCK0SJ1AjDBdf5nKPyOydH75XAKhcE+SFl
\r
29 xVpBjzK81P5g++194hIA2oL1G+Zfe9ZgcU+N+2QAtWD+Jz2xmgaAB+voTN6dRdRbraqn
\r
30 2IVDoaxuM0HPdt2msVWKCECQMZ2FnzCcmUaKVDeKzB8KyCbEWT8tH77KSvy2FxsxKcqr
\r
31 JMH0Jvi7YN5zYC4078aBxChc2g1INchE4IlbUXI7jEMyBJN6sXvp0kskCuODAm3rk5Xp
\r
32 DvIhQeX8VS3WoF6GQ7S3BdDUdwjUicsVKT5onAzTb5dMZunNyFfRfrIk6Q3PYNxqDi3u
\r
34 Received: by 10.52.89.72 with SMTP id bm8mr8746583vdb.5.1344318775504;
\r
35 Mon, 06 Aug 2012 22:52:55 -0700 (PDT)
\r
36 Received: from localhost (pool-108-8-227-110.spfdma.east.verizon.net.
\r
38 by mx.google.com with ESMTPS id e9sm17830123vdf.21.2012.08.06.22.52.54
\r
39 (version=TLSv1/SSLv3 cipher=OTHER);
\r
40 Mon, 06 Aug 2012 22:52:54 -0700 (PDT)
\r
41 From: Ben Gamari <bgamari.foss@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: Segmentation fault in notmuch search --format=json
\r
44 User-Agent: Notmuch/0.13.2+119~g43ac79a (http://notmuchmail.org) Emacs/23.3.1
\r
45 (x86_64-pc-linux-gnu)
\r
46 Date: Tue, 07 Aug 2012 01:52:52 -0400
\r
47 Message-ID: <871ujjuu2z.fsf@gmail.com>
\r
49 Content-Type: text/plain; charset=us-ascii
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\r
53 List-Id: "Use and development of the notmuch mail system."
\r
54 <notmuch.notmuchmail.org>
\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
58 List-Post: <mailto:notmuch@notmuchmail.org>
\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
62 X-List-Received-Date: Tue, 07 Aug 2012 05:52:56 -0000
\r
64 It seems some messages trigger a segmentation fault in
\r
65 `do_search_threads()`. It appears the problem occurs (at least) when
\r
68 Program received signal SIGSEGV, Segmentation fault.
\r
69 0x0000000000415aa3 in json_string (sp=0x646c70, val=0x0) at sprinter-json.c:121
\r
70 121 json_string_len (sp, val, strlen (val));
\r
72 #0 0x0000000000415aa3 in json_string (sp=0x646c70, val=0x0)
\r
73 at sprinter-json.c:121
\r
74 #1 0x000000000041084b in do_search_threads (format=0x646c70, query=0x64bb70,
\r
75 sort=NOTMUCH_SORT_NEWEST_FIRST, output=OUTPUT_SUMMARY, offset=0, limit=-1)
\r
76 at notmuch-search.c:131
\r
77 #2 0x0000000000411361 in notmuch_search_command (ctx=0x6361b0, argc=3,
\r
78 argv=0x7fffffffdfb0) at notmuch-search.c:405
\r
79 #3 0x0000000000409e22 in main (argc=4, argv=0x7fffffffdfa8) at notmuch.c:294
\r
81 #1 0x000000000041084b in do_search_threads (format=0x646c70, query=0x64bb70,
\r
82 sort=NOTMUCH_SORT_NEWEST_FIRST, output=OUTPUT_SUMMARY, offset=0, limit=-1)
\r
83 at notmuch-search.c:131
\r
84 131 format->string (format, authors);
\r
86 126 format->map_key (format, "matched");
\r
87 127 format->integer (format, matched);
\r
88 128 format->map_key (format, "total");
\r
89 129 format->integer (format, total);
\r
90 130 format->map_key (format, "authors");
\r
91 131 format->string (format, authors);
\r
92 132 format->map_key (format, "subject");
\r
93 133 format->string (format, subject);
\r
98 It seems that the message in question was produced by a script I use to
\r
99 feed RSS feeds into notmuch so while I wouldn't doubt that there are few
\r
100 cases where `authors` should be NULL, it would be nice if notmuch
\r
101 handled this case with a bit more grace.
\r