public inbox for
 help / color / mirror / Atom feed
* GCJ segfault
@ 2022-08-29  2:20 Zopolis0
  0 siblings, 0 replies; only message in thread
From: Zopolis0 @ 2022-08-29  2:20 UTC (permalink / raw)
  To: gcc-help

While attempting to compile gcj, it throws, among other things, a segfault
that I have traced back to line 536 of gcc/java/ (on my
msterstable branch

The segfault is due to the DECL_NAME call, which then fails
the contains_struct_check and causes a segfault.

According to 5a5e7deb5f93f04e027fd5baa1876370d6d6697f and
78fcec3fee63f10cfde06c252fc391e768c64b12, the correct fix would be to wrap
the call in DECL_NAME, no?

Yet that just causes the contains_struct_check to fail on the if DECL_NAME
(TYPE_NAME (type)) call.

What is the proper way to solve this?

libtool: compile:  /home/zopolis4/gcjbuild/./gcc/gcj
-B/home/zopolis4/gcjbuild/./gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/
-B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem
/usr/local/x86_64-pc-linux-gnu/include -isystem
/usr/local/x86_64-pc-linux-gnu/sys-include -fomit-frame-pointer -Usun
--encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c
-MT gnu/awt/j2d.lo -MD -MP -MF gnu/awt/j2d.deps @gnu/awt/j2d.list  -fPIC -o
/home/zopolis4/gcj/libjava/gnu/awt/j2d/ In class
/home/zopolis4/gcj/libjava/gnu/awt/j2d/ In
method 'gnu.awt.j2d.AbstractGraphicsState.clone()':
In file included from <built-in>:351:
internal compiler error: Segmentation fault
  133 |         return super.clone ();
0xda20cf crash_signal
0x86be61 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
0x86be61 build_java_signature(tree_node*)
0x86b7c4 shallow_find_method
0x86b9f6 lookup_do
0x864d8a expand_invoke
0x866193 process_jvm_instruction(int, unsigned char const*, long)
0x86884f expand_byte_code(JCF*, tree_node*)
0x87f494 parse_class_file
0x87fd2d java_parse_file()
Please submit a full bug report, with preprocessed source (by using
Please include the complete backtrace with any bug report.
See <> for instructions.
make[3]: *** [Makefile:10625: gnu/awt/j2d.lo] Error 1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-29  2:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29  2:20 GCJ segfault Zopolis0

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