From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#5847: ETAGS: Segmentation fault, because of incorrect scope presumption Date: Sat, 20 Aug 2016 17:57:34 +0000 Message-ID: <87y43rs4q9.fsf_-_@violet.siamics.net> References: <87inuwf73q.fsf@gmail.com> <83d1l3cu4n.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1471715900 22124 195.159.176.226 (20 Aug 2016 17:58:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2016 17:58:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: Alex To: 5847@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 20 19:58: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 1bbAX9-0005T7-ET for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 19:58:15 +0200 Original-Received: from localhost ([::1]:33964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbAX6-00051c-P7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 13:58:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbAX1-0004zw-2j for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 13:58:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbAWw-0005G4-UW for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 13:58:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbAWw-0005Fy-KF for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 13:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bbAWw-0003nm-Cf for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 13:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Aug 2016 17:58: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.147171586914593 (code B ref 5847); Sat, 20 Aug 2016 17:58:02 +0000 Original-Received: (at 5847) by debbugs.gnu.org; 20 Aug 2016 17:57:49 +0000 Original-Received: from localhost ([127.0.0.1]:35307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbAWi-0003nI-Oo for submit@debbugs.gnu.org; Sat, 20 Aug 2016 13:57:48 -0400 Original-Received: from fely.am-1.org ([78.47.74.50]:39726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbAWg-0003n9-2V for 5847@debbugs.gnu.org; Sat, 20 Aug 2016 13:57:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:Cc:To:From; bh=wBTSLLyFsmQHUhbbcUgs/TOUQcG/jh+zsRgBqX5MMRI=; b=PCaVVMF9AjuNQ/EWxp3wTckhubFiQX/ZmlQNJSJvgU5hO1wLmXS1pH5GFspJxxV1BHYqI362xQEdGmuRhe0tjAf27CBK9elD72i0TfYiY9kylrBmV6OL/9T/q2kc/5TniVabouKWjZmDYbM4Tk8aabTWGPvdozngjNN85vqHDfk=; Original-Received: from violet.siamics.net ([2001:470:1f13:1eb::1:1d]) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1bbAWb-0006Bb-ET; Sat, 20 Aug 2016 17:57:41 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bbAWU-0006ZV-Pr; Sun, 21 Aug 2016 00:57:34 +0700 In-Reply-To: <83d1l3cu4n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 20 Aug 2016 18:55:36 +0300") 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:122433 Archived-At: >>>>> Eli Zaretskii writes: [=E2=80=A6] > 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. If it=E2=80=99s the OS stack we=E2=80=99re talking about, the limit on its= size may very well be a run-time parameter on Unix-like systems; check the =E2=80=98ulimit=E2=80=99 shell command, for instance. E. g., for Bash on GNU/Linux: $ ulimit -Ss ; ulimit -Hs=20 5604 unlimited $ ulimit -s 65536=20 $ ulimit -Ss=20 65536 $=20 --=20 FSF associate member #7257 http://am-1.org/~ivan/ =E2=80=A6 3013 B6A0= 230E 334A