JDK-8073666 : JVM crash on Linux Mint
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7u67,8u20
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86_64
  • Submitted: 2015-02-23
  • Updated: 2015-03-11
  • Resolved: 2015-03-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
JVM crashes on NetBeans start on Linux Mint 17 in various native libs - libfontconfig.so, libglib-2.0.so, libgobject-2.0.so, libXinerama.so.

According to the reporter - first it appeared to be related to 8u40, but then also reproduced with an older version 7u67.

Attaching several crash logs. Please evaluate.

Related NetBeans bug:
https://netbeans.org/bugzilla/show_bug.cgi?id=250633
Comments
BTW, here is the back trace made in gdb.
11-03-2015

I cannot reproduce it with latest Linux Mint 17.1, kernel 3.13.0-37, with Cinnamon 2.4.6 but I am able to reproduce it on Linux Mint 17 64b (kernel 3.13.0-24-generic) with Cinnamon 2.2.16. Crash happens during install, and it noticeable only in logs. Netbeans starts without any problems for me. The short reproducer is: /home/user/netbeans-8.0.2/bin/netbeans -J-Dnetbeans.close=true --nosplash -J-Dorg.netbeans.core.WindowSystem.show=false -J-Dplugin.manager.install.global=true --userdir /tmp/tmpnb --modules --install ".*junit.*" --update-all, in directory: /home/user/netbeans-8.0.2 It starts to crash from 8u20 b01 Related part of the log. [2015-03-02 19:02:52.550]: NameResolver - to parse /home/user/netbeans-8.0.2 [2015-03-02 19:02:52.557]: nbLocation = /home/user/netbeans-8.0.2 [2015-03-02 19:02:52.559]: ... empty URL of Extra UC. [2015-03-02 19:02:52.559]: .... install JUnit [2015-03-02 19:02:52.560]: ... empty URL of Extra UC. [2015-03-02 19:02:52.560]: .... check for updates [2015-03-02 19:02:52.560]: Run [/home/user/netbeans-8.0.2/bin/netbeans, , -J-Dnetbeans.close=true, --nosplash, -J-Dorg.netbeans.core.WindowSystem.show=false, -J-Dplugin.manager.install.global=true, --userdir, /tmp/tmpnb, --modules, --install, ".*junit.*", --update-all] [2015-03-02 19:02:52.738]: executing command: /home/user/netbeans-8.0.2/bin/netbeans -J-Dnetbeans.close=true --nosplash -J-Dorg.netbeans.core.WindowSystem.show=false -J-Dplugin.manager.install.global=true --userdir /tmp/tmpnb --modules --install ".*junit.*" --update-all, in directory: /home/user/netbeans-8.0.2
02-03-2015

27.02: PENDING RE-EVALUATION TO ANALYZE THE LOG
27-02-2015

Required information provided hence reopening.
27-02-2015

I tried running both SwingSet2 and Font2DTest examples using JDK 8 Update 20 with GTK L&F and it didn't crash at all. :| I am at least attaching the log file from the crash of NetBeans. Hopefully you will find out something interesting from that file.
27-02-2015

> SwingSet2 worked fine (0 crashes out of 20 attempts). I was launching it this way: Did you try to switch to the GTK L&F ? I believe NB uses the platform L&F and if its a problem loading all the GTK libs you may not tickle it unless you do so. Even then you *may* need an app that sets GTK before it starts up, like this :- java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar SwingSet2.jar Also try java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar Font2DTest.jar since SS2 may do something different than other apps.
26-02-2015

please provide stack trace and re-open
26-02-2015

SwingSet2 worked fine (0 crashes out of 20 attempts). I was launching it this way: ~/Software/Java/jdk1.8.0_20/bin/java -jar SwingSet2.jar and ~/Software/Java/jdk1.8.0_20/bin/java -splash:resources/images/splash.png -jar SwingSet2.jar
25-02-2015

PS .. Linux Mint is not a supported distro.
25-02-2015

The stack traces are missing from the dumps as hotspot was apparently unable to retrieve them. The map of loaded JDK libraries does not include "libt2k" or "libdcpr" which I find a bit odd. Either this is very early in the JDK start-up or somehow the Oracle JDK thinks its "OpenJDK" and doesn't try to load them. Do standard Java demos (like SwingSet2) have the same problem ?
25-02-2015

I don't have Ubuntu 14.04 at my disposal but from what I know from my QE colleagues, it's not reproducible on that system after it has been patched via some update. Before the patch JVM was crashing from time to time too.
25-02-2015

Jiri , Thanks. Does it mean that issue reproducible on Linux Mint 17 only, but doesn't affect Ubuntu 14.04 ?
25-02-2015

I couldn't reproduce the crash on 8u11 (0 of 5 attempts) but it is reproducible on 8u20 (2 of 2 attempts). Does this information help?
25-02-2015

Jiri, does it affect 8u20 and 8 GA as well? btw, 7u67 equals 8u11, so at least reproducible from 8u11, right?
25-02-2015

I can reproduce this in 99% on my Linux Mint 17 64b (kernel 3.13.0-24-generic) with Cinnamon 2.2.16 when installing NetBeans 8.0.2 & JDK 8 Update 40 bundle (both 32b and 64b). "uname -a" says: Linux cesilko-nb 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Steps to reproduce: ============== 1. Launch jdk-8u40-nb-8_0_2-linux-i586.sh installer on Linux Mint 17 with Cinnamon. 2. Push "Next >" button on the 1st page of the installation wizard. 3. Click "I accept the terms..." option to install JUnit and push "Next >" button. 4. Don't change default installation location for JDK and push "Next >" button. 5. Don't change default installation location for NetBeans, selected JDK and push "Next >" button. 6. Let "Check For Updates" option checked and push "Install" button. 7. Once the installation finishes, close the wizard. 8. Go to your $HOME/.nbi/log directory and open the latest *.log file. 9. Press Ctrl+F keystroke, type "crash" and push "Find" button. If the JVM crashed you will get to the output of this fatal error.
24-02-2015

Alexander, Does it affect ubuntu 14.04 ?
24-02-2015

Downgraded since Linux Mint is not officially supported platform for JDK 8
24-02-2015

> then also reproduced with an older version 7u67. tonda, does it affect 8u20 and 8 GA as well? btw, 7u67 equals 8u11, so at least reproducible from 8u11, right? please reopen with your info
24-02-2015

I've run installation wizard of Netbeans several times and had no crash on Ubuntu 14.04. What desktop environment is used on user's machine? AFAIK Linux Mint is shipped with several desktop environments like KDE, XFCE, Cinnamon, Mate, while most of Ubuntu users are using Unity. When it crash? (right after installation wizard start, or after some specific window). If possible, please provide some simple reproducer.
24-02-2015