Skip to content
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

[Test] java hello world test failing with 1 thread in sgx-lkl nightly build #795

Open
hukoyu opened this issue Aug 15, 2020 · 2 comments
Open
Labels
p2 Important but non-urgent priority

Comments

@hukoyu
Copy link
Collaborator

hukoyu commented Aug 15, 2020

If this is not a supported scenario we can disable this test with ETHREADS=1 in nightly pipeline

Java hello-world test is failing in sgx-lkl (nightly) pipeline with ETHREADS=1
https://dev.azure.com/sgx-lkl/sgx-lkl/_build/results?buildId=1888&view=results

Here is the full log:
Standard_Console_Output - java-helloworld-1thread.log

[[  SGX-LKL ]] init_enclave_clock(): Setting enclave realtime clock
[[  SGX-LKL ]] wg0 has public key oJVhDt4cmSDLidIzdvXL1sxHSE8KsygiRx5/w6XOo04=
[    0.103207] virtio_blk virtio1: [vda] 819200 512-byte logical blocks (419 MB/400 MiB)
[[  SGX-LKL ]] lkl_mount_disk(): lkl_mount_disk(dev="/dev/vda", mnt="/mnt/vda", ro=0)
[    0.104389] EXT4-fs (vda): mounted filesystem without journal. Opts: 
[[  SGX-LKL ]] lkl_mount_disks(): Set working directory: /
OpenJDK 64-Bit Server VM warning: Can't detect primordial thread stack location - find_vma failed
Hello SGX world from Java!
[   SGX-LKL  ] Dumping thread stack traces from enclave (and aborting)...
Makefile:25: recipe for target 'run-hw' failed
[[  SGX-LKL ]] sgxlkl_debug_dump_stack_traces(): Dumping all stack traces from threads...
make: *** [run-hw] Terminated
[[  SGX-LKL ]] =============================================================
[[  SGX-LKL ]] Stack traces for all lthreads:
[[  SGX-LKL ]] -------------------------------------------------------------
[[  SGX-LKL ]] 1: tid=1 (7fe000b09160) [sgx-lkl-init] (READY) 
make run-hw: TIMED OUT after 300 secs
Test run completed with EXIT CODE 124
[[  SGX-LKL ]]     #0: 7fe0005b4d98 in __do_futex_sleep(...)
[[  SGX-LKL ]]     #1: 7fe0005b4e28 in futex_wait(...)
[[  SGX-LKL ]]     #2: 7fe0005b4fa8 in enclave_futex_timedwait(...)
[[  SGX-LKL ]]     #3: 7fe0005b4ff2 in enclave_futex_wait(...)
[[  SGX-LKL ]]     #4: 7fe0005d67f4 in sem_down(...)
[[  SGX-LKL ]]     #5: 7fe00008a8f3 in __switch_to(...)
[[  SGX-LKL ]]     #6: 7fe000414b5d in __schedule(...)
[[  SGX-LKL ]]     #7: 7fe000414d82 in schedule(...)
[[  SGX-LKL ]]     #8: 7fe0000d62d1 in futex_wait_queue_me(...)
[[  SGX-LKL ]]     #9: 7fe0000d7c79 in futex_wait(...)
[[  SGX-LKL ]]     #10: 7fe0000d8feb in do_futex(...)
[[  SGX-LKL ]]     #11: 7fe0000d97b5 in sys_futex(...)
[[  SGX-LKL ]]     #12: 7fe00008b6cf in lkl_syscall(...)
[[  SGX-LKL ]]     #13: 7fe00059749b in __filter_syscall4(...)
[[  SGX-LKL ]]     #14: 7fe0005975a5 in __timedwait_cp(...)
[[  SGX-LKL ]]     #15: 7fe00059aca0 in __pthread_timedjoin_np(...)
[[  SGX-LKL ]]     #16: 7fe00059ad59 in __pthread_join(...)
[[  SGX-LKL ]]     #17: 7fe03dcd6eee in <unknown>(...)
[[  SGX-LKL ]] -------------------------------------------------------------
[[  SGX-LKL ]] 2: tid=2 (7fe000b09330) [vio-0] (SLEEPING) 
[[  SGX-LKL ]]     #0: 7fe0005bfd5b in lthread_yield_and_sleep(...)
[[  SGX-LKL ]]     #1: 7fe0005ae4f4 in vio_wait_for_host_event(...)
[[  SGX-LKL ]]     #2: 7fe0005ae6c4 in vio_enclave_process_host_event(...)
[[  SGX-LKL ]]     #3: 7fe0005bebbe in _exec(...)
[[  SGX-LKL ]] -------------------------------------------------------------
[[  SGX-LKL ]] 3: tid=3 (7fe000b094e0) [vio-1] (SLEEPING) 
[[  SGX-LKL ]]     #0: 7fe0005bfd5b in lthread_yield_and_sleep(...)
[[  SGX-LKL ]]     #1: 7fe0005ae4f4 in vio_wait_for_host_event(...)
[[  SGX-LKL ]]     #2: 7fe0005ae6c4 in vio_enclave_process_host_event(...)
[[  SGX-LKL ]]     #3: 7fe0005bebbe in _exec(...)
[[  SGX-LKL ]] -------------------------------------------------------------
[[  SGX-LKL ]] 4: tid=4 (7fe000b09690) [vio-2] (SLEEPING) 
@hukoyu hukoyu added the needs-triage Bug does not yet have a priority assigned label Aug 15, 2020
@hukoyu hukoyu changed the title java hello world test failing with 1 thread in nightly0build java hello world test failing with 1 thread in sgx-lkl nightly build Aug 15, 2020
@hukoyu hukoyu changed the title java hello world test failing with 1 thread in sgx-lkl nightly build [Test] java hello world test failing with 1 thread in sgx-lkl nightly build Aug 15, 2020
@bodzhang bodzhang added this to Needs triage in Issue triage via automation Aug 17, 2020
@paulcallen
Copy link
Member

should create a p2 when this is disabled to reenable

@bodzhang
Copy link
Contributor

#802 to re-enable ethreads=1 tests recommended as p2, shouldn't this issue also be P2?

@bodzhang bodzhang moved this from Proposed p1 to Needs discussion in Issue triage Aug 21, 2020
@hukoyu hukoyu added the p2 Important but non-urgent priority label Aug 21, 2020
@bodzhang bodzhang removed the needs-triage Bug does not yet have a priority assigned label Aug 25, 2020
@bodzhang bodzhang removed this from Needs discussion in Issue triage Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 Important but non-urgent priority
Projects
None yet
Development

No branches or pull requests

3 participants