From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4877 invoked by alias); 11 Aug 2011 15:59:34 -0000 Received: (qmail 4851 invoked by uid 22791); 11 Aug 2011 15:59:33 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GC,TW_JL X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Aug 2011 15:59:09 +0000 From: "jojelino at gmail dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jojelino at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2011-q3/txt/msg00017.txt.bz2 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 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 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: ... 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)