Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581186 - dev-java/icedtea-3.* and dev-java/icedtea-bin-3.* - A fatal error has been detected by the Java Runtime Environment: SIGSEGV
Summary: dev-java/icedtea-3.* and dev-java/icedtea-bin-3.* - A fatal error has been de...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-25 16:40 UTC by jospezial
Modified: 2018-03-14 21:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,126.55 KB, text/plain)
2016-04-25 16:42 UTC, jospezial
Details
/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk/langtools/make/hs_err_pid9173.log (hs_err_pid9173.log,43.18 KB, text/plain)
2016-04-25 16:48 UTC, jospezial
Details
icedtea-3.0.1/openjdk.build/jaxp/classes/hs_err_pid27679.log (hs_err_pid27679.log,31.39 KB, text/plain)
2016-04-26 12:08 UTC, jospezial
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2016-04-25 16:40:39 UTC
I had this first when I tried to upgrade from icedtea-3-rc to icedtea-3.0.0.
It builds with icedtea-7.
Enable/disable bootstrap use flag does not help.
I had similar crashes when using mediathekview with icedtea-3. 

MAKEOPTS="-j1" FEATURES="-ccache" emerge -va1 =icedtea-3.0.1  --quiet-build=n

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-java/icedtea-3.0.1:8::java [3.0.0:8::java] USE="alsa cjk cups gtk libressl nsplugin pulseaudio source sunec* webstart (-cacao) -debug -doc -examples -headless-awt (-jamvm) -jbootstrap -pax_kernel -sctp (-selinux) -smartcard {-test} -zero" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

...
 
Configuration summary:
* Debug level:    release
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64

Tools summary:
* Boot JDK:       openjdk version "1.8.0_77" OpenJDK Runtime Environment (IcedTea 3.0.0) (Gentoo icedtea-3.0.0) OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode)  (at /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/bootstrap/jdk1.7.0)
* C Compiler:     gcc (Gentoo 5.3.0 p1.0, pie-0.6.5) version 5.3.0 (at /usr/bin/gcc)
* C++ Compiler:   g++ (Gentoo 5.3.0 p1.0, pie-0.6.5) version 5.3.0 (at /usr/bin/g++)

Build performance summary:
* Cores to use:   3
* Memory limit:   3952 MB
* ccache status:  not installed (consider installing)

...

Compiling 783 files for BUILD_FULL_JAVAC
(/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/bootstrap/jdk1.7.0/bin/java -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 "-Xbootclasspath/p:/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/dist/bootstrap/lib/javac.jar" -cp /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/dist/bootstrap/lib/javac.jar com.sun.tools.javac.Main -XDignore.symbol.file=true -Xlint:all,-deprecation   -implicit:none -sourcepath "/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk/langtools/src/share/classes:/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/gensrc:/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/genstubs" -d /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/classes  @/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/classes/_the.BUILD_FULL_JAVAC_batch.tmp && /bin/mv /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/classes/_the.BUILD_FULL_JAVAC_batch.tmp /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/classes/_the.BUILD_FULL_JAVAC_batch)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00002ade19005060, pid=9173, tid=47134317004544
#
# JRE version: OpenJDK Runtime Environment (8.0_77-b03) (build 1.8.0_77-b03)
# Java VM: OpenJDK 64-Bit Server VM (25.77-b03 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.0.0
# Distribution: Gentoo Base System release 2.2, package Gentoo icedtea-3.0.0
# Problematic frame:
# C  0x00002ade19005060
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk/langtools/make/hs_err_pid9173.log
Compiled method (c1)    3892 1832       2       com.sun.tools.javac.tree.TreeScanner::visitVarDef (33 bytes)
 total in heap  [0x00002ade58699510,0x00002ade586999c8] = 1208
 relocation     [0x00002ade58699638,0x00002ade58699698] = 96
 main code      [0x00002ade586996a0,0x00002ade58699800] = 352
 stub code      [0x00002ade58699800,0x00002ade586998d8] = 216
 metadata       [0x00002ade586998d8,0x00002ade586998e0] = 8
 scopes data    [0x00002ade586998e0,0x00002ade58699930] = 80
 scopes pcs     [0x00002ade58699930,0x00002ade586999b0] = 128
 dependencies   [0x00002ade586999b0,0x00002ade586999b8] = 8
 nul chk table  [0x00002ade586999b8,0x00002ade586999c8] = 16
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
/bin/sh: line 1:  9173 Aborted                 /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/bootstrap/jdk1.7.0/bin/java -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 "-Xbootclasspath/p:/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/dist/bootstrap/lib/javac.jar" -cp /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/dist/bootstrap/lib/javac.jar com.sun.tools.javac.Main -XDignore.symbol.file=true -Xlint:all,-deprecation -implicit:none -sourcepath "/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk/langtools/src/share/classes:/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/gensrc:/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/genstubs" -d /var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/classes @/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/classes/_the.BUILD_FULL_JAVAC_batch.tmp
BuildLangtools.gmk:182: recipe for target '/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/classes/_the.BUILD_FULL_JAVAC_batch' failed
gmake[2]: *** [/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk.build/langtools/classes/_the.BUILD_FULL_JAVAC_batch] Error 134
Comment 1 jospezial 2016-04-25 16:42:10 UTC
Created attachment 431982 [details]
build.log
Comment 2 jospezial 2016-04-25 16:48:24 UTC
Created attachment 431984 [details]
/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk/langtools/make/hs_err_pid9173.log
Comment 3 James Le Cuirot gentoo-dev 2016-04-25 16:49:41 UTC
(In reply to jospezial from comment #0)
> I had this first when I tried to upgrade from icedtea-3-rc to icedtea-3.0.0.

Please clarify. You mention 3.0.0 but your output shows 3.0.1. I didn't know 3.0.1 was in java-overlay yet but I figured it was coming soon. I always build icedtea-3 with icedtea-3 (except on ARM) and I haven't seen this yet.
Comment 4 jospezial 2016-04-26 11:55:30 UTC
I compiled dev-java/icedtea-3.0.1::java with dev-java/icedtea-bin-3.0.0-r1:8::gentoo successfully.
I saw some of these fatal SIGSEGV errors in the build.log but it seemed not to be fatal to emerge.

But I am not able to compile dev-java/icedtea-3.* with itself because of these random errors.
And disabling ccache does not help.

btw, emerge thinks icedtea(-bin)-3* is lower than icedtea(-bin)-7* .
So emerge icedtea always selects icedtea-7* to merge.
And with no java-vm installed, emerge icedtea:8 pulls in icedtea-bin-7* as build dependency instead of icedtea-bin-3*.
Emerge ignores the higher slot numbers in favour to the version numbers.
Comment 5 jospezial 2016-04-26 12:08:03 UTC
Created attachment 432110 [details]
icedtea-3.0.1/openjdk.build/jaxp/classes/hs_err_pid27679.log

Is this the error? Or what is this? It is in the other attached error log too.

Internal exceptions (2 events):
Event: 0.033 Thread 0x00007f6a8000a000 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x00000000eb607cd8) thrown at [/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk/ho
Event: 0.034 Thread 0x00007f6a8000a000 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x00000000eb607fc0) thrown at [/var/tmp/portage/dev-java/icedtea-3.0.1/work/icedtea-3.0.1/openjdk/hotspot/src/share/vm
Comment 6 James Le Cuirot gentoo-dev 2016-04-26 12:30:17 UTC
(In reply to jospezial from comment #4)
> I compiled dev-java/icedtea-3.0.1::java with
> dev-java/icedtea-bin-3.0.0-r1:8::gentoo successfully.
> I saw some of these fatal SIGSEGV errors in the build.log but it seemed not
> to be fatal to emerge.
> 
> But I am not able to compile dev-java/icedtea-3.* with itself because of
> these random errors.

Perhaps the initial SIGSEGV errors have resulted in a broken VM so trying to do anything with it will likely blow up. This is the main reason why you should not disable the jbootstrap flag. How about trying to rebuild using icedtea-bin? You can force it to use this by setting JAVA_PKG_FORCE_VM=icedtea-bin-8.

You may still encounter the SIGSEGV errors but at least we'll know that you'll be starting from a sane reference point. I don't know enough about Java internals to be able to comment on the errors, especially if I am unable to reproduce the issue, but hopefully gnu_andrew can shed some light.

> btw, emerge thinks icedtea(-bin)-3* is lower than icedtea(-bin)-7* .
> So emerge icedtea always selects icedtea-7* to merge.

We know about that and it's generally only a problem if you request icedtea directly, in which case, you probably know what you're doing. We're trying to correct a long-standing mistake and the issue will go away when we remove Java 7.

> And with no java-vm installed, emerge icedtea:8 pulls in icedtea-bin-7* as
> build dependency instead of icedtea-bin-3*.

I was not aware of that. I'll have to try it myself later but I thought that the order in the icedtea ebuild (it lists :8 before :7) would take precedence. Perhaps we can drop icedtea-bin:7 from the list but I'd rather not.
Comment 7 Aric Belsito 2016-04-27 23:52:22 UTC
I'm also encountering SIGSEGV's in the build of icedtea-3.0.1, but not for the same reason. There were no issues in build and the version of icedtea I have installed is fully functional.

I was able to build icedtea-3.0.0, but icedtea-3.0.1 would segfault reproducibly at the end of the bootstrap stage when running TestCryptoLevel, until I set CFLAGS="-O2" (previously, I had not set an optimization flag because the icedtea Makefiles set CFLAGS="-O3" by default, and setting anything otherwise overrides it)

Evidently "O3" is turning on an optimization feature that is breaking icedtea on my computer. I am compiling icedtea with ld.gold and GCC 5.3.0
Comment 8 Andrew John Hughes 2016-04-28 01:40:02 UTC
> 
> > And with no java-vm installed, emerge icedtea:8 pulls in icedtea-bin-7* as
> > build dependency instead of icedtea-bin-3*.
> 
> I was not aware of that. I'll have to try it myself later but I thought that
> the order in the icedtea ebuild (it lists :8 before :7) would take
> precedence. Perhaps we can drop icedtea-bin:7 from the list but I'd rather
> not.

If you drop icedtea-bin:7, then presumably you'll force people without icedtea:8 or icedtea-bin:8 to build icedtea:7, which presumably then depends on either icedtea:6, icedtea-bin:6 or gcj-jdk.

As to the problem, I've never seen this before. You need to scrap this broken JVM and go back to icedtea-bin:8 as James suggests. We can't diagnose anything from seeing a broken JVM trying to build IcedTea. I suggest:

1. emerge -vC icedtea:8
2. emerge -v icedtea-bin:8
3. emerge -v icedtea:8

Make sure bootstrapping is on for step 3 and attach the full build log here if it fails.

Did you have ccache on for the initial icedtea:8 build? I see it is being disabled in the attached build log, but it could have produced the broken initial build.
Comment 9 Andrew John Hughes 2016-04-28 01:41:43 UTC
> 
> I was able to build icedtea-3.0.0, but icedtea-3.0.1 would segfault
> reproducibly at the end of the bootstrap stage when running TestCryptoLevel,
> until I set CFLAGS="-O2" (previously, I had not set an optimization flag
> because the icedtea Makefiles set CFLAGS="-O3" by default, and setting
> anything otherwise overrides it)
> 
> Evidently "O3" is turning on an optimization feature that is breaking
> icedtea on my computer. I am compiling icedtea with ld.gold and GCC 5.3.0

I've had -O2 in my CFLAGS forever and build icedtea:6, icedtea:7 and icedtea:8 umpteen times, and also with both ld.bfd and ld.gold. I've never seen this, so it seems like something else. We will know more with a build log for the build that creates the broken VM.
Comment 10 Aric Belsito 2016-04-28 07:46:43 UTC
> I've had -O2 in my CFLAGS forever and build icedtea:6, icedtea:7 and
> icedtea:8 umpteen times, and also with both ld.bfd and ld.gold. I've never
> seen this, so it seems like something else. We will know more with a build
> log for the build that creates the broken VM.

Sorry, I think you misunderstood me.

I'm saying that with icedtea-3.0.1, if I have CFLAGS="-O3 -march=native -pipe" or CFLAGS="-march=native -pipe" (which ends up being equivalent because icedtea prepends -O3 to CFLAGS), then I get a broken JVM, but if my CFLAGS="-O2 -march=native -pipe", it works.

That said, I don't know how helpful my build log would be because at the moment I'm building icedtea on musl with patches pulled from alpinelinux.
Comment 11 James Le Cuirot gentoo-dev 2016-04-28 13:33:14 UTC
I just rebuilt 3.0.1 with CFLAGS="-O3 -pipe" and it went fine, including jbootstrap. I'll try again with gold.
Comment 12 James Le Cuirot gentoo-dev 2016-04-28 21:32:37 UTC
Well that's weird. I tried on my unstable system with gcc 5.3.0 instead and it failed... but with the error from bug #581242 even though it's not a hardened system and I have PAX_MARKINGS="none" set.
Comment 13 Aric Belsito 2016-04-28 23:14:40 UTC
@James
That's odd...

I'm running a hardened system, and I'm not getting anything similar to #581242,
but if I use ld.bfd instead of ld.gold I don't get the segmentation fault.
Comment 14 Aric Belsito 2016-04-28 23:18:50 UTC
Whoops, false alarm.
It's still broken with bfd.

By the way, I have PAX_MARKINGS="XT"
Comment 15 Aric Belsito 2016-06-12 08:43:21 UTC
@James @gnu_andrew

As I rebuilt my system with GCC 6, I found that a segmentation fault in HotSpot is triggered by the CFLAGS "-fdelete-null-pointer-checks -flifetime-dse=2" which are on by default with -O2

in GCC 5.x, -O3 activates "-fdelete-null-pointer-checks", but it is not active with -O2. I have a hunch that the segmentation fault can be avoided during build-time by adding "-fno-delete-null-pointer-checks to the CFLAGS unconditionally.
Comment 16 jospezial 2016-07-18 03:02:19 UTC
dev-java/icedtea-bin-3.0.1::gentoo causes these SIGSEGVs too.

Had fatal errors with it on compiling libreoffice and icedtea:8
Mediathekview crashes the same way sometimes.

=================================================================
                        Package Settings
=================================================================

dev-java/icedtea-bin-3.0.1::gentoo was built with the following:
USE="alsa cjk cups gtk pulseaudio -doc -examples -headless-awt -nsplugin (-selinux) -source -webstart" ABI_X86="64"
Comment 17 jospezial 2016-07-18 03:57:03 UTC
I now tried to emerge dev-java/icedtea-3.1.0_pre03:8/8::java .
To be sure I did it with icedtea-bin:7.

=================================================================
                        Package Settings
=================================================================

dev-java/icedtea-bin-7.2.6.6-r1::gentoo was built with the following:
USE="alsa cjk cups gtk pulseaudio -doc -examples -headless-awt -nsplugin -nss (-selinux) -source -webstart" ABI_X86="64"


Calculating dependencies... done!
[ebuild  N    *] dev-java/icedtea-3.1.0_pre03:8::java  USE="alsa cjk cups gtk jbootstrap libressl pulseaudio source sunec (-cacao) -debug -doc -examples -headless-awt -infinality (-jamvm) -nsplugin -pax_kernel -sctp (-selinux) -smartcard {-test} -webstart -zero" 0 KiB

It successfully went through the first part where it uses the old java-vm.
And it failed with the known fatal error when it used the new java-vm served by /var/tmp/portage/dev-java/icedtea-3.1.0_pre03/work/icedtea-3.1.0/openjdk.build-boot/images/j2sdk-image



btw,
configure says:
checking that precompiled headers work... yes
checking for ccache... /usr/bin/ccache
checking if ccache supports precompiled headers... no, disabling ccache

and

"* ccache status:  installed, but disabled (version older than 3.1.4)

Build performance tip: ccache gives a tremendous speedup for C++ recompilations.
You have ccache installed, but it is a version prior to 3.1.4. Try upgrading."

=================================================================
                        Package Settings
=================================================================

dev-util/ccache-3.2.5::gentoo was built with the following:
USE="" ABI_X86="64"
Comment 18 jospezial 2016-07-18 05:39:28 UTC
I think this line in
icedtea-3.1.0/openjdk/common/autoconf/generated-configure.sh
must be changed:

($CCACHE --version | head -n 1 | grep -E "3\.(1\.456789|2-9)")

to

($CCACHE --version | head -n 1 | grep -E "3\.(1\.[456789]|[2-9])")


Have a look at
https://gitweb.gentoo.org/proj/java.git/tree/dev-java/icedtea/files/8-ccache.patch?id=388b2669ef61d95e5730791d91b932063676275f

There are these [] braces.


Another interesting warning in build.log:

"Warning: You are using legacy autoconf cross-compilation flags.
It is recommended that you use --openjdk-target instead."
Comment 19 jospezial 2016-07-18 06:16:31 UTC
(In reply to Aric Belsito from comment #15)
> @James @gnu_andrew
> 
> As I rebuilt my system with GCC 6, I found that a segmentation fault in
> HotSpot is triggered by the CFLAGS "-fdelete-null-pointer-checks
> -flifetime-dse=2" which are on by default with -O2
> 
> in GCC 5.x, -O3 activates "-fdelete-null-pointer-checks", but it is not
> active with -O2. I have a hunch that the segmentation fault can be avoided
> during build-time by adding "-fno-delete-null-pointer-checks to the CFLAGS
> unconditionally.

How can I force it to use "-O2" ?

I have gcc-5.4.0 and CFLAGS="-march=native -O2 -pipe" in make.conf
Comment 20 jospezial 2016-08-10 09:47:05 UTC
dev-java/icedtea-3.2.0_pre02:8/8::java still fails to compile because of -O3 and gcc-5.4.0.
Please don't let it override the setting in make.conf.

system-vm is set to dev-java/icedtea-bin-7.2.6.7::gentoo


ccache is now correctly found and in use.
Comment 21 jospezial 2016-08-13 09:56:41 UTC
(In reply to Aric Belsito from comment #15)
> @James @gnu_andrew
> 
> As I rebuilt my system with GCC 6, I found that a segmentation fault in
> HotSpot is triggered by the CFLAGS "-fdelete-null-pointer-checks
> -flifetime-dse=2" which are on by default with -O2
> 
> in GCC 5.x, -O3 activates "-fdelete-null-pointer-checks", but it is not
> active with -O2. I have a hunch that the segmentation fault can be avoided
> during build-time by adding "-fno-delete-null-pointer-checks to the CFLAGS
> unconditionally.

I tested the same with

CFLAGS="-march=native -O2 -fno-delete-null-pointer-checks -pipe"

in /etc/portage/make.conf
And it failed like the other builds at the point where it starts using the new version. jbootstrap enabled
Comment 22 jospezial 2016-08-13 10:00:19 UTC
In the build.log I see it only appends that CFLAGS to the existing line and mixes it with -O3 and some other options or flags.
Comment 23 jospezial 2016-11-17 00:57:33 UTC
still the same with dev-java/icedtea-3.3.0_pre00:8/8::java and sys-devel/gcc-6.2.0-r1 

segfaults when it starts to use -O3 and my -O2 in the mix.

CCACHE_COMPRESS=1  CCACHE_SLOPPINESS=time_macros /usr/bin/ccache /usr/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/var/tmp/portage/dev-java/icedtea-3.3.0_pre00/work/icedtea-3.3.0/openjdk-boot/hotspot/src/share/vm/prims -I/var/tmp/portage/dev-java/icedtea-3.3.0_pre00/work/icedtea-3.3.0/openjdk-boot/hotspot/src/share/vm -I/var/tmp/portage/dev-java/icedtea-3.3.0_pre00/work/icedtea-3.3.0/openjdk-boot/hotspot/src/share/vm/precompiled -I/var/tmp/portage/dev-java/icedtea-3.3.0_pre00/work/icedtea-3.3.0/openjdk-boot/hotspot/src/cpu/x86/vm -I/var/tmp/portage/dev-java/icedtea-3.3.0_pre00/work/icedtea-3.3.0/openjdk-boot/hotspot/src/os_cpu/linux_x86/vm -I/var/tmp/portage/dev-java/icedtea-3.3.0_pre00/work/icedtea-3.3.0/openjdk-boot/hotspot/src/os/linux/vm -I/var/tmp/portage/dev-java/icedtea-3.3.0_pre00/work/icedtea-3.3.0/openjdk-boot/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.111-b14\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"portage\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DDERIVATIVE_ID="\"IcedTea 3.3.0pre00+r03f55ca8cc4b\"" -DDISTRIBUTION_ID="\"Gentoo Base System release 2.3, package Gentoo icedtea-3.3.0_pre00\""  -march=native -O2 -pipe -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -g -fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -g -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN -D_LP64=1  -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value   -march=native -O2 -pipe -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/ad_x86_64_expand.o.d -fpch-deps -o ad_x86_64_expand.o ../generated/adfiles/ad_x86_64_expand.cpp 
/var/tmp/portage/dev-java/icedtea-3.3.0_pre00/work/icedtea-3.3.0/openjdk-boot/hotspot/src/share/vm/precompiled/precompiled.hpp:1:0: internal compiler error: Segmentation fault
 /*
Comment 24 jospezial 2016-11-20 00:12:25 UTC
dev-java/icedtea-bin-3.2.0::gentoo still lets the compile of libreoffice fail.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f8da2005060, pid=26173, tid=0x00007f8df8ebb700
#
# JRE version: OpenJDK Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14)
# Java VM: OpenJDK 64-Bit Server VM (25.111-b14 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.2.0
# Distribution: Gentoo Base System release 2.2, package Gentoo icedtea-3.2.0
# Problematic frame:
# C  0x00007f8da2005060
Comment 25 jospezial 2018-03-14 21:59:01 UTC
Still random crashes. For example:


core:
    [mkdir] Created dir: /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build/temp/hamcrest-core-1.3.jar.manifest
    [mkdir] Created dir: /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build/temp/hamcrest-core-1.3.jar.contents
    [javac] Compiling 37 source files to /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build/temp/hamcrest-core-1.3.jar.contents
     [copy] Copying 1 file to /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build/temp/hamcrest-core-1.3.jar.contents
      [jar] Building jar: /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build/hamcrest-core-1.3.jar
     [copy] Copying 39 files to /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build/temp/hamcrest-core-1.3-sources.jar.contents
      [jar] Building jar: /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build/hamcrest-core-1.3-sources.jar
    [mkdir] Created dir: /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build/temp/hamcrest-core/generated-code
     [java] Generating org.hamcrest.CoreMatchers
     [java] #
     [java] # A fatal error has been detected by the Java Runtime Environment:
     [java] #
     [java] #  SIGSEGV (0xb) at pc=0x00007fd4ad7b4020, pid=4586, tid=0x00007fd502a85700
     [java] #
     [java] # JRE version: OpenJDK Runtime Environment (8.0_161-b12) (build 1.8.0_161-b12)
     [java] # Java VM: OpenJDK 64-Bit Server VM (25.161-b12 mixed mode linux-amd64 compressed oops)
     [java] # Derivative: IcedTea 3.7.0
     [java] # Distribution: Gentoo Base System release 2.4.1, package Gentoo icedtea-3.7.0
     [java] # Problematic frame:
     [java] # C  0x00007fd4ad7b4020
     [java] #
     [java] # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
     [java] #
     [java] # An error report file with more information is saved as:
     [java] # /var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/hs_err_pid4586.log
     [java] Compiled method (c1)     381  407       3       sun.nio.cs.StreamEncoder::implWrite (156 bytes)
     [java]  total in heap  [0x00007fd4ec9ad7d0,0x00007fd4ec9af0c0] = 6384
     [java]  relocation     [0x00007fd4ec9ad8f8,0x00007fd4ec9ada30] = 312
     [java]  main code      [0x00007fd4ec9ada40,0x00007fd4ec9ae7a0] = 3424
     [java]  stub code      [0x00007fd4ec9ae7a0,0x00007fd4ec9ae8a8] = 264
     [java]  metadata       [0x00007fd4ec9ae8a8,0x00007fd4ec9ae918] = 112
     [java]  scopes data    [0x00007fd4ec9ae918,0x00007fd4ec9aee10] = 1272
     [java]  scopes pcs     [0x00007fd4ec9aee10,0x00007fd4ec9af040] = 560
     [java]  dependencies   [0x00007fd4ec9af040,0x00007fd4ec9af048] = 8
     [java]  handler table  [0x00007fd4ec9af048,0x00007fd4ec9af090] = 72
     [java]  nul chk table  [0x00007fd4ec9af090,0x00007fd4ec9af0c0] = 48
     [java] #
     [java] # If you would like to submit a bug report, please include
     [java] # instructions on how to reproduce the bug and visit:
     [java] #   http://icedtea.classpath.org/bugzilla
     [java] #

BUILD FAILED
/var/tmp/portage/dev-java/hamcrest-core-1.3/work/hamcrest-1.3/build.xml:24: Java returned: 134

Total time: 2 seconds
 * ERROR: dev-java/hamcrest-core-1.3::gentoo failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 3845:  Called java-pkg-2_src_compile
 *   environment, line 1711:  Called eant 'core' '-f' 'build.xml' '-Dversion=1.3' '-Dgentoo.classpath=build/hamcrest-core-1.3.jar://usr/share/hamcrest-generator-1.3/lib/hamcrest-generator.jar://usr/share/qdox-1.12/lib/qdox.jar'
 *   environment, line  514:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/hamcrest-core-1.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/hamcrest-core-1.3::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-8  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.7.0"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"


=================================================================
                        Package Settings
=================================================================

dev-java/icedtea-bin-3.7.0::gentoo was built with the following:
USE="alsa cups gtk pulseaudio (-big-endian) -doc -examples -headless-awt -multilib -nsplugin (-selinux) -source -webstart" ABI_X86="(64) -32 (-x32)"