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: Paul Eggert
Subject: Re: SEGV running tests on IRIX 6.5.19m
Date: Wed, 26 May 2004 13:43:01 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

address@hidden (Albert Chin-A-Young) writes:

>    3 quotearg_n_style(n = 3, s = escape_quoting_style=4, arg = 0x1) 
> ["/opt/build/bison-1.875d/lib/quotearg.c":642, 0x10042e4c]

This makes it appear that a file name of ((char *) 1) is being printed
out, which suggests that the locations are bollixed up somehow inside Bison.

>    7 grammar_rule_end(loc = (...)) 
> ["/opt/build/bison-1.875d/src/reader.c":265, 0x100266b8]

It's too bad we can't see what that location was.  Can you please do
the equivalent of the following GDB session to see where (if anywhere)
in this calling chain that it got messed up?  This uses the same test
file "a" that you were using.  Thanks.

(gdb) b grammar_rule_end
Breakpoint 21 at 0x805e7cc: file reader.c, line 263.
(gdb) r a
Starting program: /home/eggert/src/bison/bison-1.875d-irix/src/bison a

Breakpoint 21, grammar_rule_end (loc=
        {start = {file = 0x8083ac8 "a", line = 4, column = 6}, end = {file = 
0x8083ac8 "a", line = 4, column = 16}}) at reader.c:263
(gdb) p loc
$34 = {start = {file = 0x8083ac8 "a", line = 4, column = 6}, end = {
    file = 0x8083ac8 "a", line = 4, column = 16}}
(gdb) b grammar_current_rule_check
Breakpoint 22 at 0x805e6b9: file reader.c, line 225.
(gdb) c
Continuing.

Breakpoint 22, grammar_current_rule_check () at reader.c:225
(gdb) p current_rule[0]
$35 = {next = 0x808d460, sym = 0x808d3a0, location = {start = {
      file = 0x8083ac8 "a", line = 4, column = 6}, end = {file = 0x8083ac8 "a", 
      line = 4, column = 16}}, action = 0x0, action_location = {start = {
      file = 0x8083ac8 "a", line = 4, column = 10}, end = {
      file = 0x8083ac8 "a", line = 4, column = 12}}, ruleprec = 0x0, dprec = 0, 
  merger = 0}
(gdb) b warn_at
Breakpoint 23 at 0x804a79a: file complain.c, line 49.
(gdb) c
Continuing.

Breakpoint 23, warn_at (loc=
        {start = {file = 0x8083ac8 "a", line = 4, column = 6}, end = {file = 
0x8083ac8 "a", line = 4, column = 16}}, 
    message=0x807b7bc "type clash on default action: <%s> != <%s>")
    at complain.c:49
(gdb) p loc
$36 = {start = {file = 0x8083ac8 "a", line = 4, column = 6}, end = {
    file = 0x8083ac8 "a", line = 4, column = 16}}
(gdb) b location_print
Breakpoint 24 at 0x804eab2: file location.c, line 34.
(gdb) c
Continuing.

Breakpoint 24, location_print (out=0x40133380, loc=
        {start = {file = 0x8083ac8 "a", line = 4, column = 6}, end = {file = 
0x8083ac8 "a", line = 4, column = 16}}) at location.c:34
(gdb) p loc
$37 = {start = {file = 0x8083ac8 "a", line = 4, column = 6}, end = {
    file = 0x8083ac8 "a", line = 4, column = 16}}




reply via email to

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