This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247067 - JVM crashes when running functional tests from IDE
Summary: JVM crashes when running functional tests from IDE
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2014-09-12 12:45 UTC by Vladimir Riha
Modified: 2015-07-10 13:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
crash logs from JDK7u67 and JDK8u20 (191.88 KB, application/zip)
2014-09-12 12:45 UTC, Vladimir Riha
Details
output from running the test file (16.06 KB, text/x-log)
2014-09-12 12:49 UTC, Vladimir Riha
Details
crash logs from JDK8, JDK7u5, JDK7u25 (109.88 KB, application/zip)
2014-09-15 08:02 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-09-12 12:45:31 UTC
Created attachment 149168 [details]
crash logs from JDK7u67 and JDK8u20

Please try following:
 - start NetBeans
 - build IDE using (with JDK7)

$ ant -f /home/vriha/repo/web-main/nbbuild build-nozip

 - open e.g. html.knockout module from NetBeans repository in NetBeans
 - open org.netbeans.modules.html.knockout.cc.CompletionTest.java
 - press Shift+F6 to run the file, this executes following

$ ant -f /home/vriha/repo/web-main/html.knockout -Dtest.type=qa-functional -Dcontinue.after.failing.tests=true -Dtest.includes=org/netbeans/modules/html/knockout/cc/CompletionTest.java test-single

=> in almost every attempt, JVM of the launched IDE instance keep crashing (I'm attaching few crash logs for reference). It basically impossible to run tests from IDE. I tried to start the test from command line and it worked fine in every attempt. The only issue is when tests are started from IDE. I also tried to run nbbuild module from IDE which starts the custom built NetBeans and haven't seen JVM crash either 


I reproduced this with JDK7u67, JDK8u20 and JDK7u65


Ubuntu 14.04
Product Version: NetBeans IDE Dev (Build 201409120001)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-09-12 12:49:21 UTC
Created attachment 149170 [details]
output from running the test file
Comment 2 Vladimir Riha 2014-09-12 14:42:04 UTC
Sadly it crashes from command line as well...
Comment 3 Vladimir Riha 2014-09-12 16:12:04 UTC
After a day of attempts, I'd say that approx. in 2/3 of attempts JVM crashes
Comment 4 Antonin Nebuzelsky 2014-09-12 17:05:47 UTC
Vlado, could you try with JDK 9? That's what JDK team is usually interested in when looking into a crash.

Another question is if it started happening with a certain update of JDK. So, could you try one of the older updates, e.g. JDK 7u25, and JDK 8?
Comment 5 Vladimir Riha 2014-09-15 08:02:02 UTC
Created attachment 149209 [details]
crash logs from JDK8, JDK7u5, JDK7u25

I've reproduced it with JDK8, JDK7u5 and JDK7u25. Sadly I cannot try it with JDK9 due to issue 247108. I'm attaching few more logs for reference. The crashlogs are unfortunately slightly different. It could be related to some changes in Ubuntu 14.04 and related libs
Comment 6 Vladimir Riha 2014-09-15 11:03:48 UTC
I've tried it maybe 10 times so far on JDK9 and without single crash. I can't say for sure if the issue does not apply to JDK9 but it definitely looks better so far. I'll keep on using JDK9 for writing tests and will add more details after longer observation.
Comment 7 Vladimir Riha 2014-10-27 07:28:35 UTC
After a lot of attempts, I can "confirm" it does not happen with JDK9
Comment 8 Antonin Nebuzelsky 2015-07-10 13:23:52 UTC
Vlado, if you can reproduce with 8u45 (or better with 8u51) and produce also core dump, reopen with the new crashlog and I'll file to JDK. Thanks.

Producing core dump on Ubuntu usually needs to have set "ulimit -c unlimited".