LTP fchown05 failed with OE_OUT_OF_THREADS error
hukoyu opened this issue · 2 comments
hukoyu commented
This looks like a regression. It doesn't fail everytime but recording this failure.
This LTP test (fchown05) is not pacthed, original test case enabled from the beginning.
----------output-start-------------
[[ SGX-LKL ]] lkl_start_init(): calling lkl_mount_virtual()
[[ SGX-LKL ]] lkl_termination_thread(): enter
[[ SGX-LKL ]] lkl_termination_thread(): Performed LKL syscall to get host task allocated (pid=36)
[[ SGX-LKL ]] lkl_start_init(): calling init_random()
[[ SGX-LKL ]] init_random(): Adding entropy to entropy pool
[ 0.192578] random: crng init done
[[ SGX-LKL ]] init_enclave_clock(): Setting enclave realtime clock
[[ SGX-LKL ]] wg0 has public key Fft6thRsLMfkUnWF+7cO3pVygjkFRiulFw4pF90C8TI=
[ 0.194755] virtio_blk virtio1: [vda] 3072000 512-byte logical blocks (1.57 GB/1.46 GiB)
[ 0.195312] virtio_blk virtio2: [vdb] 524288 512-byte logical blocks (268 MB/256 MiB)
[[ SGX-LKL ]] lkl_mount_disk(): lkl_mount_disk(dev="/dev/vda", mnt="/mnt/vda", ro=0)
[ 0.196983] EXT4-fs (vda): mounted filesystem with ordered data mode. Opts:
[[ SGX-LKL ]] lkl_mount_disk(): lkl_mount_disk(dev="/dev/vdb", mnt="/data", ro=0)
[ 0.204713] EXT4-fs (vdb): mounted filesystem with ordered data mode. Opts:
[[ SGX-LKL ]] lkl_mount_disks(): Set working directory: /
[[ SGX-LKL ]] libc_start_main_stage2(): Calling app main: /ltp/testcases/kernel/syscalls/fchown/fchown05
fchown05 1 [1;32mTPASS[0m : fchown() succeeds to Change Owner/Group ids of testfile
fchown05 2 [1;32mTPASS[0m : fchown() succeeds to Change Owner id only of testfile
fchown05 3 [1;32mTPASS[0m : fchown() succeeds to Change Owner id only of testfile
fchown05 4 [1;32mTPASS[0m : fchown() succeeds to Change Group id only of testfile
fchown05 5 [1;32mTPASS[0m : fchown() succeeds to Change Group id only of testfile
[[ SGX-LKL ]] lkl_terminate(): terminating LKL (exit_status=0)
[[ SGX-LKL ]] lkl_termination_thread(): termination thread unblocked
[[ SGX-LKL ]] lkl_termination_thread(): calling lkl_sys_chdir(/)
[[ SGX-LKL ]] display_mount_table(): ========= /proc/mounts ===========
/dev/vda / ext4 rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime,mode=777 0 0
tmpfs /mnt tmpfs rw,relatime,mode=777 0 0
none /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,relatime,mode=700 0 0
proc /proc proc rw,relatime 0 0
/dev/vdb /data ext4 rw,relatime 0 0
[[ SGX-LKL ]] display_mount_table(): ==================================
[[ SGX-LKL ]] lkl_termination_thread(): calling lkl_umount_timeout("", 0, 2000)
[[ SGX-LKL ]] WARN: Could not unmount disk 1, No such file or directory
[[ SGX-LKL ]] WARN: Could not remove mount point
[[ SGX-LKL ]] lkl_termination_thread(): calling lkl_umount_timeout("/", MNT_DETACH, 2000)
[ SGX-LKL ] Dumping thread stack traces from enclave (and aborting)...
[ SGX-LKL ] Dumping thread stack traces from enclave (and aborting)...
2020-08-11T15:43:15.000000Z [(H)ERROR] tid(0x7fb8b2022700) | :OE_OUT_OF_THREADS [/agent/_work/1/s/openenclave/host/sgx/calls.c:oe_ecall:616]
2020-08-11T15:43:15.000000Z [(H)ERROR] tid(0x7fb8b2022700) | :OE_OUT_OF_THREADS [/agent/_work/1/s/openenclave/host/calls.c:oe_call_enclave_function_by_table_id:90]
[ SGX-LKL ] FAIL: Aborting after stack trace dump
[[ SGX-LKL ]] sgxlkl_debug_dump_stack_traces(): Dumping all stack traces from threads...
[[ SGX-LKL ]] =============================================================
[[ SGX-LKL ]] Stack traces for all lthreads:
[[ SGX-LKL ]] -------------------------------------------------------------
[[ SGX-LKL ]] 1: tid=1 (7fa000b07c20) [fchown05]
TIMED OUT after 60 secs. TEST_FAILED
Here is the log file:
Standard_Console_Output fchown05.log
hukoyu commented