Re: [PATCH] create .mailmap file (for git shortlog/blame)
[notmuch-archives.git] / 41 / 6db746069515dc0889568354274209785dcea0
1 Return-Path: <aaronecay@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 35962431FD0\r
6         for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 21:32:42 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \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 QwmPAz4WGrzj for <notmuch@notmuchmail.org>;\r
17         Sat, 23 Jul 2011 21:32:41 -0700 (PDT)\r
18 Received: from mail-pz0-f41.google.com (mail-pz0-f41.google.com\r
19         [209.85.210.41]) (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 6248A431FB6\r
22         for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 21:32:41 -0700 (PDT)\r
23 Received: by pzk4 with SMTP id 4so6783797pzk.28\r
24         for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 21:32:40 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=mime-version:date:message-id:subject:from:to:content-type;\r
27         bh=MfH6BIHFNz3rdVOI8abq0gjxMc+K7NbbZilnXVewsyQ=;\r
28         b=YKMVdDy2Nt1BJSmaHFTDZesA+57XZHG6dnnC99IDQxb/iIoJj9WIFM5ycTpg/d93jV\r
29         PcuxxvwV7fQG39iBMRbZhZiRr4CwKdCFRgTlR91fhO4w2QkBWAd7W96ECsboKx8h+uKy\r
30         ke2kPBWGGS+683tTjdVnGkezsiS2/Wg6rkCy8=\r
31 MIME-Version: 1.0\r
32 Received: by 10.68.12.225 with SMTP id b1mr4920356pbc.116.1311481959990; Sat,\r
33         23 Jul 2011 21:32:39 -0700 (PDT)\r
34 Received: by 10.68.48.3 with HTTP; Sat, 23 Jul 2011 21:32:39 -0700 (PDT)\r
35 Date: Sun, 24 Jul 2011 00:32:39 -0400\r
36 Message-ID:\r
37  <CAFcZrT1V-33BgUbrasznk4rAYC-UtiTFu=p=_4=FfUuDWjowLA@mail.gmail.com>\r
38 Subject: segfault: g_type_init() missing\r
39 From: Aaron Ecay <aaronecay@gmail.com>\r
40 To: notmuch@notmuchmail.org\r
41 Content-Type: text/plain; charset=UTF-8\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Sun, 24 Jul 2011 04:32:42 -0000\r
55 \r
56 Dear all,\r
57 \r
58 I just pulled the last couple weeks' worth of changes and rebuilt\r
59 notmuch, only to have the new binary give a segfault on "notmuch new"\r
60 (running on OS X.6).  The error message printed was:\r
61 \r
62 (process:21821): GLib-GObject-CRITICAL **: gtype.c:2708: You forgot to\r
63 call g_type_init()\r
64 \r
65 And the backtrace (from gdb):\r
66 \r
67 #0  0x000a18f7 in g_object_newv ()\r
68 #1  0x000160e4 in notmuch_filter_discard_uuencode_new ()\r
69 #2  0x000163f0 in _index_mime_part ()\r
70 #3  0x0001667a in _notmuch_message_index_file ()\r
71 #4  0x0001247c in notmuch_database_add_message ()\r
72 #5  0x000065a9 in add_files_recursive ()\r
73 #6  0x0000612c in add_files_recursive ()\r
74 #7  0x0000612c in add_files_recursive ()\r
75 #8  0x000071ec in notmuch_new_command ()\r
76 #9  0x00003a5a in main ()\r
77 \r
78 According to the Glib docs\r
79 (http://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#g-type-init),\r
80 the g_type_init() function must be called before using any GType\r
81 stuff, which notmuch_filter_discard_uuencode_new does.  There are no\r
82 grep hits for g_type_init in the notmuch sources, though.  The code on\r
83 the error path looks pretty old, so I'm not sure why this bug hasn't\r
84 hit someone else before.  Adding a call to g_type_init() to main()\r
85 (right after g_mime_init(0)) fixes the problem.\r
86 \r
87 Aaron\r