Bug 15223 - gcj ICE when compiling pizza-1.1.jar
Summary: gcj ICE when compiling pizza-1.1.jar
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Andrew Haley
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks: 17574
  Show dependency treegraph
 
Reported: 2004-04-30 10:49 UTC by marco
Modified: 2004-09-28 18:22 UTC (History)
2 users (show)

See Also:
Host: i386-slackware-linux
Target: i386-slackware-linux
Build: i386-slackware-linux
Known to work:
Known to fail: 3.4.0 4.0.0
Last reconfirmed: 2004-08-27 04:43:34


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marco 2004-04-30 10:49:16 UTC
GCJ 3.4.0 produces an ICE when trying to compile the pizza compiler version 1.1. 

HP of the pizza: 
  http://pizzacompiler.sourceforge.net/
Download Mirrors for version 1.1: 
 http://prdownloads.sourceforge.net/pizzacompiler/pizza-1.1.jar?download

The following transript shows how the error manifests: 

=begin=
marco@gontscharow:~/tmp/piz$ /opt/gcc-3.4.0/bin/gcj -v
Reading specs from /opt/gcc-3.4.0/lib/gcc/i386-slackware-linux/3.4.0/specs
Reading specs from
/opt/gcc-3.4.0/lib/gcc/i386-slackware-linux/3.4.0/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../source/gcc-3.4.0/configure --prefix=/opt/gcc-3.4.0
--enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.4.0
marco@gontscharow:~/tmp/piz$ /opt/gcc-3.4.0/bin/gcj pizza-1.1.jar -o pizza
C:\pizza\main\src\net\sf\pizzacompiler\compiler\ClassReader.pizza: In class
`net.sf.pizzacompiler.compiler.ClassReader$$closures':
C:\pizza\main\src\net\sf\pizzacompiler\compiler\ClassReader.pizza: In method
`net.sf.pizzacompiler.compiler.ClassReader$$closures.$apply(java.lang.Object)':
C:\pizza\main\src\net\sf\pizzacompiler\compiler\ClassReader.pizza:27: internal
compiler error: in size_binop, at fold-const.c:1598
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
=end=
Comment 1 Andrew Pinski 2004-04-30 12:37:40 UTC
Confirmed, here is the backtrace for the tree-ssa compiler (but note it was compiled with -O3): 
#0  0x9002c878 in exit ()
#1  0x000893a8 in internal_error (msgid=0x551448 "A\220\001?") at /Users/pinskia/src/gcc-tree-
ssa/gcc/gcc/diagnostic.c:537
#2  0x000893a8 in internal_error (msgid=0x551448 "A\220\001?") at /Users/pinskia/src/gcc-tree-
ssa/gcc/gcc/diagnostic.c:537
#3  0x000894cc in fancy_abort (file=0x1 <Address 0x1 out of bounds>, line=10, function=0x0) at /
Users/pinskia/src/gcc-tree-ssa/gcc/gcc/diagnostic.c:583
#4  0x000a5b1c in size_binop (code=5575752, arg0=0x9002c868, arg1=0xbffff2f0) at /Users/
pinskia/src/gcc-tree-ssa/gcc/gcc/fold-const.c:1645
#5  0x00044c38 in build_invokevirtual (dtable=0x43d1a6e0, method=0x43bf6d00) at /Users/pinskia/
src/gcc-tree-ssa/gcc/gcc/java/expr.c:1965
#6  0x00048c14 in expand_invoke (opcode=5505024, method_ref_index=0, nargs=131) at /Users/
pinskia/src/gcc-tree-ssa/gcc/gcc/java/expr.c:2140
#7  0x0004ace8 in process_jvm_instruction (PC=1136618752, byte_ops=0x43d1a6e0 "", length=131) 
at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/java/javaop.def:292
#8  0x0004e2f4 in expand_byte_code (jcf=0x405b1ffc, method=0x0) at /Users/pinskia/src/gcc-tree-
ssa/gcc/gcc/java/expr.c:2925
#9  0x0005ba5c in parse_class_file () at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/java/jcf-parse.c:784
#10 0x0005e860 in java_parse_file (set_yydebug=1) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/java/
jcf-parse.c:1210
#11 0x00072e70 in toplev_main (argc=12, argv=0x42176d62) at /Users/pinskia/src/gcc-tree-ssa/
gcc/gcc/toplev.c:1650
#12 0x00001a30 in _start (argc=0, argv=0x4305f200, envp=0xc) at /SourceCache/Csu/Csu-46/crt.c:
267
#13 0x000018a4 in start ()
Comment 2 Andrew Haley 2004-09-28 14:24:13 UTC
Probably the same bug as 17586


 $ gcj pizza-1.1.jar -o pizza --main=net.sf.pizzacompiler.compiler.Main
 $ gcj --version
gcj (GCC) 4.0.0 20040923 (experimental)
Copyright (C) 2004 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.
Comment 3 Andrew Pinski 2004-09-28 16:44:46 UTC
Reopening because the patch was reverted.
Comment 4 Andrew Pinski 2004-09-28 18:22:50 UTC
Fixed now.