public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/57799] New: ICE in jcf-parse.c
@ 2013-07-03 14:57 hearn at google dot com
0 siblings, 0 replies; only message in thread
From: hearn at google dot com @ 2013-07-03 14:57 UTC (permalink / raw)
To: java-prs
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 :(
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-03 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-03 14:57 [Bug java/57799] New: ICE in jcf-parse.c hearn at google dot com
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).