[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison coredump..
From: |
Akim Demaille |
Subject: |
Re: Bison coredump.. |
Date: |
04 Oct 2000 14:04:10 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
(Better some day than never ;)
Thanks, it's fixed in the current beta.
Akim
| When using --verbose and you have a duplicate token "string-name"
| > % bison --verbose test.y
| > Segmentation fault (core dumped)
| > gdb ./bison bison.core
| > GNU gdb 4.17
| > Copyright 1998 Free Software Foundation, Inc.
| > GDB is free software, covered by the GNU General Public License, and you are
| > welcome to change it and/or distribute copies of it under certain
conditions.
| > Type "show copying" to see the conditions.
| > There is absolutely no warranty for GDB. Type "show warranty" for details.
| > This GDB was configured as "i386--netbsd"...
| > Core was generated by `bison'.
| > Program terminated with signal 11, Segmentation fault.
| > Reading symbols from /usr/libexec/ld.so...done.
| > Reading symbols from /usr/lib/libc.so.12.40...done.
| > #0 0xb1fb in print_grammar () at print.c:277
| > 277 column = strlen (tags[token_translations[i]]);
| > (gdb) where
| > #0 0xb1fb in print_grammar () at print.c:277
| > #1 0xa73b in verbose () at print.c:73
| > #2 0x744a in main (argc=3, argv=0xefbfda78) at main.c:107
| > (gdb) print i
| > $1 = 257
| > (gdb) print token_translations[i]
| > $2 = 4
| > (gdb) print tags[token_translations[i]]
| > $3 = 0x0
| > (gdb) quit
| > % cat test.y
| >
| > %token FOO "!!"
| > %token BAR "!!"
| >
| > %token OP_RARROW "->"
| > %%
| >
| > main
| > : FOO
| > | BAR
| > ;
| >
| > %%
|
| If the test.y file has only the two tokens with the duplicate "string name"s,
| then it doesn't dump core.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Bison coredump..,
Akim Demaille <=