java/5764: jc1 cfgcleanup SEGV

Anthony Green green@cygnus.com
Sat Feb 23 17:46:00 GMT 2002


>Number:         5764
>Category:       java
>Synopsis:       jc1 cfgcleanup SEGV
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 23 17:46:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Anthony Green
>Release:        3.1 20020222 (experimental)
>Organization:
>Environment:
System: Linux menlo 2.4.9-21 #1 Thu Jan 17 14:16:30 EST 2002 i686 unknown
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/home/green/trunk/i --enable-languages=c,c++,java --with-languages=c,c++,java
>Description:

jc1 is failing somewhere in cfgcleanup when building the Mozilla
javascript interpreter.

Here's a stack trace...

(gdb) where
#0  outgoing_edges_match (mode=3, bb1=0x89e2c3c, bb2=0x89e49e8)
    at ../../gcc/gcc/cfgcleanup.c:1250
#1  0x0823cd09 in try_crossjump_to_edge (mode=3, e1=0x89ea4c8, e2=0x89ed920)
    at ../../gcc/gcc/cfgcleanup.c:1311
#2  0x0823d0b5 in try_crossjump_bb (mode=3, bb=0x89eb1f0)
    at ../../gcc/gcc/cfgcleanup.c:1504
#3  0x0823d4a2 in try_optimize_cfg (mode=3) at ../../gcc/gcc/cfgcleanup.c:1662
#4  0x0823d6d5 in cleanup_cfg (mode=3) at ../../gcc/gcc/cfgcleanup.c:1754
#5  0x082055a4 in rest_of_compilation (decl=0x401ca540)
    at ../../gcc/gcc/toplev.c:3275
#6  0x081af027 in output_inline_function (fndecl=0x401ca540)
    at ../../gcc/gcc/integrate.c:2996
#7  0x08084e9c in finish_class () at ../../gcc/gcc/java/class.c:1767
#8  0x080643d8 in java_expand_classes ()
    at /home/green/trunk/gcc/gcc/java/parse.y:9047
#9  0x080a3509 in yyparse () at ../../gcc/gcc/java/jcf-parse.c:1210
#10 0x08203979 in compile_file () at ../../gcc/gcc/toplev.c:2127
#11 0x08208043 in do_compile () at ../../gcc/gcc/toplev.c:5182
#12 0x08208095 in toplev_main (argc=5, argv=0xbffff6b4)
    at ../../gcc/gcc/toplev.c:5214
#13 0x40044627 in __libc_start_main (main=0x80b2138 <main>, argc=5, 
    ubp_av=0xbffff6b4, init=0x804925c <_init>, fini=0x82b6230 <_fini>, 
    rtld_fini=0x4000dcc4 <_dl_fini>, stack_end=0xbffff6ac)
    at ../sysdeps/generic/libc-start.c:129

>How-To-Repeat:

I've trimmed down a test case, which you can find here:
	
	http://www.cygnus.com/~green/jc1bug.tar.gz

Reproduce the failure like so...

	jc1 -O2 -fclasspath=rhino-1.5R2.jar Interpreter.java

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Java-prs mailing list