-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tests] Java Runtime Environment crashes with fatal error with network stream #245
Comments
Here is the sample code in the https://github.com/lsds/sgx-lkl/blob/496384f4d6025ce94d13f3fa7825f0c54bc4a360/tests/languages/java/network/app/MainApp.java |
Here is the full log of run-hw for this sample java app |
@hukoyu, could you do the following:
|
@prp the issue reproes with SGXLKL_ETHREADS=1. For run-hw we get same error I reported initially. For run-sw error looks a bit different:
|
@prp with default SGXLKL_ETHREADS value (4 in my VM) it fails for run-hw with the initial error I reported. But it passes for run-sw. Here is the log for run-sw: |
@prp here are logs with SGXLKL_TRACE_LKL_SYSCALL=1 SGXLKL_TRACE_SIGNAL=1 |
@prp here is the call stack from debuging:
|
Disabling java-network scenario test for now due to #245
@prp I skipped the SIGILL erros and got SIGSEV but call stack is still same
|
This suggests that the problem is in the JVM code. The next step would be to run this with a debug build of the HotSpot JVM that includes symbols. Given that it only fails in HW mode, it must be caused by a new recent regression that we have introduced. |
basic-network-(debug)-(run-hw)-(8-ethreads) also fails.
|
I ran into this today locally. Here's what I have for information. Much of it is supporting the previous information: Happens for me with
The segfault is caused by the network call in the Java program. I can recreate the error with this smaller program: import java.io.*;
import java.net.*;
public class MainApp
{
public static void main(String[] args) throws MalformedURLException {
URL url = new URL("https://www.google.com/");
try {
url.openStream();
} catch (Exception e) {
System.out.println("x");
}
}
} I've tested with 1 to 8 ETHREADS. Always the same result. sgx-lkl commit: d3e0b9a |
Closing as a duplicate of #680. |
Added new java scenario test with this PR #244 and caught this exception. The test just opens a network stream to https://www.microsoft.com address and reads from the stream line by line.
Please look at the PR for sample code used and Makefile.
Exception:
The text was updated successfully, but these errors were encountered: