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