GNU bug report logs -
#5847
ETAGS: Segmentation fault, because of incorrect scope presumption
Previous Next
Full log
Message #14 received at 5847 <at> debbugs.gnu.org (full text, mbox):
> From: Alex <agrambot <at> gmail.com>
> Date: Fri, 19 Aug 2016 21:32:25 -0600
>
> From: Hubert Gosselmeyer <gosselmeyer <at> googlemail.com>
> Date: Thu, 18 Aug 2016 14:15:46 +0200
> Subject: Re: bug#5847: ETAGS: Segmentation fault, because of incorrect scope presumption
> To: Alex <agrambot <at> gmail.com>
>
> 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.
This bug report was last modified 8 years and 319 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.