From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32718 invoked by alias); 14 Apr 2005 13:48:43 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 32698 invoked by uid 48); 14 Apr 2005 13:48:42 -0000 Date: Thu, 14 Apr 2005 13:48:00 -0000 From: "andreast at gcc dot gnu dot org" To: java-prs@gcc.gnu.org Message-ID: <20050414134831.21022.andreast@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/21022] New: bootstrap error compiling libgcj with awt support on darwin-ppc X-Bugzilla-Reason: CC X-SW-Source: 2005-q2/txt/msg00122.txt.bz2 List-Id: I get the following bus error when I compile libgcj with awt support on darwin: gnu/java/awt/peer/gtk/GdkFontMetrics.java: In class 'gnu.java.awt.peer.gtk.GdkFontMetrics': gnu/java/awt/peer/gtk/GdkFontMetrics.java: In constructor '(java.awt.Font)': gnu/java/awt/peer/gtk/GdkFontMetrics.java:0: internal compiler error: Bus error Please submit a full bug report, with preprocessed source if appropriate. See for instructions. The backtrace of in gdb of the error looks like this: Program received signal EXC_BAD_ACCESS, Could not access memory. fold_convert (type=0x4160c380, arg=0x0) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/fold-const.c:1885 1885 tree orig = TREE_TYPE (arg); (gdb) bt #0 fold_convert (type=0x4160c380, arg=0x0) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/fold-const.c:1885 #1 0x002636dc in bit_from_pos (offset=0x2636dc, bitpos=0x1f5d18) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/stor-layout.c:538 #2 0x002636dc in bit_from_pos (offset=0x2636dc, bitpos=0x1f5d18) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/stor-layout.c:538 #3 0x000f0d0c in dbxout_type (type=0x41640c00, full=0) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/dbxout.c:1406 #4 0x000f033c in dbxout_type (type=0x41640e00, full=1) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/dbxout.c:2102 #5 0x000f2f68 in dbxout_symbol (decl=0x41640f00, local=0) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/dbxout.c:2570 #6 0x00144a84 in debug_flush_symbol_queue () at /Volumes/src/gcc/gcc-cvs/gcc/gcc/final.c:3825 #7 0x000f3d1c in dbxout_function_decl (decl=0x41643980) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/dbxout.c:3391 #8 0x0028af98 in rest_of_compilation () at /Volumes/src/gcc/gcc-cvs/gcc/gcc/passes.c:330 #9 0x0005dc7c in execute_pass_list (pass=0x48efd8) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/tree-optimize.c:552 #10 0x0005dff4 in tree_rest_of_compilation (fndecl=0x0) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/tree-optimize.c:695 #11 0x002b85e0 in cgraph_expand_function (node=0x41657a00) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/cgraphunit.c:931 #12 0x002b86d4 in cgraph_assemble_pending_functions () at /Volumes/src/gcc/gcc-cvs/gcc/gcc/cgraphunit.c:364 #13 0x002b8e44 in cgraph_finalize_function (decl=0x41643980, nested=0 '\0') at /Volumes/src/gcc/gcc-cvs/gcc/gcc/cgraphunit.c:456 #14 0x00031c90 in end_java_method () at /Volumes/src/gcc/gcc-cvs/gcc/gcc/java/decl.c:2025 #15 0x0004a8c8 in parse_class_file () at /Volumes/src/gcc/gcc-cvs/gcc/gcc/java/jcf-parse.c:935 #16 0x0004d14c in java_parse_file (set_yydebug=1096860544) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/java/jcf-parse.c:1288 #17 0x0026a60c in toplev_main (argc=1078961420, argv=0xbffffa40) at /Volumes/src/gcc/gcc-cvs/gcc/gcc/toplev.c:1000 #18 0x00002754 in _start (argc=25, argv=0xbffff924, envp=0xbffff98c) at /SourceCache/Csu/Csu-47/crt.c:267 #19 0x8fe1a558 in __dyld__dyld_start () (gdb) I can reproduce this on 4.0.x branch too. Unfortunately the error is not as easy to reproduce for others. It requires that you have a gtk installation with shared libgcc. All in all about half a day or more of compilation work. Anyway. The error appears since Tom Tromey checked in findirect-dispatch compilation for the awt-peer sources around 2005-04-05. The error does also happen on tiger. Further analysis has showed, if I remove the debug switch -g from the compilation command, I do not get the bus error. Note, darwin still uses stabs as preferred dbg format. I was not able to build a gcc on darwin with dwarf2 as default. Neither was I able to reproduce the failure on linuxppc -with-stabs. Andrew Pinski noted on IRC that it might be a java fe bug. For me the question is now, how can I continue to debug this error? The sooner or later (29 of April) the libgcj awt issue will come since then the new darwin release can really run gtk-awt java based apps. -- Summary: bootstrap error compiling libgcj with awt support on darwin-ppc Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: andreast at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org GCC build triplet: powerpc-apple-darwin7.8.0 GCC host triplet: powerpc-apple-darwin7.8.0 GCC target triplet: powerpc-apple-darwin7.8.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21022