From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: (error "Stack overflow in regexp matcher") and (?)wrong display of regexp in backtrace Date: Sun, 15 Mar 2020 10:21:51 -0400 Message-ID: References: <20200315103922.GA4928@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="23896"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 15 15:25:52 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDUD8-00067o-O0 for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Mar 2020 15:25:50 +0100 Original-Received: from localhost ([::1]:54486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDUD7-0007HY-Ml for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Mar 2020 10:25:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54154) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDU9a-0005uH-Al for emacs-devel@gnu.org; Sun, 15 Mar 2020 10:22:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDU9Z-0005bU-AF for emacs-devel@gnu.org; Sun, 15 Mar 2020 10:22:10 -0400 Original-Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]:45190) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDU9Z-0005Wh-56 for emacs-devel@gnu.org; Sun, 15 Mar 2020 10:22:09 -0400 Original-Received: by mail-oi1-x236.google.com with SMTP id v19so14904894oic.12 for ; Sun, 15 Mar 2020 07:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zwItJdvLy4fbQ83NlKLN9qko76jfRSDr7+7EGB9Ogg4=; b=T60tLh5/rKGuTqd3PcIMfqsT6lmh+ti/93ggbWG6xX7xksQafZoFk+pADfPeMw3zfc zeNUVEKiNTBCb/AToaZtuk32vXbE/k3pidqzKd/i1I79cO5tq+yIv+9rFLUnUtfCo2Zo K/fdYEVLmanlTT8o80/utLje1zor/AQghS+ZvAc8laKtlTYHYz38RJnKfYj4oiv9Uve2 CUJ2eaglWivlBGFVFI712pTnm6eHVgeiE2l31DKZVYHbEB2KpOwSK5xwYBqRGVZ+x+y/ 2/DO9cqBfekPmv7AzYAsSlR2MFeCLC1QlNx9U/bL9TmvNqlmg1Z19L7MQtf1gSGCfpUT deJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zwItJdvLy4fbQ83NlKLN9qko76jfRSDr7+7EGB9Ogg4=; b=GV8P0zYjCuG5CUtmR3smtDfQlN5zd10JasWbRujZGqiPAUVjW6hGENY8xsUrODb6/D s8FtGxoDSDHiBAqfnRwfEAki4utrDeNFw69AfhWhmOt71LV5v6kfZ/qdtJ9mBmg1tqPv FbIlSTZcZSpdN10eeQXDqu1Q1MYtu9NzSkKVZadzXVzNAVu4bW8j1zsakbgKLySCZ2dX IGr0RcVB3W/NDN5RGUsaycZf0RKLAFukynqZCwItDDRipyofJg1lkUtzNBekPC57PM9s 6Z+Fcl06VC+JO9X8ae4me0eQrtxpa1N6wnPxGAWGi2tcX/w239BwTVyEbc69Y3kD4fgt WpFQ== X-Gm-Message-State: ANhLgQ2X4I0DdqS4WgV0hnaeci8b1bRZSEc4FeHfiI14K3CF2Qe9PD1g XqKxZC0g7QVy/M5aT12LLqFxBfrjotKgN9/1PXM/RmDB X-Google-Smtp-Source: ADFU+vv/vev80ktla3Jfg3adyn+ahylDb4SxYNN/PyZ4Ru1fvu0h0ZjfLRi00461yn/UZmVnSgA4M40G2MvZeNfNIvs= X-Received: by 2002:aca:7517:: with SMTP id q23mr14200200oic.23.1584282128080; Sun, 15 Mar 2020 07:22:08 -0700 (PDT) In-Reply-To: <20200315103922.GA4928@ACM> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245528 Archived-At: On Sun, 15 Mar 2020 at 06:40, Alan Mackenzie wrote: > First of all, note the regexp, "\\(\\\\\\(.\\|\n\\)\\|[^\\\n\15]\\)*" > ^^^ > In the source, the "\15" is "\r". Why is this substitution being made > for the backtrace? Is it intentional (in which case, why not do the > same to the "\n"?), or is it a bug? To me, it is more like a bug. It's not really a bug (perhaps a missing feature), it's due to print-escape-control-characters being non-nil. Newline is printed as "\n" because print-escape-newlines is non-nil, but there is no equivalent print-escape-carriage-returns.