From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27563 invoked by alias); 3 Jul 2013 14:57:57 -0000 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 Received: (qmail 27539 invoked by uid 48); 3 Jul 2013 14:57:57 -0000 From: "hearn at google dot com" To: java-prs@gcc.gnu.org Subject: [Bug java/57799] New: ICE in jcf-parse.c Date: Wed, 03 Jul 2013 14:57: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-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hearn at google 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q3/txt/msg00000.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57799 Bug ID: 57799 Summary: ICE in jcf-parse.c Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java Assignee: unassigned at gcc dot gnu.org Reporter: hearn at google dot com Whilst compiling a JAR containing the following snippet of code, I get a segfault that looks like this: #0 0x0000000000535541 in rewrite_reflection_indexes (arg=0x7fffffffd5f0) at ../../gcc-4.8.1/gcc/java/jcf-parse.c:754 #1 0x000000000050c7d7 in make_class_data (type=0x7ffff5f82dc8) at ../../gcc-4.8.1/gcc/java/class.c:2193 #2 0x000000000050cbb1 in finish_class () at ../../gcc-4.8.1/gcc/java/class.c:2255 #3 0x000000000053946b in parse_class_file () at ../../gcc-4.8.1/gcc/java/jcf-parse.c:1661 #4 0x000000000053a37a in parse_zip_file_entries () at ../../gcc-4.8.1/gcc/java/jcf-parse.c:2101 #5 0x0000000000539dd0 in java_parse_file () at ../../gcc-4.8.1/gcc/java/jcf-parse.c:1931 #6 0x00000000008e60b7 in compile_file () at ../../gcc-4.8.1/gcc/toplev.c:543 #7 0x00000000008e7fed in do_compile () at ../../gcc-4.8.1/gcc/toplev.c:1864 #8 0x00000000008e8158 in toplev_main (argc=22, argv=0x7fffffffdd18) at ../../gcc-4.8.1/gcc/toplev.c:1940 #9 0x0000000000e9b620 in main (argc=22, argv=0x7fffffffdd18) at ../../gcc-4.8.1/gcc/main.c:36 I debugged it a bit, the offending class looks like this: public class ProtobufParser { public interface Listener { public void messageReceived(ProtobufParser handler, MessageType msg); public void connectionOpen(ProtobufParser handler); public void connectionClosed(ProtobufParser handler); } } The crashing class is the inner ProtobufParser$Listener.class file. I can send a complete JAR to someone privately if you'd like to debug this further. I tried compiling the ProtobufParser$Listener.class file independently like this: gcj -c -o x ProtobufParser\$Listener.class and .... no crash :(