From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5847: [Hubert Gosselmeyer] Re: bug#5847: ETAGS: Segmentation fault, because of incorrect scope presumption Date: Sat, 20 Aug 2016 19:27:21 +0300 Message-ID: <838tvrcsnq.fsf@gnu.org> References: <87inuwf73q.fsf@gmail.com> <83d1l3cu4n.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1471710501 1310 195.159.176.226 (20 Aug 2016 16:28:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2016 16:28:21 +0000 (UTC) Cc: 5847@debbugs.gnu.org, Hubert Gosselmeyer To: agrambot@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 20 18:28:16 2016 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 1bb984-0008VQ-Fx for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 18:28:16 +0200 Original-Received: from localhost ([::1]:33764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb981-0007ly-R9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 12:28:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb97u-0007ku-W2 for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 12:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bb97q-00083Q-OA for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 12:28:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb97q-00083M-Kp for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 12:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bb97q-0001eZ-Ge for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 12:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Aug 2016 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5847-submit@debbugs.gnu.org id=B5847.14717104466312 (code B ref 5847); Sat, 20 Aug 2016 16:28:02 +0000 Original-Received: (at 5847) by debbugs.gnu.org; 20 Aug 2016 16:27:26 +0000 Original-Received: from localhost ([127.0.0.1]:35294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bb97G-0001dk-Fb for submit@debbugs.gnu.org; Sat, 20 Aug 2016 12:27:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bb97F-0001dV-33 for 5847@debbugs.gnu.org; Sat, 20 Aug 2016 12:27:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bb978-00081O-Sn for 5847@debbugs.gnu.org; Sat, 20 Aug 2016 12:27:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb974-000804-I6; Sat, 20 Aug 2016 12:27:14 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2024 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bb972-00038f-Kw; Sat, 20 Aug 2016 12:27:13 -0400 In-reply-to: <83d1l3cu4n.fsf@gnu.org> (message from Eli Zaretskii on Sat, 20 Aug 2016 18:55:36 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:122431 Archived-At: > Date: Sat, 20 Aug 2016 18:55:36 +0300 > From: Eli Zaretskii > Cc: 5847@debbugs.gnu.org > > That file blows up the runtime stack because of recursive calls to > put_entries when etags writes out the tree of nodes it collected. > Since recovery from stack overflow is inherently OS dependent and > unreliable, I don't see what we can do in this case. Even if we do > detect the upcoming stack overflow, the only thing we can do is print > an error message and quit. Actually, one way of avoiding stack overflow would be to use some BFS algorithm that allocates memory off the heap. Patches welcome. OTOH, the program in question is 91MB of invalid C, so I guess fixing this is not very urgent.