Re: [xml2rfc] odd errors with online daft xml parsing

Paul Kyzivat <pkyzivat@alum.mit.edu> Sun, 21 March 2021 16:13 UTC

Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: xml2rfc@ietfa.amsl.com
Delivered-To: xml2rfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0DC963A0EDA for <xml2rfc@ietfa.amsl.com>; Sun, 21 Mar 2021 09:13:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.102
X-Spam-Level:
X-Spam-Status: No, score=-0.102 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=alum.mit.edu
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HyPdcT6yCiY5 for <xml2rfc@ietfa.amsl.com>; Sun, 21 Mar 2021 09:13:31 -0700 (PDT)
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2085.outbound.protection.outlook.com [40.107.243.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BD12A3A0ED9 for <xml2rfc@ietf.org>; Sun, 21 Mar 2021 09:13:31 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GKm97H8fo7f7nbh2lJBwu6VfWifQFuVMHMqgp/e84iklTouxNAInnjecDIJf2FMugE2ZeeB6CIYhzCeT9r6sjIwwjFdZu4XLppZbSGcN9EtAZMhbRSl9TGA7tr9nkq8jkBrgGVzdx3ntVcrrkFR6vv3iJWjfUIiTeHmqqYSXCrHy0AlKts5cTCEIQeo+2KRMZA7wMt1g1RZxXh07JwXY2KS0X/FAnQLP/OPKTW4iELh8HfPAypdSJ2OAjSd72LUe+iH8DPjs2Z+ePE+1usIp7MfZ+bns83IdF0P0AW1c84l+Cm66PdBFzN8HySRSfwlSZbcktixDlzq7mJ9mYwFYrQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=chx/RS/pVMrQ/d9yz3TvUEs/LvHoMGY7jwZ0a0McRXw=; b=SQSQUpT8Czv9naEkZ1i2bpBvgWhYngDMQc29htIcPuUqG/Qt5d+cpeWbkPqmUVhw9pBZkfZLV6tF80/283TquQ1/OXTMooq7y2YSaocjgVLPiSzhgVVp78Wudk0Mr5KLy8TjU5zZpMN+AoP0SnsSJ0eURcdQKBZQNcpOz81r6CPHB74CroXs/Fcq0QtA2WsrrWCjdVq3hEEhnAI6hlATrn8yJWZzW1jEvQVPS5rlBKdwacn1B/cpzRK3EGItfd6F6DLQ1dI1d3LYwlQkB5IrvC+5eaFaT/VjwV6OsaufiwZohw2HQ7WNfg8K01/wuTiHjCwwzqfWx7OIjfXELu2vng==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 18.7.68.33) smtp.rcpttodomain=ietf.org smtp.mailfrom=alum.mit.edu; dmarc=bestguesspass action=none header.from=alum.mit.edu; dkim=none (message not signed); arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alum.mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=chx/RS/pVMrQ/d9yz3TvUEs/LvHoMGY7jwZ0a0McRXw=; b=Xh4I9ZYR3T+V7FM4AI21BkMkLTcIfIpnySpkpYOJiPxgB8/nLZhR+8/HD2qVDxg8+fhgy+PQ6yMHOUihotLu2sCBshr2zue6BHUkQOuGFgjPj+mgPAr+GHry+DTGHXffKhqpkgAJwUVeEIITzJQDs80BWngy2pHoqezDbL4f4oA=
Received: from BL0PR02CA0141.namprd02.prod.outlook.com (2603:10b6:208:35::46) by BN9PR12MB5322.namprd12.prod.outlook.com (2603:10b6:408:103::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Sun, 21 Mar 2021 16:13:29 +0000
Received: from BL2NAM02FT018.eop-nam02.prod.protection.outlook.com (2603:10b6:208:35:cafe::e9) by BL0PR02CA0141.outlook.office365.com (2603:10b6:208:35::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18 via Frontend Transport; Sun, 21 Mar 2021 16:13:29 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 18.7.68.33) smtp.mailfrom=alum.mit.edu; ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=bestguesspass action=none header.from=alum.mit.edu;
Received-SPF: Pass (protection.outlook.com: domain of alum.mit.edu designates 18.7.68.33 as permitted sender) receiver=protection.outlook.com; client-ip=18.7.68.33; helo=outgoing-alum.mit.edu;
Received: from outgoing-alum.mit.edu (18.7.68.33) by BL2NAM02FT018.mail.protection.outlook.com (10.152.77.170) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.24 via Frontend Transport; Sun, 21 Mar 2021 16:13:29 +0000
Received: from MacBook-Air.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 12LGDSMj014531 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <xml2rfc@ietf.org>; Sun, 21 Mar 2021 12:13:28 -0400
To: xml2rfc@ietf.org
References: <963752303.4197045.1616328484728.ref@mail.yahoo.com> <963752303.4197045.1616328484728@mail.yahoo.com>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <448dbbbe-5805-69d8-620a-0dd795a89809@alum.mit.edu>
Date: Sun, 21 Mar 2021 12:13:27 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.8.0
MIME-Version: 1.0
In-Reply-To: <963752303.4197045.1616328484728@mail.yahoo.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: ad1143a5-7399-460f-f904-08d8ec8443fb
X-MS-TrafficTypeDiagnostic: BN9PR12MB5322:
X-Microsoft-Antispam-PRVS: <BN9PR12MB5322977E8F73661229844EBCF9669@BN9PR12MB5322.namprd12.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:4125;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: f4W5UQ8M+Hs4kdWiGXhfxdApnXqYHF/HbLNSJQ1TKrivikQJy8RhvQgEkPDl3Ry1d8QZ0pregLFWZhLaEnvnqA4xEoLXf5Be1E6dThNDDJtsUcGtEpBVMC7rlshmn7BYAGBQKCqR7nlS/sPJHE7uzgXHkMYf6zkXUbEjNZGcEhRN3FsqzA7FxRdoyMsZU7UIm3xNglhqGCIElzBMqqj08BMs/PLO1IRJZ9zqygFDysX6v9y8EMyvEvnmYCUuNsAIZ6hpcU41Zn2zQAoiC/Ypy3A+e4ulR+2ERtt2RusJfBSW7p+7qF5mXuefGMfkj+rzgRrhdDUYaIHg/I39wCg1r1kNoR8ze1AWmSmCV+Gz6RzOK1MPCmZC/unvAJMqw3k4TcYQUcJZmsnYog3q3e1EpUdfGEyU9lUtPDVnrIg0iEUePhyO34sNxsncNDKbOKXW987L2MuwJPnvh2yz3RflKkHok66ofBP9S4JM0sYfFK1iUAHQQxON40GFckaXPvFNrwxWK6y6jEASfNfm4ONvGAuYZH2nPF8rNhIv5/HoqrDgx5l9xKRVZ4oZy+LpCa3UfrR0N+UhwaaU3xz7isFP7zmurGvWmxJkPSCNJWYR5LivAEmLFf1wYeLbhzIIME2fVy4vmwscU0RDZRwfC3OAB4Rk3jSht/zR5XCzFfAV6F6lIpJv01kpnwxrjZ0BH9Vbxm0ZyUcvXOEyMj1N/7mjFJnmjGtW+CRJPR27rU8j6IXWQmuU8A9zEh4FTPR8NID9lweXwy8mRyou9T5sLbstJg==
X-Forefront-Antispam-Report: CIP:18.7.68.33; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:outgoing-alum.mit.edu; PTR:outgoing-alum.mit.edu; CAT:NONE; SFS:(136003)(346002)(376002)(39860400002)(396003)(36840700001)(46966006)(70206006)(6916009)(70586007)(7596003)(786003)(2616005)(2906002)(53546011)(83380400001)(36906005)(356005)(5660300002)(316002)(47076005)(26005)(186003)(956004)(82310400003)(31686004)(336012)(8936002)(8676002)(75432002)(86362001)(478600001)(966005)(36860700001)(31696002)(82740400003)(43740500002); DIR:OUT; SFP:1101;
X-OriginatorOrg: alum.mit.edu
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2021 16:13:29.2760 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: ad1143a5-7399-460f-f904-08d8ec8443fb
X-MS-Exchange-CrossTenant-Id: 3326b102-c043-408b-a990-b89e477d582f
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3326b102-c043-408b-a990-b89e477d582f; Ip=[18.7.68.33]; Helo=[outgoing-alum.mit.edu]
X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT018.eop-nam02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5322
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/kNenZd1waAIBp9ResgzLid0yku0>
Subject: Re: [xml2rfc] odd errors with online daft xml parsing
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Mar 2021 16:13:37 -0000

Its because your xml is daft. :-)

On 3/21/21 8:08 AM, lloydwood@users.sourceforge.net wrote:
> On a pretty much complete xmlv2 draft that I've been successfully parsing to a text document
> previously with the web form at:
> http://xml2rfc.ietf.org
> 
> Now gives the below error. Seems quite terminal.
> 
> Generating output
> Running id2xml-rfc2629
> Converting 'INPUT'
> 
> INPUT(77): Exception: Runaway loop in
>     get_first_page_top()
> Failure converting INPUT: Runaway loop in get_first_page_top()
> Traceback (most recent call last):
>    File "/usr/local/bin/id2xml", line 11, in <module>
>      load_entry_point('id2xml==1.5.0', 'console_scripts', 'id2xml')()
>    File "/usr/local/lib/python3.6/site-packages/id2xml/run.py", line 233, in run
>      xml = parser.parse_to_xml()
>    File "/usr/local/lib/python3.6/site-packages/id2xml/parser.py", line 1012, in parse_to_xml
>      doc = self.document()
>    File "/usr/local/lib/python3.6/site-packages/id2xml/parser.py", line 1041, in document
>      self.root.append(self.front())
>    File "<decorator-gen-10>", line 2, in front
>    File "/usr/local/lib/python3.6/site-packages/id2xml/parser.py", line 599, in dtrace
>      ret = fn(self, *params,**kwargs)
>    File "/usr/local/lib/python3.6/site-packages/id2xml/parser.py", line 1076, in front
>      lines_left, lines_right, lines_title, lines_name = self.get_first_page_top()
>    File "<decorator-gen-11>", line 2, in get_first_page_top
>    File "/usr/local/lib/python3.6/site-packages/id2xml/parser.py", line 599, in dtrace
>      ret = fn(self, *params,**kwargs)
>    File "/usr/local/lib/python3.6/site-packages/id2xml/parser.py", line 1210, in get_first_page_top
>      loops += 1 if loops < 68 else loop_break('get_first_page_top')
>    File "/usr/local/lib/python3.6/site-packages/id2xml/parser.py", line 115, in loop_break
>      raise RunawayLoop("Runaway loop in %s()" % fn)
> id2xml.parser.RunawayLoop: Runaway loop in get_first_page_top()
> 
> fyi
> 
> Lloyd Wood
> lloydwood@users.sourceforge.net
> 
> _______________________________________________
> xml2rfc mailing list
> xml2rfc@ietf.org
> https://www.ietf.org/mailman/listinfo/xml2rfc
>