bug-bison
[Top][All Lists]
Advanced

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

bug in bison 1.875


From: Martin MOKREJŠ
Subject: bug in bison 1.875
Date: Thu, 27 Feb 2003 16:57:48 +0100 (CET)

Hi,
  I've bison compiled on Tru64Unixc 5.1A with cc. I had to decrease
optimization flags from -O2 to -O, otherwise even latest version of
compiler crashed. However, one test supplied with automake-1.7.2 fails
because of bison crashing. I don't know if it would be better to force
lower optimization in general, as one does not realize such a problem
immediately, as bison doesn't crash always ... I'm trying to report a bug
to HP/Compaq, but that will take a while, even if I find an email address
where to report bugs (where I'm stuck right now). :(


When "-O2 -arch ev56 -g3" was used:

$ ./yacc7.test
=== Running test ./yacc7.test
+ pwd
/cluster/members/member0/tmp/automake-1.7.2/tests/testSubDir
+ cat
+ cat
+ cat
+ set -e
+ /software/@sys/usr/bin/perl 
/cluster/members/member0/tmp/automake-1.7.2/tests/testSubDir/../../aclocal -I 
/cluster/members/member0/tmp/automake-1.7.2/tests/testSubDir/../../m4 
--acdir=/cluster/members/member0/tmp/automake-1.7.2/tests/../m4
+ /software/@sys/usr/bin/perl 
/cluster/members/member0/tmp/automake-1.7.2/tests/testSubDir/../../automake 
--libdir=/cluster/members/member0/tmp/automake-1.7.2/tests/../lib --foreign 
-Werror -Wall -a
+ /bin/bash /tmp/automake-1.7.2/lib/missing --run autoconf
+ ./configure
checking for a BSD-compatible install... /software/@sys/usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of cc... tru64
checking for bison... bison -y
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
+ make foo.h
bison -y  -d `test -f 'foo.y' || echo './'`foo.y
make: *** [foo.c] Segmentation fault (core dumped)
serow$ cd testSubDir/
serow$ dbx /software/@sys/usr/bin/bison ./core
dbx version 5.1
Type 'help' for help.
Core file created by program "bison"

signal Segmentation fault at   [quotearg_buffer_restyled:256 +0x38,0x12004b264] 
 Source not available

warning: Files compiled -g3: parameter values probably wrong
(dbx) where
>  0 quotearg_buffer_restyled(buffer = 0x1400162e8 = ""up"", buffersize = 256, 
> arg = (nil), argsize = 18446744073709551615, quoting_style = 
> shell_quoting_style, o = 0x11fff7cf8) ["quotearg.c":256, 0x12004b264]
   1 quotearg_buffer(buffer = (unallocated - symbol optimized away), buffersize 
= (unallocated - symbol optimized away), arg = (unallocated - symbol optimized 
away), argsize = (unallocated - symbol optimized away), o = 0x3) 
["quotearg.c":503, 0x12004b97c]
   2 quotearg_n_options(n = 0, arg = (nil), argsize = 18446744073709551615, 
options = 0x11fff7cf8) ["quotearg.c":560, 0x12004bad4]
   3 quotearg_n_style(n = 0, s = 256, arg = (nil)) ["quotearg.c":600, 
0x12004bcd0]
   4 quotearg_style(s = literal_quoting_style, arg = (nil)) ["quotearg.c":614, 
0x12004bd98]
   5 epilogue_augment(epilogue = 0x140028018 = "\n", loc = struct {
    start = struct {
        file = (nil)
        line = 0
        column = 0
    }
    end = struct {
        file = 0x14001a300 = "foo.y"
        line = 4
        column = 1
    }
}) ["reader.c":93, 0x120032d90]

DBX Fault: Segmentation fault
(dbx)


When "-O -arch ev56 -g3" was used:
$ dbx /software/@sys/usr/bin/bison ./core
dbx version 5.1
Type 'help' for help.
Core file created by program "bison"

signal Segmentation fault at   [quotearg_buffer_restyled:256 +0x38,0x12004b264] 
 Source not available

warning: Files compiled -g3: parameter values probably wrong
(dbx) where
>  0 quotearg_buffer_restyled(buffer = 0x1400162e8 = ""up"", buffersize = 256, 
> arg = (nil), argsize = 18446744073709551615, quoting_style = 
> shell_quoting_style, o = 0x11fff7cf8) ["quotearg.c":256, 0x12004b264]
   1 quotearg_buffer(buffer = (unallocated - symbol optimized away), buffersize 
= (unallocated - symbol optimized away), arg = (unallocated - symbol optimized 
away), argsize = (unallocated - symbol optimized away), o = 0x3) 
["quotearg.c":503, 0x12004b97c]
   2 quotearg_n_options(n = 0, arg = (nil), argsize = 18446744073709551615, 
options = 0x11fff7cf8) ["quotearg.c":560, 0x12004bad4]
   3 quotearg_n_style(n = 0, s = 256, arg = (nil)) ["quotearg.c":600, 
0x12004bcd0]
   4 quotearg_style(s = literal_quoting_style, arg = (nil)) ["quotearg.c":614, 
0x12004bd98]
   5 epilogue_augment(epilogue = 0x140028018 = "\n", loc = struct {
    start = struct {
        file = (nil)
        line = 0
        column = 0
    }
    end = struct {
        file = 0x14001a300 = "foo.y"
        line = 4
        column = 1
    }
}) ["reader.c":93, 0x120032d90]

DBX Fault: Segmentation fault
(dbx)

$ cc -V
Compaq C V6.5-207 (dtk) on Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.5-207 (dtk) (dtk) cc Driver

-- 
Martin Mokrejs <address@hidden>, <address@hidden>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585




reply via email to

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