notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / 60 / ee60c25651f9a9ca63d09f8088e5364533fb90
1 Return-Path: <eg@gaute.vetsj.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 arlo.cworth.org (Postfix) with ESMTP id 7B4ED6DE0924\r
6  for <notmuch@notmuchmail.org>; Mon, 18 Jan 2016 00:46:51 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.445\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.445 tagged_above=-999 required=5 tests=[AWL=0.275,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
13  RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id g736N4HIx_VH for <notmuch@notmuchmail.org>;\r
17  Mon, 18 Jan 2016 00:46:48 -0800 (PST)\r
18 Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com\r
19  [209.85.215.41])\r
20  by arlo.cworth.org (Postfix) with ESMTPS id 04FBE6DE005F\r
21  for <notmuch@notmuchmail.org>; Mon, 18 Jan 2016 00:46:47 -0800 (PST)\r
22 Received: by mail-lf0-f41.google.com with SMTP id c192so314998353lfe.2\r
23  for <notmuch@notmuchmail.org>; Mon, 18 Jan 2016 00:46:47 -0800 (PST)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25  d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623;\r
26  h=date:from:subject:to:references:in-reply-to:user-agent:message-id\r
27  :mime-version:content-type:content-transfer-encoding;\r
28  bh=OcFjh7AHD99s3G7BdpwXnbc5ou2ejJHseypfflNsgAo=;\r
29  b=J6tm5KyJENzgmf6SGdgSbTiKr/vk9g0QuxKcyoFGnCGzpQe+3z+WIl5h/ZimgVwnGa\r
30  SaCb+0e0yHGiv/kIi+phfHPuZ9CHzHBCXGJy95h4i5S+l0qRCWwlt8KyB1NUDHrA5+m3\r
31  2MMADiqtkqifQXslMJz8p39XgSloddjeW4dDVOsv7j20xTgCx4dnHTHKVUsvgR7DLraY\r
32  hKjiPVoS4isEQU12EuVHjRHvoFZ4RzTrjQArhlO8ncyAorG0rWf8Igi0OTxMlwiH2rzf\r
33  GerRZ/jBz/tK/RV86alCZokimTQc/OOphfwbQDEqwwg3ze8ZT/wa8mb4zf2urUO+mENz\r
34  1T8g==\r
35 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
36  d=1e100.net; s=20130820;\r
37  h=x-gm-message-state:date:from:subject:to:references:in-reply-to\r
38  :user-agent:message-id:mime-version:content-type\r
39  :content-transfer-encoding;\r
40  bh=OcFjh7AHD99s3G7BdpwXnbc5ou2ejJHseypfflNsgAo=;\r
41  b=DT88AQEWathgLgqlMieeMyWoOjuJ9r4QfA0+G7VgKtdE4P0EDltUR5zoDlx1ZjMwuw\r
42  XDuYS9NIDV1GhOi3H9RQ00bL5/kZEPDIvSQSdZIxffcsfKcFLzrXNHaQEkedH6amRgp0\r
43  Fnzgh7HydqOO+hbwBbIYSoRGeMy+7ewfPfpLo5TxA6fwdtYtLyx6dnQSGxAjzHElldHx\r
44  XU1Lq1/V8W7uLVl4lbxUTjW5luHGYi9s9su7dC66qsIFSsBJYE6z0wQIwKxBy7XhDLn/\r
45  +I6/1My3X01oUVvcgFEpRoGW/YFKHs6koeL7CBFQAxgxkUF83HbxelWa074yvd/1+jE5\r
46  he2g==\r
47 X-Gm-Message-State: ALoCoQmsv1N4oHLLINUMwbMp6vpofmcQ45swPi1LaoUajIlbtRD5R7L5cZuIWgxA5xcGQXSu6GkZWVhnOzA0ysiL3qZ3Ws2hSg==\r
48 X-Received: by 10.25.35.143 with SMTP id j137mr8023239lfj.36.1453106803298;\r
49  Mon, 18 Jan 2016 00:46:43 -0800 (PST)\r
50 Received: from localhost ([128.39.46.106])\r
51  by smtp.gmail.com with ESMTPSA id zk9sm3053374lbb.3.2016.01.18.00.46.41\r
52  for <notmuch@notmuchmail.org>\r
53  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
54  Mon, 18 Jan 2016 00:46:42 -0800 (PST)\r
55 Date: Mon, 18 Jan 2016 08:46:41 +0000\r
56 From: Gaute Hope <eg@gaute.vetsj.com>\r
57 Subject: talloc_abort in notmuch_thread_get_tags () when db has been modified\r
58 To: notmuch@notmuchmail.org\r
59 References: \r
60 In-Reply-To: \r
61 User-Agent: astroid/vv0.4-207-g3734e861 (https://github.com/gauteh/astroid)\r
62 Message-Id: <1453106256-astroid-0-0ubhau8qws-26019@strange>\r
63 MIME-Version: 1.0\r
64 Content-Type: text/plain; charset=utf-8; format=flowed\r
65 Content-Transfer-Encoding: quoted-printable\r
66 X-BeenThere: notmuch@notmuchmail.org\r
67 X-Mailman-Version: 2.1.20\r
68 Precedence: list\r
69 List-Id: "Use and development of the notmuch mail system."\r
70  <notmuch.notmuchmail.org>\r
71 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
72  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
73 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
74 List-Post: <mailto:notmuch@notmuchmail.org>\r
75 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
76 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
77  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
78 X-List-Received-Date: Mon, 18 Jan 2016 08:46:51 -0000\r
79 \r
80 Hi,\r
81 \r
82 a user of astroid [0] ran into a issue [1] (full trace at issue) where\r
83 reading a long query causes a talloc_abort in notmuch_thread_get_tags\r
84 (). 'notmuch new' is running at the same time, and most likely a thread\r
85 in the query has been modified since the query was done. Note that a\r
86 notmuch_thread_get_authors () call returns NULL without causing a full\r
87 crash. The code causing the crash is:\r
88 \r
89 ```\r
90     for (tags =3D notmuch_thread_get_tags (nm_thread);\r
91          notmuch_tags_valid (tags);\r
92          notmuch_tags_move_to_next (tags))\r
93     {\r
94       tag =3D notmuch_tags_get (tags); // tag belongs to tags\r
95     }\r
96 \r
97     // or db.cc:508 in astroid/src.\r
98 ```\r
99 \r
100 while:\r
101 \r
102 ```\r
103     const char * auths =3D notmuch_thread_get_authors (nm_thread);\r
104 ```\r
105 \r
106 returns `NULL`, but does not crash.\r
107 \r
108 Is there a way for me to handle this from the application side?\r
109 Admittedly I do keep query objects around for a while\r
110 (astroid/src/thread_index.cc:141), but in this case the issue would\r
111 probably occur anyway since it simply takes a long time to read the\r
112 query.\r
113 \r
114 Regards, Gaute\r
115 \r
116 [0] https://github.com/gauteh/astroid\r
117 [1] https://github.com/gauteh/astroid/issues/64\r
118 =\r