GNU bug report logs - #5847
ETAGS: Segmentation fault, because of incorrect scope presumption

Previous Next

Package: emacs;

Reported by: Hubert Gosselmeyer <gosselmeyer <at> googlemail.com>

Date: Tue, 6 Apr 2010 13:46:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 5847 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Shmakov <ivan <at> siamics.net>
To: 5847 <at> debbugs.gnu.org
Cc: Alex <agrambot <at> gmail.com>
Subject: Re: bug#5847: ETAGS: Segmentation fault,
 because of incorrect scope presumption 
Date: Sat, 20 Aug 2016 17:57:34 +0000
>>>>> Eli Zaretskii <eliz <at> gnu.org> writes:

[…]

 > 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’s the OS stack we’re talking about, the limit on its size
	may very well be a run-time parameter on Unix-like systems;
	check the ‘ulimit’ shell command, for instance.

	E. g., for Bash on GNU/Linux:

$ ulimit -Ss ; ulimit -Hs 
5604
unlimited
$ ulimit -s 65536 
$ ulimit -Ss 
65536
$ 

-- 
FSF associate member #7257  http://am-1.org/~ivan/      … 3013 B6A0 230E 334A




This bug report was last modified 8 years and 318 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.