Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 71 / a09830291a64d6328d6bc09dea773ff57c3294
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 7F60C6DE021D\r
6  for <notmuch@notmuchmail.org>; Mon,  7 Mar 2016 01:14:12 -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.604\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.604 tagged_above=-999 required=5 tests=[AWL=0.307,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
13  RCVD_IN_MSPIKE_H2=-0.211] 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 7_2lrbajME3u for <notmuch@notmuchmail.org>;\r
17  Mon,  7 Mar 2016 01:14:08 -0800 (PST)\r
18 Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com\r
19  [209.85.217.176])\r
20  by arlo.cworth.org (Postfix) with ESMTPS id A04D46DE020D\r
21  for <notmuch@notmuchmail.org>; Mon,  7 Mar 2016 01:14:07 -0800 (PST)\r
22 Received: by mail-lb0-f176.google.com with SMTP id xr8so26226435lbb.1\r
23  for <notmuch@notmuchmail.org>; Mon, 07 Mar 2016 01:14:07 -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-transfer-encoding;\r
28  bh=IyKCXE+PfUM7ixZxsQi7Cl9HDDLY8FQo1KHuZCo9DQc=;\r
29  b=qP4sJaZqR5xHoPWb0cHGynD/6N4YhaxD1vAeN63vDtubFTqzAL2XePO2UgKIL3QyWf\r
30  s4bf5iWU3zhlL43s5snK0cTX3DpljH6rLFsWFRzQkoY8119w/NZA0T5QbNpBz8DcHx/H\r
31  0OEypwc608RVI4SbaivY4hi60/JLvfIwsG7pVLrwKGX1N6IsfH/NDLYQfSETha0FVOxm\r
32  /4Nbz7h14cMRQj1dmdFghp2YCKRvRsWTdlmKIlSDuT7TV1/mMn+Itovb/ewaHleg0maA\r
33  S+1L1E4QB2NEjNDEZEIgMglajS909q75ii7CeyyTfoARvnkYLWXlklSvSPvf4fladEv/\r
34  7r+g==\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-transfer-encoding;\r
39  bh=IyKCXE+PfUM7ixZxsQi7Cl9HDDLY8FQo1KHuZCo9DQc=;\r
40  b=LatXzirL/PyWxFb7zSNLNsDOCKbcbhzOnDduX/Fna/+RZb1PU6i8i66TyxtSneqiXe\r
41  86usxOyc/Srto3YmCAXjRqyNvmLAPgduSP/g5/o8w88UEqZZvSfbgSQuWF+6eWsp51Pw\r
42  KNI+X8BdDcqX2SqltxJfoLwvArTaTS53y9yAT5KfppnuH29gTnnPQZEL2sHKDNvKtDvF\r
43  m7fGxI15o7FiM+VqFLoejEbqmquWGCaygMyA1UbtwfRY/UrRKMmpMYuLHjjbfpW2D3uL\r
44  BJjxo9J1zTtHb0h+WtpG6GJk5R5cxj9d2uICM26gYbNaxnTPltFJkvLJm5j3gYePCuXx\r
45  4HyQ==\r
46 X-Gm-Message-State:\r
47  AD7BkJKnFH5r7dQ28jZNZexXyS8Q7jQ+sZgoqGXAnvvIi+eONLQ/+BreS9hlQL99/Ze/eQ==\r
48 X-Received: by 10.112.201.133 with SMTP id ka5mr7529494lbc.1.1457342042936;\r
49  Mon, 07 Mar 2016 01:14:02 -0800 (PST)\r
50 Received: from localhost ([128.39.46.106])\r
51  by smtp.gmail.com with ESMTPSA id f134sm2654531lff.34.2016.03.07.01.14.01\r
52  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
53  Mon, 07 Mar 2016 01:14:01 -0800 (PST)\r
54 Date: Mon, 07 Mar 2016 09:14:00 +0000\r
55 From: Gaute Hope <eg@gaute.vetsj.com>\r
56 Subject: Re: talloc_abort in notmuch_thread_get_tags () when db has been\r
57  modified\r
58 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
59 References: <1453121100-astroid-2-c62fwcrm91-18877@strange>\r
60 In-Reply-To: <1453121100-astroid-2-c62fwcrm91-18877@strange>\r
61 User-Agent: astroid/v0.5-84-gb119b4ce (https://github.com/gauteh/astroid)\r
62 Message-Id: <1457341792-astroid-0-2wtydh6y1q-15951@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, 07 Mar 2016 09:14:12 -0000\r
79 \r
80 Gaute Hope writes on January 18, 2016 13:45:\r
81 > David Bremner writes on January 18, 2016 13:25:\r
82 >> The most likely cause of such a crash looks to me like nm_thread is NULL\r
83 >> or corrupted when passed in to get_tags. It's used without checking as a\r
84 >> talloc context, and that call to talloc never returns.\r
85 >>\r
86 >=20\r
87 > Ok, I'll check some further. I am checking whether nm_thread is NULL\r
88 > though, [...]\r
89 \r
90 Hi,\r
91 \r
92 The stack trace that I get is as follows:\r
93 \r
94 ```\r
95                 Stack trace of thread 15719:\r
96                 #0  0x00007fc80cd9f2a8 raise (libc.so.6)\r
97                 #1  0x00007fc80cda072a abort (libc.so.6)\r
98                 #2  0x00007fc80c95889c n/a (libtalloc.so.2)\r
99                 #3  0x00007fc80c95a02d talloc_named_const (libtalloc.so.2)\r
100                 #4  0x00007fc814d674c5 _notmuch_string_list_create (libnotm=\r
101 uch.so.4)\r
102                 #5  0x00007fc814d75f32 notmuch_thread_get_tags (libnotmuch.=\r
103 so.4)\r
104                 #6  0x00000000004757cb _ZN7Astroid13NotmuchThread8get_tagsE=\r
105 P15_notmuch_thread (astroid)\r
106 \r
107 ```\r
108 \r
109 this happens when:\r
110 1) start a long running query loading in the background\r
111 2) modify the db enough for the query to get invalidated.\r
112 \r
113 as far as I can see, there is _no_ way to catch this error without\r
114 completely crashing the application. I would have to isolate this code\r
115 in a separate process or trap SIGABRT (which is certainly messy).\r
116 \r
117 Best regards, Gaute\r
118 \r
119 =\r