GNU bug report logs - #30964
python-mode failing "overlapping strings" assertion lately

Previous Next

Package: emacs;

Reported by: dancol <at> dancol.org

Date: Tue, 27 Mar 2018 18:10:01 UTC

Severity: normal

Done: "Daniel Colascione" <dancol <at> dancol.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: 30964 <at> debbugs.gnu.org
Subject: bug#30964: python-mode failing "overlapping strings" assertion lately
Date: Sun, 17 Jun 2018 09:33:09 +0200
On 17.06.2018 00:36, Noam Postavsky wrote:
> "Daniel Colascione" <dancol <at> dancol.org> writes:
> 
>> So it turns out that it wasn't an off-by-one problem at all.  Instead,
>> python was using (re-search-forward (rx (syntax string-delimiter))), which
>> was matching incorrectly because re-search-forward didn't update syntax as
>> it matched. It didn't do that because regex matching in general wasn't
>> reentrant, and it wasn't reentrant because regex bytecode programs are
>> self-modifying.
>>
>> I checked in some work that makes regex searching update syntax as needed.
> 
> It seems there were two separate problems.  The off-by-one error still
> happens after your changes, so I pushed my patch to master.
> 
> [1: 05345babc9]: 2018-06-16 18:34:19 -0400
>    Fix off by one error in python-mode assertion (Bug#30964)
>    https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=05345babc988060cca540770599282102c34f2a7
> 
> 
> 

Hi folks,

sorry, but as long as syntax-ppss has fundamentally issues, all fixing 
here will be vain. For the very same reason don't be surprised having 
not "found a reliable test case".

Cheers,
Andreas




This bug report was last modified 6 years and 344 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.