From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#30964: python-mode failing "overlapping strings" assertion lately Date: Tue, 03 Apr 2018 20:12:48 +0200 Message-ID: References: <5c3e75f096fae419224804c590805b9c.squirrel@dancol.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1522779068 29805 195.159.176.226 (3 Apr 2018 18:11:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2018 18:11:08 +0000 (UTC) Cc: 30964@debbugs.gnu.org To: dancol@dancol.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 03 20:11:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3QOe-0007e6-1F for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Apr 2018 20:11:04 +0200 Original-Received: from localhost ([::1]:53795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3QQh-00037h-Mj for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Apr 2018 14:13:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3QQb-000377-Ba for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 14:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3QQY-0000AP-6M for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 14:13:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57679) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3QQY-0000A3-33 for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 14:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f3QQX-0004UV-LQ for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 14:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Apr 2018 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30964 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30964-submit@debbugs.gnu.org id=B30964.152277912617199 (code B ref 30964); Tue, 03 Apr 2018 18:13:01 +0000 Original-Received: (at 30964) by debbugs.gnu.org; 3 Apr 2018 18:12:06 +0000 Original-Received: from localhost ([127.0.0.1]:37343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3QPe-0004TK-Je for submit@debbugs.gnu.org; Tue, 03 Apr 2018 14:12:06 -0400 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:39831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3QPd-0004Sq-Ge for 30964@debbugs.gnu.org; Tue, 03 Apr 2018 14:12:05 -0400 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 0AF0A226FE for <30964@debbugs.gnu.org>; Tue, 3 Apr 2018 18:13:04 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1522779183; x=1523643184; bh=OmCrJIcPGs+qE FLmOsumcfPgDLRxBsXu/USLvUiC71Y=; b=iyLrytmu9Am6EzhEQae7J9DbD5xjc 2xlg0PsBsfSWtwHh1Yi25ayBv2A5TV9yr2h4/W7d7Vb/QcAShR4kHEt9CavsXYER Bjv+vFy4cGhIasqtvnFvlWz5PxpT+tElkHFBHat2LBpa16yaVY/Mu5tahm2lzzxW WUFxZ8KxaGc1e0= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id f3xReWbFEC1r for <30964@debbugs.gnu.org>; Tue, 3 Apr 2018 18:13:03 +0000 (UTC) Original-Received: from gray (202.100.1.85.dynamic.wline.res.cust.swisscom.ch [85.1.100.202]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id BC84E226ED; Tue, 3 Apr 2018 18:13:02 +0000 (UTC) In-reply-to: <5c3e75f096fae419224804c590805b9c.squirrel@dancol.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144864 Archived-At: > Date: Tue, 27 Mar 2018 11:09:38 -0700 > From: dancol@dancol.org > > Has something changed in master that might be breaking python-mode? We > keep hitting a parsing assertion. > > The surrounding code in python.el claims that > > ;; The assertion can only fail if syntax table > ;; text properties and the `syntax-ppss' cache > ;; are somehow out of whack. This has been > ;; observed when using `syntax-ppss' during > ;; narrowing. > (cl-assert (> string-start last-string-end) > :show-args > "\ > Overlapping strings detected (start=%d, last-end=%d)") > > I can _sometimes_ repro with (while (not (eobp)) > (python-nav-forward-statement)), but I haven't found a reliable test case. I saw it with the pretest (26.0.91) today, with no narrowing, font-lock off, and after typing M-3 " to open a docstring. I didn't find a reproducible case either, though.