bug-bison
[Top][All Lists]
Advanced

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

Re: SEGV running tests on IRIX 6.5.19m


From: Albert Chin-A-Young
Subject: Re: SEGV running tests on IRIX 6.5.19m
Date: Tue, 25 May 2004 06:15:21 -0500
User-agent: Mutt/1.5.6i

On Mon, May 24, 2004 at 11:09:46PM -0700, Paul Eggert wrote:
> However, rather than trying to backport this mess to Bison 1.875 I
> suggest trying the latest Bison test version instead.  We're getting
> fairly close to a new version.
> 
> ftp://alpha.gnu.org/gnu/bison/bison-1.875d.tar.gz

Test suite output below. The first failure:
  $ cat a
%token foo
%type <bar> exp
%%
exp: foo {} foo
   | foo
   | /* Empty. */
   ;
  $ ../src/bison a
a:4.6zsh: segmentation fault (core dumped)  ../src/bison a
  $ dbx ../src/bison core
  dbx> where
   0 quotearg_buffer_restyled(buffer = 0x1006cc60 = "a", buffersize = 2, arg = 
0x1, argsize = 4294967295, quoting_style = escape_quoting_style=4, o = 
0x7ffc3468) ["/opt/build/bison-1.875d/lib/quotearg.c":258, 0x10041c98]
   1 quotearg_buffer(buffer = 0x1006cc60 = "a", buffersize = 2, arg = 0x1, 
argsize = 4294967295, o = 0x7ffc3468) 
["/opt/build/bison-1.875d/lib/quotearg.c":530, 0x10042964]
   2 quotearg_n_options(n = 3, arg = 0x1, argsize = 4294967295, options = 
0x7ffc3468) ["/opt/build/bison-1.875d/lib/quotearg.c":600, 0x10042ba0]
   3 quotearg_n_style(n = 3, s = escape_quoting_style=4, arg = 0x1) 
["/opt/build/bison-1.875d/lib/quotearg.c":642, 0x10042e4c]
   4 location_print(out = 0xfb2ad38, loc = (...)) 
["/opt/build/bison-1.875d/src/location.c":39, 0x10010a6c]
   5 warn_at(loc = (...), message = 0x1005a798 = "type clash on default action: 
<%s> != <%s>", ... = <void>) ["/opt/build/bison-1.875d/src/complain.c":49, 
0x10009448]
   6 grammar_current_rule_check() ["/opt/build/bison-1.875d/src/reader.c":244, 
0x100265b0]
   7 grammar_rule_end(loc = (...)) ["/opt/build/bison-1.875d/src/reader.c":265, 
0x100266b8]
   8 gram_parse() ["/opt/build/bison-1.875d/src/parse-gram.y":376, 0x100214c8]
   9 reader() ["/opt/build/bison-1.875d/src/reader.c":481, 0x10027370]
   10 main(argc = 2, argv = 0x7ffc5f24) 
["/opt/build/bison-1.875d/src/main.c":80, 0x10010c24]

-- 
albert chin (address@hidden)

-- snip snip
/bin/sh ./testsuite
## ---------------------------- ##
## GNU Bison 1.875d test suite. ##
## ---------------------------- ##

Input Processing.

  1: Invalid                                    ok
  2: Invalid @n                                   ok
  3: Type Clashes                                 FAILED (input.at:80)
  4: Torturing the Scanner                        ok

Output file names.

  5: Output files:  & -dv.                        ok
  6: Output files:  & -dv -o foo.c.               ok
  7: Output files:  & -dv -o foo.tab.c.           ok
  8: Output files:  & -dv -y.                     ok
  9: Output files:  & -dv -b bar.                 ok
 10: Output files:  & -dv -g -o foo.c.            ok
 11: Output files: %defines %verbose & .          ok
 12: Output files: %defines %verbose %yacc & .    ok
 13: Output files: %defines %verbose %yacc & .    ok
 14: Output files: %file-prefix=bar %defines %verbose & .ok
 15: Output files: %output=bar.c %defines %verbose %yacc & .ok
 16: Output files: %file-prefix=baz %output=bar.c %defines %verbose %yacc & .ok
 17: Output files: %defines %verbose & .          ok
 18: Output files: %defines %verbose  & -o foo.c. ok
 19: Output files:  & --defines=foo.hpp -o foo.c++.ok
 20: Output files:  & -o foo.c++ --graph=foo.gph. ok

Grammar Sets (Firsts etc.).

 21: Nullable                                     ok
 22: Broken Closure                               ok
 23: Firsts                                       ok

Grammar Reduction.

 24: Useless Terminals                            ok
 25: Useless Nonterminals                         ok
 26: Useless Rules                                FAILED (reduce.at:166)
 27: Reduced Automaton                            FAILED (reduce.at:248)
 28: Underivable Rules                            FAILED (reduce.at:322)
 29: Empty Language                               ok

User Actions.

 30: Prologue synch line                          skipped (synclines.at:93)
 31: %union synch line                            skipped (synclines.at:113)
 32: Postprologue synch line                      skipped (synclines.at:136)
 33: Action synch line                            skipped (synclines.at:155)
 34: Epilogue synch line                          skipped (synclines.at:173)

Parser Headers.

 35: %union and --defines                         ok
 36: Invalid CPP guards: input/input              ok
 37: Invalid CPP guards: 9foo                     ok
 38: export YYLTYPE                               ok

User Actions.

 39: Mid-rule actions                             ok
 40: Actions after errors                         ok
 41: Exotic Dollars                               ok
 42: Printers and Destructors:                    ok
 43: Printers and Destructors: %locations %defines %skeleton lalr1.ccFAILED 
(actions.at:557)

Conflicts.

 44: S/R in initial                               FAILED (conflicts.at:43)
 45: %nonassoc and eof                            ok
 46: Unresolved SR Conflicts                      ok
 47: Resolved SR Conflicts                        ok
 48: Defaulted Conflicted Reduction               FAILED (conflicts.at:372)
 49: %expect not enough                           ok
 50: %expect right                                ok
 51: %expect too much                             ok
 52: %expect with reduce conflicts                ok
 53: %no-default-prec without %prec               ok
 54: %no-default-prec with %prec                  ok
 55: %default-prec                                ok

Simple LALR Calculator.

 56: Calculator                                   ok
 57: Calculator %defines                          ok
 58: Calculator %locations                        ok
 59: Calculator %name-prefix=calc               ok
 60: Calculator %verbose                          ok
 61: Calculator %yacc                             ok
 62: Calculator %error-verbose                    ok
 63: Calculator %pure-parser %locations           ok
 64: Calculator %error-verbose %locations         ok
 65: Calculator %error-verbose %locations %defines %name-prefix=calc %verbose 
%yaccok
 66: Calculator %debug                            ok
 67: Calculator %error-verbose %debug %locations %defines %name-prefix=calc 
%verbose %yaccok
 68: Calculator %pure-parser %error-verbose %debug %locations %defines 
%name-prefix=calc %verbose %yaccok
 69: Calculator %pure-parser %error-verbose %debug %locations %defines 
%name-prefix=calc %verbose %yacc %parse-param {semantic_value *result} 
%parse-param {int *count}ok

Simple GLR Calculator.

 70: Calculator %glr-parser                       ok
 71: Calculator %glr-parser %defines              ok
 72: Calculator %glr-parser %locations            ok
 73: Calculator %glr-parser %name-prefix=calc   ok
 74: Calculator %glr-parser %verbose              ok
 75: Calculator %glr-parser %yacc                 ok
 76: Calculator %glr-parser %error-verbose        ok
 77: Calculator %glr-parser %pure-parser %locationsok
 78: Calculator %glr-parser %error-verbose %locationsok
 79: Calculator %glr-parser %error-verbose %locations %defines 
%name-prefix=calc %verbose %yaccok
 80: Calculator %glr-parser %debug                ok
 81: Calculator %glr-parser %error-verbose %debug %locations %defines 
%name-prefix=calc %verbose %yaccok
 82: Calculator %glr-parser %pure-parser %error-verbose %debug %locations 
%defines %name-prefix=calc %verbose %yaccok
 83: Calculator %glr-parser %pure-parser %error-verbose %debug %locations 
%defines %name-prefix=calc %verbose %yacc %parse-param {semantic_value *result} 
%parse-param {int *count}ok

Simple LALR1 C++ Calculator.

 84: Calculator %skeleton lalr1.cc %defines %locationsFAILED (calc.at:614)
 85: Calculator %skeleton lalr1.cc %defines     ok
 86: Calculator %skeleton lalr1.cc %error-verbose %locations %defines 
%name-prefix=calc %verbose %yaccFAILED (calc.at:626)
 87: Calculator %skeleton lalr1.cc %error-verbose %debug %locations %defines 
%name-prefix=calc %verbose %yaccFAILED (calc.at:629)
 88: Calculator %skeleton lalr1.cc %pure-parser %error-verbose %debug 
%locations %defines %name-prefix=calc %verbose %yaccFAILED (calc.at:631)
 89: Calculator %skeleton lalr1.cc %pure-parser %error-verbose %debug 
%locations %defines %name-prefix=calc %verbose %yacc %parse-param 
{semantic_value *result} %parse-param {int *count}FAILED (calc.at:633)

Torture Tests.

 90: Big triangle                                 ok
 91: Big horizontal                               ok
 92: Many lookaheads                              ok
 93: Exploding the Stack Size with Alloca         ok
 94: Exploding the Stack Size with Malloc         ok

Existing Grammars.

 95: GNU AWK Grammar                              ok
 96: GNU Cim Grammar                              ok
 97: GNU pic Grammar                              ok

Regression tests.

 98: Early token definitions                      ok
 99: Braces parsing                               ok
100: Duplicate string                             FAILED (regression.at:104)
101: Rule Line Numbers                            ok
102: Mixing %token styles                         ok
103: Invalid inputs                               ok
104: Token definitions                            ok
105: Characters Escapes                           ok
106: Web2c Report                                 ok
107: Web2c Actions                                FAILED (regression.at:659)
108: Dancer                                       ok
109: Dancer %glr-parser                           ok
110: Dancer %skeleton lalr1.cc                  ok

C++ Type Syntax (GLR).

111: GLR: Resolve ambiguity, impure, no locations ok
112: GLR: Resolve ambiguity, impure, locations    ok
113: GLR: Resolve ambiguity, pure, no locations   ok
114: GLR: Resolve ambiguity, pure, locations      ok
115: GLR: Merge conflicting parses, impure, no locationsok
116: GLR: Merge conflicting parses, impure, locationsok
117: GLR: Merge conflicting parses, pure, no locationsok
118: GLR: Merge conflicting parses, pure, locationsok
119: GLR: Verbose messages, resolve ambiguity, impure, no locationsok

GLR Regression Tests

120: Badly Collapsed GLR States                   ok
121: Improper handling of embedded actions and hN in GLR parsersok

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 116 tests were run,
14 failed unexpectedly.
5 tests were skipped.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `testsuite.log' and all information you think might help:

   To: <address@hidden>
   Subject: [GNU Bison 1.875d] testsuite: 3 26 27 28 43 44 48 84 86 87 88 89 
100 107 failed




reply via email to

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