From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#22149: 24.4; gdb stack overflow in regexp matcher Date: Sat, 14 Mar 2020 10:04:38 +0100 Message-ID: <22A4D20C-E8EE-4C88-A3D9-6412D3C126B3@acm.org> References: <83y2s46o46.fsf@gnu.org> <30E3666D-A55F-45F1-9357-AA27E4C62D65@acm.org> <83tv2r74gg.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41895"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 22149-done@debbugs.gnu.org, Cheng-An Yang , Noam Postavsky , Andreas Schwab To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 14 10:05:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jD2jN-000AlA-AD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Mar 2020 10:05:17 +0100 Original-Received: from localhost ([::1]:42938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jD2jM-0005jU-C0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Mar 2020 05:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37384) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jD2jA-0005jH-6F for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 05:05:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jD2j8-00008W-9q for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 05:05:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jD2j8-00008N-5i for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 05:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jD2j8-0002VL-1H for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 05:05:02 -0400 Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Mar 2020 09:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 22149 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Mail-Followup-To: 22149@debbugs.gnu.org, mattiase@acm.org, rhymer123@gmail.com Original-Received: via spool by 22149-done@debbugs.gnu.org id=D22149.15841766879598 (code D ref 22149); Sat, 14 Mar 2020 09:05:01 +0000 Original-Received: (at 22149-done) by debbugs.gnu.org; 14 Mar 2020 09:04:47 +0000 Original-Received: from localhost ([127.0.0.1]:60601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jD2it-0002Uk-Dp for submit@debbugs.gnu.org; Sat, 14 Mar 2020 05:04:47 -0400 Original-Received: from mail157c50.megamailservers.eu ([91.136.10.167]:46336 helo=mail51c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jD2ip-0002UV-VM for 22149-done@debbugs.gnu.org; Sat, 14 Mar 2020 05:04:45 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1584176682; bh=E5TLohiFU+30yZBcIujsyRnwDIwDbUjZ6ovzywIE6Lk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=gH2z7+9Q42G2Hw6QCfpLBuadaUT1/qSchC7+h3YYLDHLCOHTEJEWkZnldTCriNXb7 x/XiYlPNwqDpcXS/BGNo9KkUnjkTja89reGbXhOC5LSebwndzqdSAUZEB3bDb/7Gr9 LOdHt2pXrpqc6Z+Q/wdorfZCKQUFRwAGfslbfCl0= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail51c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 02E94dBO017062; Sat, 14 Mar 2020 09:04:41 +0000 In-Reply-To: <83tv2r74gg.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A782F22.5E6C9E1A.006B, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=MOMeZ/Rl c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=mDV3o1hIAAAA:8 a=quSqLPPkNo1VulbN7YkA:9 a=CjuIK1q_8ugA:10 a=_FVE-zBwftR9WsbkzFJk:22 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177329 Archived-At: 14 mars 2020 kl. 08.58 skrev Eli Zaretskii : > Let's install this this on master, then. The use cases which trigger > the problem are rare enough to not be too urgent to fix. All right, master it is! > Moreover, we > might decide, for different reasons, to bump up the stack size of the > Emacs binary, which will indirectly fix this problem by making it less > probable. I'm not sure how the C and regexp engine stacks relate to each other in = practice -- main() attempts to grow the C stack to accommodate the = maximal regexp stack, but SAFE_ALLOCA is set up to use the heap when = necessary. Surely we could decouple them more or less entirely, since = the extra cost for malloc is bound to be small when a lot of regexp = stack is needed.