bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault with '-v' option


From: Akim Demaille
Subject: Re: segfault with '-v' option
Date: 04 Oct 2000 14:01:46 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

>>>>> "Piotr" == Piotr Gackiewicz <address@hidden> writes:

Piotr> Bug: When parsing attached input file with '-v' options, bison
Piotr> gets signal no 11 - Segmentation fault.  I know, this input
Piotr> file is bad, ugly and without any sense ;-) - I'm not skilled
Piotr> with gramatics yet. But it shouldn't crash bison anyway. It
Piotr> doesn't do that without beeing verbose - without '-v' option.

Thanks for the sample, it's now part of the test suite.

Neil> Hi Piotr,

Neil> I suggest this patch as a (temporary) fix for this problem - it
Neil> now emits an appropriate warning, and continues without
Neil> segfaulting.  

Thanks for the patch, it's now part of bison :)

Neil> The parse_token_decl() routine in reader.c really needs to be
Neil> rewritten - it is far too permissive of bad input.  This also
Neil> goes for other routines in reader.c.

I very much agree.  I think we're on the right tracks now.

        Akim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]