Re: [xml2rfc] Unable to run xml2rfc --help

Roger Price <roger@rogerprice.org> Mon, 28 December 2020 15:49 UTC

Return-Path: <roger@rogerprice.org>
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 313833A0C38 for <xml2rfc@ietfa.amsl.com>; Mon, 28 Dec 2020 07:49:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 PBv98w1aT3X4 for <xml2rfc@ietfa.amsl.com>; Mon, 28 Dec 2020 07:49:27 -0800 (PST)
Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 72FEB3A03EE for <xml2rfc@ietf.org>; Mon, 28 Dec 2020 07:49:26 -0800 (PST)
X-Originating-IP: 78.243.124.66
Received: from maria (unknown [78.243.124.66]) (Authenticated sender: mailbox@rogerprice.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id D5DECFF806 for <xml2rfc@ietf.org>; Mon, 28 Dec 2020 15:49:24 +0000 (UTC)
Date: Mon, 28 Dec 2020 16:49:23 +0100
From: Roger Price <roger@rogerprice.org>
X-X-Sender: rprice@maria.rogerprice.org
To: xml2rfc Mailing List <xml2rfc@ietf.org>
In-Reply-To: <alpine.DEB.2.20.2012251511220.26613@maria.rogerprice.org>
Message-ID: <alpine.DEB.2.20.2012271600440.26613@maria.rogerprice.org>
References: <alpine.DEB.2.20.2012251511220.26613@maria.rogerprice.org>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
X-Message-Flag: Supplemental report to reaper.nsa.gov. rc=0
MIME-Version: 1.0
Content-Type: multipart/mixed; BOUNDARY="-636875520-1353790488-1609086303=:26613"
Content-ID: <alpine.DEB.2.20.2012281634510.26613@maria.rogerprice.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/20_wG2k6oVNb09ICjr6olSqGByA>
Subject: Re: [xml2rfc] Unable to run xml2rfc --help
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: Mon, 28 Dec 2020 15:49:29 -0000

On Fri, 25 Dec 2020, Roger Price wrote:

> I downloaded xml2rfc onto a Debian Stretch machine and ran the command
>
> xml2rfc --help
>
> The result was
> ...
>  File "/usr/lib/python3.5/sre_parse.py", line 575, in _parse
>    raise source.error(msg, len(this) + 1 + len(that))
> sre_constants.error: bad character range ”-“ at position 7

I went back to this problem.  xml2rfc --help still crashes, so I tried xml2rfc 
-h.  That worked, so I went back to xml2rfc --help which then worked correctly.

I then tried xml2rfc draft-davies-template-bare-07.xml : Python crashes with the 
same error message.  I tried xml2rfc --debug draft-davies-template-bare-07.xml 
and that worked. I tried xml2rfc --text draft-davies-template-bare-07.xml and 
Python crashed, so I tried xml2rfc draft-davies-template-bare-07.xml --text and 
that worked.

I repeated xml2rfc draft-davies-template-bare-07.xml --text and this time Python 
crashed with the usual error message.

It looks as if xml2rfc is relying on some work area which it assumes has some 
initial value, but in practice has a random value.

I get the same randomness with Python 3.5.3 and Python 3.8.1. Command uname -a 
reports Linux maria 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) 
x86_64 GNU/Linux

Roger