Internal error on line 296 of mime-node.c
authorDavid Bremner <bremner@unb.ca>
Thu, 1 Mar 2012 21:39:30 +0000 (17:39 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:08 +0000 (09:45 -0800)
fc/c7fbe152d836da384171b3d34e3e65d2ca3e41 [new file with mode: 0644]

diff --git a/fc/c7fbe152d836da384171b3d34e3e65d2ca3e41 b/fc/c7fbe152d836da384171b3d34e3e65d2ca3e41
new file mode 100644 (file)
index 0000000..37a47fc
--- /dev/null
@@ -0,0 +1,159 @@
+Return-Path: <bremner@unb.ca>\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 E70EC431FAF\r
+       for <notmuch@notmuchmail.org>; Thu,  1 Mar 2012 13:39:37 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.725\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.725 tagged_above=-999 required=5\r
+       tests=[HTML_MESSAGE=0.001, MPART_ALT_DIFF=0.724] autolearn=disabled\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 FF5MbqbsulKB for <notmuch@notmuchmail.org>;\r
+       Thu,  1 Mar 2012 13:39:37 -0800 (PST)\r
+Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 4B9B5431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  1 Mar 2012 13:39:37 -0800 (PST)\r
+Received: from fctnnbsc30w-142166230117.dhcp-dynamic.fibreop.nb.bellaliant.net\r
+       ([142.166.230.117] helo=zancas.localnet)\r
+       by tesseract.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32)\r
+       (Exim 4.72) (envelope-from <bremner@unb.ca>)\r
+       id 1S3Dip-0007cr-Px; Thu, 01 Mar 2012 17:39:35 -0400\r
+Received: from bremner by zancas.localnet with local (Exim 4.77)\r
+       (envelope-from <bremner@unb.ca>)\r
+       id 1S3Dik-0003jL-3E; Thu, 01 Mar 2012 17:39:30 -0400\r
+From: David Bremner <bremner@unb.ca>\r
+To: "notmuch" <notmuch@notmuchmail.org>\r
+Subject: Internal error on line 296 of mime-node.c\r
+User-Agent: Notmuch/0.11.1+263~g4fa77d0 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Thu, 01 Mar 2012 17:39:30 -0400\r
+Message-ID: <87d38w2e7h.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/mixed; boundary="=-=-="\r
+X-Spam_bar: /\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Thu, 01 Mar 2012 21:39:38 -0000\r
+\r
+--=-=-=\r
+\r
+\r
+In the current master (4fa77d031) I get a sort-of double crash on the \r
+attached message.\r
+\r
+The internal error on line 296 is reached, indicating some kind of bug,\r
+but then the G_OBJECT_TYPE crashes becase parent->part is null.\r
+\r
+The message is probably crap, I created it from another "real" message\r
+from some business that causes the same problem.\r
+\r
+(gdb) bt\r
+#0  0x0000000000416850 in mime_node_child (parent=0x8425fa0, child=0)\r
+    at mime-node.c:296\r
+#1  0x00000000004137f1 in format_part_json (ctx=0x8425f10, node=0x8425fa0, \r
+    first=1) at notmuch-show.c:669\r
+#2  0x0000000000413e54 in format_part_json_entry (ctx=0x8425f10, \r
+    node=0x8425fa0, indent=0, params=0x7ff000470) at notmuch-show.c:758\r
+#3  0x0000000000413f0f in show_message (ctx=0x8367680, format=0x6327e0, message=\r
+    0x83e9830, indent=0, params=0x7ff000470) at notmuch-show.c:776\r
+#4  0x0000000000414165 in show_messages (ctx=0x8367680, format=0x6327e0, \r
+    messages=0x8425e70, indent=0, params=0x7ff000470) at notmuch-show.c:835\r
+#5  0x00000000004145f5 in do_show (ctx=0x8367680, query=0x83b36b0, \r
+    format=0x6327e0, params=0x7ff000470) at notmuch-show.c:956\r
+#6  0x0000000000414ba7 in notmuch_show_command (ctx=0x8367680, argc=3, \r
+    argv=0x7ff000660) at notmuch-show.c:1089\r
+#7  0x000000000040a9fe in main (argc=4, argv=0x7ff000658) at notmuch.c:294\r
+(gdb) print *parent\r
+$3 = {part = 0x0, envelope_file = 0x83e9830, envelope_part = 0x0, \r
+  nchildren = 1, parent = 0x0, part_num = 0, decrypt_attempted = 0, \r
+  decrypt_success = 0, verify_attempted = 0, sig_list = 0x0, ctx = 0x8426090, \r
+  decrypted_child = 0x0, next_child = 0, next_part_num = 1}\r
+\r
+\r
+--=-=-=\r
+Content-Type: message/rfc822\r
+Content-Disposition: attachment; filename=test.eml\r
+\r
+Return-path: <bob.smith@fbi.gov>\r
+Envelope-to: bobafett@archangel.wmdcantina.org\r
+Delivery-date: Wed, 09 Feb 2011 10:06:54 -0400\r
+Received: from fiero.its.cantina.org ([131.202.1.10])\r
+       by archangel.wmdcantina.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\r
+       (Exim 4.69)\r
+       (envelope-from <bob.smith@fbi.gov>)\r
+       id 1PnAh4-0000AX-DH\r
+       for bobafett@archangel.wmdcantina.org; Wed, 09 Feb 2011 10:06:54 -0400\r
+Received: from mx3.nbpei-ecn.ca (mx3.nbpei-ecn.ca [198.164.163.196])\r
+       by fiero.its.cantina.org (8.13.8/8.13.8) with ESMTP id p19E6lst014693\r
+       for <bobafett@cantina.org>; Wed, 9 Feb 2011 10:06:47 -0400\r
+Received: from mx3.nbpei-ecn.ca (localhost.localdomain [127.0.0.1])\r
+       by localhost (Postfix) with SMTP id EC0C04B8002\r
+       for <bobafett@cantina.org>; Wed,  9 Feb 2011 10:06:47 -0400 (AST)\r
+Received: from cibc.ca (mail4.cibc.ca [199.198.251.34])\r
+       by mx3.nbpei-ecn.ca (Postfix) with ESMTP id A80824B8003\r
+       for <bobafett@cantina.org>; Wed,  9 Feb 2011 10:06:47 -0400 (AST)\r
+From: "Smith, Bob" <Bob.Smith@fbi.gov>\r
+To: "'BOBAFETT@CANTINA.ORG'" <BOBAFETT@cantina.org>\r
+Disposition-Notification-To: "Smith, Bob" <Bob.Smith@fbi.gov>\r
+Return-Receipt-To: <Bob.Smith@FBI.GOV>\r
+Date: Wed, 9 Feb 2011 09:06:43 -0500\r
+Subject: \r
+Thread-Index: AcvIYpRcEJX82QtpQSacs5hsY+i4SQ==\r
+Message-ID:\r
+ <5BB75198A4300643A295D4678B10F0503BDDF7CEB1@CBMCC-X7-MBX09.ad.fbi.gov>\r
+Accept-Language: en-US\r
+Content-Language: en-US\r
+X-MS-Has-Attach: \r
+X-MS-TNEF-Correlator: \r
+acceptlanguage: en-US\r
+Content-Type: multipart/alternative;\r
+       boundary="_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_"\r
+MIME-Version: 1.0\r
+X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data:\r
+ 2011.2.9.135719\r
+X-PerlMx-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' BLANK_SUBJECT 0.1,\r
+ HTML_NO_HTTP 0.1, SUPERLONG_LINE 0.05, BODYTEXTH_SIZE_10000_LESS 0,\r
+ BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_4000_4999 0, BODY_SIZE_5000_LESS 0,\r
+ BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, __C230066_P5 0, __CT 0,\r
+ __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0,\r
+ __FRAUD_CONTACT_NUM 0, __HAS_HTML 0, __HAS_MSGID 0, __MIME_HTML 0,\r
+ __MIME_VERSION 0, __PHISH_FROM 0, __PHISH_FROM1 0, __PHISH_FROM_C 0,\r
+ __SANE_MSGID 0, __STOCK_PHRASE_8 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0,\r
+ __TO_NO_NAME 0'\r
+X-Sender-Verified: bob.smith@fbi.gov\r
+\r
+--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_\r
+Content-Type: text/plain; charset="iso-8859-1"\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+quoted printable stuff.\r
+\r
+\r
+--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_\r
+Content-Type: text/html; charset="iso-8859-1"\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+<html>\r
+some other stuff\r
+</html>\r
+\r
+--_000_5BB75198A4300643A295D4678B10F0503BDDF7CEB1CBMCCX7MBX09a_--\r
+\r
+\r
+--=-=-=--\r