public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "hearn at google dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-57799-8172@http.gcc.gnu.org/bugzilla/> (raw)

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<MessageType extends MessageLite> {
    public interface Listener<MessageType extends MessageLite> {
        public void messageReceived(ProtobufParser<MessageType> handler,
MessageType msg);
        public void connectionOpen(ProtobufParser<MessageType> handler);
        public void connectionClosed(ProtobufParser<MessageType> 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 :(


                 reply	other threads:[~2013-07-03 14:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-57799-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).