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 18:55:36 +0300 Message-ID: <83d1l3cu4n.fsf@gnu.org> References: <87inuwf73q.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1471708785 1476 195.159.176.226 (20 Aug 2016 15:59:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2016 15:59:45 +0000 (UTC) Cc: 5847@debbugs.gnu.org To: Alex Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 20 17:59:41 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 1bb8gO-00007h-Mf for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 17:59:40 +0200 Original-Received: from localhost ([::1]:33559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb8gM-0005IQ-09 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 11:59:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb8cv-0002Z3-RS for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 11:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bb8cs-0002Hk-P7 for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 11:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb8cs-0002Hg-LI for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 11:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bb8cs-0000vH-GH for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 11:56: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 15:56: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.14717085393519 (code B ref 5847); Sat, 20 Aug 2016 15:56:02 +0000 Original-Received: (at 5847) by debbugs.gnu.org; 20 Aug 2016 15:55:39 +0000 Original-Received: from localhost ([127.0.0.1]:35289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bb8cU-0000uh-RJ for submit@debbugs.gnu.org; Sat, 20 Aug 2016 11:55:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bb8cT-0000uS-BI for 5847@debbugs.gnu.org; Sat, 20 Aug 2016 11:55:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bb8cL-0002Ed-0f for 5847@debbugs.gnu.org; Sat, 20 Aug 2016 11:55:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb8cK-0002EO-U6; Sat, 20 Aug 2016 11:55:28 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1747 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bb8cJ-0000lr-46; Sat, 20 Aug 2016 11:55:27 -0400 In-reply-to: <87inuwf73q.fsf@gmail.com> (message from Alex on Fri, 19 Aug 2016 21:32:25 -0600) 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:122430 Archived-At: > From: Alex > Date: Fri, 19 Aug 2016 21:32:25 -0600 > > From: Hubert Gosselmeyer > Date: Thu, 18 Aug 2016 14:15:46 +0200 > Subject: Re: bug#5847: ETAGS: Segmentation fault, because of incorrect scope presumption > To: Alex > > I rechecked the issue with my new hardware (got a new laptop meanwhile). > The issue does not occur for the files attached on the bug report anymore. > > As I suspect that it has something to do with large memory allocation, I produced some larger files > with an python script. I tested it on my machine still with etags (GNU Emacs 23.1) and gave the files > to a collegue, who tested it with etags (GNU Emacs 24.3). On both etags crashed for test_seg.c. 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. A workaround is to build Etags with a larger stack. Thanks.