Mail Archives: djgpp/2002/02/17/06:45:19
JT Williams <jeffw AT darwin DOT sfbr DOT org> wrote:
: Bison 1.32 wordlessly crashes on startup with the following trace; this
: is with DOS 5.0, stock djdev 2.03, and either bash 2.04 or command.com.
: The very same .y file compiles without problems using bison 1.30. It also
: compiles okay with bison 1.28, although in this case some of the `#line'
: directives written to y_tab.c are incomplete (can be fixed by hand).
: If it helps, I also found that bison 1.30 will work fine with the
: bison.hairy and bison.simple supplied with bison 1.32.
: % bison --version
: bison (GNU Bison) 1.32
: Copyright 1984, 1986, 1989, 1992, 2000, 2001, 2002
: Free Software Foundation, Inc.
: This is free software; see the source for copying conditions. There is NO
: warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
: % bison -d -y hoc.y
: Exiting due to signal SIGSEGV
: Page fault at eip=000f34e9, error=0004
: eax=0000000c ebx=00000004 ecx=00000000 edx=00000000 esi=0018a084 edi=0010952c
: ebp=001894c8 esp=001894c4 program=/djgpp/bin/bison.exe
: cs: sel=00e7 base=101c0000 limit=0018ffff
: ds: sel=00ef base=101c0000 limit=0018ffff
: es: sel=00ef base=101c0000 limit=0018ffff
: fs: sel=00cf base=00027640 limit=0000ffff
: gs: sel=00ff base=00000000 limit=0010ffff
: ss: sel=00ef base=101c0000 limit=0018ffff
: App stack: [0018952c..0010952c] Exceptn stack: [00109480..00107540]
: Call frame traceback EIPs:
: 0x000f34e9
: 0x00006ee9
: 0x0000a503
: 0x000f2098
This is easily preproduced with expr.y from djgpp libc cvs.
Symify points to getargs.c, line 217 (copied by hand):
case 'd':
/* Here, the -d and --defines ... */
defines_flag = 1;
spec_defines_file = AS_FILE_NAME (optarg); /* Line 217. */
break;
optarg is NULL here.
This is from bison 1.32. It looks like that I have bison 1.28
installed on this machine that runs plain DOZE, if it might matter.
Right,
MartinS
- Raw text -