Red Hat Bugzilla – Bug 39858
Bad: g++ Segfaults while compiling JDK 1.3.1 sources
Last modified: 2007-03-26 23:44:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0)
Description of problem:
While compiling JDK 1.3.1 sources, g++ segfaults on compiling file
byteCode.cpp from the unchanged source distribution downloaded from sun.
Steps to Reproduce:
1.Get the JDK sources
2.Follow the instructions
3.start compile. Wait until it segfaults.:)
Actual Results: G++ : Segmentation fault.
Expected Results: Should have compiled the whole JDK w/o problems.
g++ -v : Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
uname -a : Linux cvsrepo 2.2.19-7.0.1 #1 Tue Apr 10 01:23:42 EDT 2001 i586
All latest patches applied to RH7.0
See my patch http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00504.html
What is interesting is that if JDK stopped "optimizing" this way, the generated
code could be much better (it could be actually inlined).
I've included this patch in gcc-c++-2.96-86.
*** Bug 44759 has been marked as a duplicate of this bug. ***
*** Bug 52905 has been marked as a duplicate of this bug. ***