public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "jojelino at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/50045] New: [4.7 regression] ICE in gcc/java/lang.c:427 with -ftree-dump-all
Date: Thu, 11 Aug 2011 15:59:00 -0000	[thread overview]
Message-ID: <bug-50045-8172@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50045

             Bug #: 50045
           Summary: [4.7 regression] ICE in gcc/java/lang.c:427 with
                    -ftree-dump-all
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jojelino@gmail.com
              Host: i686-pc-cygwin
            Target: i686-pc-mingw32
             Build: i686-pc-cygwin


Created attachment 24983
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24983
testcase: hello world!

It crashed while dumping to hello.class.019t.inline_param1

$ i686-pc-mingw32-gcj hello.class -g --main=hello -fdump-tree-all  -v
-Wl,--verbose
Using built-in specs.
Reading specs from /usr/lib/gcc/i686-pc-mingw32/4.7.0/libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
COLLECT_GCC=i686-pc-mingw32-gcj
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-mingw32/4.7.0/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ./configure -C --prefix=/usr --enable-win32-registry
--enable-java-awt=qt --enable-threads=win32 --enable-languages=c,c++,lto,java
--with-win32-nlsapi=unicode --enable-tls --disable-bootstrap
--target=i686-pc-mingw32 --enable-shared --enable-load-library
--enable-interpreter --disable-sjlj-exceptions --enable-gomp
--with-ecj-jar=/tmp/gcc/org.eclipse.jdt.core_3.7.0.v_B35.jar
--with-antlr-jar=/tmp/gcc/antlr-3.3-complete.jar
--with-libiconv-prefix=/usr/i686-pc-mingw32 --with-x=no : (reconfigured)
./configure -C --prefix=/usr --enable-win32-registry --enable-java-awt=qt
--enable-threads=win32 --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --target=i686-pc-mingw32 --enable-shared
--enable-load-library --enable-interpreter --disable-sjlj-exceptions
--enable-gomp --with-ecj-jar=/tmp/gcc/org.eclipse.jdt.core_3.7.0.v_B35.jar
--with-antlr-jar=/tmp/gcc/antlr-3.3-complete.jar
--with-libiconv-prefix=/usr/i686-pc-mingw32 --with-x=no
target_alias=i686-pc-mingw32 --enable-languages=c,c++,java,lto --no-create
--no-recursion
Thread model: win32
gcc version 4.7.0 20110811 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-g' '-fdump-tree-all' '-v' '-fbootclasspath=.;C/:\Program
Files\java\jdk1.7.0\jre\lib\ext\QTJava.zip;E/:\IBM\SQLLIB\java\db2java.zip;E/:\IBM\SQLLIB\java\db2jcc.jar;E/:\IBM\SQLLIB\java\sqlj.zip;E/:\IBM\SQLLIB\java\db2jcc_license_cu.jar;E/:\IBM\SQLLIB\bin;E/:\IBM\SQLLIB\java\common.jar:/usr/share/java/libgcj-4.7.0.jar'
'-shared-libgcc' '-mtune=generic' '-march=pentiumpro'
COLLECT_GCC_OPTIONS='-g' '-fdump-tree-all' '-v' '-fbootclasspath=.;C/:\Program
Files\java\jdk1.7.0\jre\lib\ext\QTJava.zip;E/:\IBM\SQLLIB\java\db2java.zip;E/:\IBM\SQLLIB\java\db2jcc.jar;E/:\IBM\SQLLIB\java\sqlj.zip;E/:\IBM\SQLLIB\java\db2jcc_license_cu.jar;E/:\IBM\SQLLIB\bin;E/:\IBM\SQLLIB\java\common.jar:/usr/share/java/libgcj-4.7.0.jar'
'-shared-libgcc' '-mtune=generic' '-march=pentiumpro'
 /usr/libexec/gcc/i686-pc-mingw32/4.7.0/jc1.exe hello.class
-fhash-synchronization -fuse-divide-subroutine -fcheck-references
-fuse-boehm-gc -fkeep-inline-functions -quiet -dumpbase hello.class
-mtune=generic -march=pentiumpro -auxbase hello -g -version -fdump-tree-all
-fbootclasspath=.;C/:\Program
Files\java\jdk1.7.0\jre\lib\ext\QTJava.zip;E/:\IBM\SQLLIB\java\db2java.zip;E/:\IBM\SQLLIB\java\db2jcc.jar;E/:\IBM\SQLLIB\java\sqlj.zip;E/:\IBM\SQLLIB\java\db2jcc_license_cu.jar;E/:\IBM\SQLLIB\bin;E/:\IBM\SQLLIB\java\common.jar:/usr/share/java/libgcj-4.7.0.jar
-faux-classpath /tmp/cczeZhvl.zip -o /tmp/ccBhJRyd.s
GNU Java (GCC) version 4.7.0 20110811 (experimental) (i686-pc-mingw32)
        compiled by GNU C version 4.7.0 20110801 (experimental), GMP version
5.0.0, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Java (GCC) version 4.7.0 20110811 (experimental) (i686-pc-mingw32)
        compiled by GNU C version 4.7.0 20110801 (experimental), GMP version
5.0.0, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
    /tmp/cczeZhvl.zip/ (zip)
    .;C/ (system)
    \Program Files\java\jdk1.7.0\jre\lib\ext\QTJava.zip;E/ (system)
    \IBM\SQLLIB\java\db2java.zip;E/ (system)
    \IBM\SQLLIB\java\db2jcc.jar;E/ (system)
    \IBM\SQLLIB\java\sqlj.zip;E/ (system)
    \IBM\SQLLIB\java\db2jcc_license_cu.jar;E/ (system)
    \IBM\SQLLIB\bin;E/ (system)
    \IBM\SQLLIB\java\common.jar/ (system) (zip)
    /usr/share/java/libgcj-4.7.0.jar/ (system) (zip)
In class 'hello':
In method 'hello.main(java.lang.String[])':
jc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


$ gdb --args /usr/libexec/gcc/i686-pc-mingw32/4.7.0/jc1.exe hello.class
-fhash-synchronization -fuse-divide-subroutine -fcheck-references
-fuse-boehm-gc -fkeep-inline-functions -quiet -dumpbase hello.class
-mtune=generic -march=pentiumpro -auxbase hello -g -version -fdump-tree-all
-fbootclasspath=.:/usr/share/java/libgcj-4.7.0.jar -faux-classpath hello.class
-o /tmp/ccOXJ6ns.s
GNU gdb (GDB) 7.3.50.20110803-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...

warning: the current range check setting does not match the language.


warning: the current type check setting does not match the language.

Whether backtraces should continue past the entry point of a program is off.
Reading symbols from /usr/libexec/gcc/i686-pc-mingw32/4.7.0/jc1.exe...done.
(gdb) r
Starting program: /usr/libexec/gcc/i686-pc-mingw32/4.7.0/jc1.exe hello.class
-fhash-synchronization -fuse-divide-subroutine -fcheck-references
-fuse-boehm-gc -fkeep-inline-functions -quiet -dumpbase hello.class
-mtune=generic -march=pentiumpro -auxbase hello -g -version -fdump-tree-all
-fbootclasspath=.:/usr/share/java/libgcj-4.7.0.jar -faux-classpath hello.class
-o /tmp/ccOXJ6ns.s
[New Thread 14640.0xae8]
warning: section .gnu_debuglink not found in /cygdrive/d/cygwin/bin/cygwin1.dbg
[New Thread 14640.0x1af0]

Program received signal SIGSEGV, Segmentation fault.
0x00458abe in put_decl_node (node=0x7ff50780, verbosity=0x2)
    at ../.././gcc/java/lang.c:427
427                       put_decl_node (TREE_VALUE (args), verbosity);
(gdb) i local
__t = 0x0
i = 0x0
args = 0x0
was_pointer = 0x0
__FUNCTION__ = "put_decl_node"
(gdb) up
#1  0x00458fbd in lang_printable_name (decl=0x7ff50780, v=0x2)
    at ../.././gcc/java/lang.c:473
473       put_decl_node (decl, v);
(gdb) i local
No locals.
(gdb) up
#2  0x006d6d58 in cgraph_node_name (node=0x7ff415a8)
    at ../.././gcc/cgraph.c:1769
1769      return lang_hooks.decl_printable_name (node->decl, 2);
(gdb) i local
No locals.
(gdb) up
#3  0x00c4864c in dump_inline_edge_summary (f=0x2003b94c, indent=0x4,
    node=0x7ff40930, info=0x7ff82040) at ../.././gcc/ipa-inline-analysis.c:926
926           fprintf (f, "%*s%s/%i %s\n%*s  loop depth:%2i freq:%4i size:%2i
time: %2i callee size:%2i stack:%2i",
(gdb) i local
es = 0x200e9e88
callee = 0x7ff415a8
edge = 0x7febe780
(gdb) up
#4  0x00c48b72 in dump_inline_summary (f=0x2003b94c, node=0x7ff40930)
    at ../.././gcc/ipa-inline-analysis.c:1011
1011          dump_inline_edge_summary (f, 4, node, s);
(gdb) i local
s = 0x7ff82040
e = 0x0
i = 0x2
__FUNCTION__ = "dump_inline_summary"
(gdb) up
#5  0x00c4d608 in estimate_function_body_sizes (node=0x7ff40930, early=0x1)
    at ../.././gcc/ipa-inline-analysis.c:1616
1616          dump_inline_summary (dump_file, node);
(gdb) i local
time = 0x48
size = 0x1c
bb = 0x0
bsi = {
  ptr = 0x0,
  seq = 0x7ff235e0,
  bb = 0x7fdd0c60
}
my_function = 0x7fe05400
__FUNCTION__ = "estimate_function_body_sizes"
freq = 0x3e8
info = 0x7ff82040
bb_predicate = {
  clause = {0x0, 0x111a576, 0x7ff11d70, 0x7ff52c80, 0x7ff52c80, 0x0, 0x0,
    0xc446f1, 0x7ff116b0}
}
parms_info = 0x0
nonconstant_names = 0x0
(gdb) up
#6  0x00c4d907 in compute_inline_parameters (node=0x7ff40930, early=0x1)
    at ../.././gcc/ipa-inline-analysis.c:1676
1676      estimate_function_body_sizes (node, early);
(gdb) i local
self_stack_size = 0x0
e = 0x0
info = 0x7ff82040
__FUNCTION__ = "compute_inline_parameters"
(gdb) up
#7  0x00c4d966 in compute_inline_parameters_for_current ()
    at ../.././gcc/ipa-inline-analysis.c:1692
1692      compute_inline_parameters (cgraph_get_node (current_function_decl),
true);
(gdb) i local
No locals.
(gdb) up
#8  0x0066d34a in execute_one_pass (pass=0x102c240)
    at ../.././gcc/passes.c:2063
2063          todo_after = pass->execute ();
(gdb) i local
initializing_dump = 0x1
todo_after = 0x0
gate_status = 0x1
__FUNCTION__ = "execute_one_pass"
(gdb)


             reply	other threads:[~2011-08-11 15:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-11 15:59 jojelino at gmail dot com [this message]
2011-09-29 13:11 ` [Bug java/50045] " rguenth at gcc dot gnu.org
2011-09-29 13:13 ` rguenth at gcc dot gnu.org
2011-10-10 12:20 ` rguenth at gcc dot gnu.org
2011-10-22 17:35 ` jojelino at gmail dot com
2012-02-02 19:45 ` [Bug java/50045] [4.7 regression] ICE in gcc/java/lang.c:427 with -fdump-tree-all pinskia at gcc dot gnu.org
2012-02-22 16:51 ` ktietz at gcc dot gnu.org
2012-03-22  9:34 ` [Bug java/50045] [4.7/4.8 " rguenth at gcc dot gnu.org
2012-06-14  8:43 ` rguenth at gcc dot gnu.org
2012-09-20 10:25 ` jakub at gcc dot gnu.org
2013-04-11  7:59 ` [Bug java/50045] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
2014-06-12 13:45 ` [Bug java/50045] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:38 ` [Bug java/50045] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-06-23  8:21 ` [Bug java/50045] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 20:10 ` [Bug java/50045] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:36 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-50045-8172@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).