root@adminroot:/home/adminroot/gramine/gramine-1.3.1/tools/gsc# docker run --device=/dev/sgx_enclave -v /var/run/aesmd/aesm.socket:/var/run/aesmd/aesm.socket gsc-a1db02aeb076
+ set -e
++ find /gramine/meson_build_output/lib -type d -path '*/site-packages'
+ export PYTHONPATH=:/gramine/meson_build_output/lib/python3.8/site-packages
+ PYTHONPATH=:/gramine/meson_build_output/lib/python3.8/site-packages
++ find /gramine/meson_build_output/lib -type d -path '*/pkgconfig'
+ export PKG_CONFIG_PATH=:/gramine/meson_build_output/lib/x86_64-linux-gnu/pkgconfig
+ PKG_CONFIG_PATH=:/gramine/meson_build_output/lib/x86_64-linux-gnu/pkgconfig
+ '[' -z '' ']'
+ gramine-sgx-get-token --quiet --sig /gramine/app_files/entrypoint.sig --output /gramine/app_files/entrypoint.token
+ gramine-sgx /gramine/app_files/entrypoint ''
Gramine is starting. Parsing TOML manifest file, this may take some time...
debug: Gramine parsed TOML manifest file successfully
debug: Token file: /gramine/app_files/entrypoint.token
debug: Read dummy DCAP token
debug: Enclave created:
debug: base: 0x0000000000000000
debug: size: 0x0000001000000000
debug: misc_select: 0x00000000
debug: attr.flags: 0x0000000000000007
debug: attr.xfrm: 0x00000000000000e7
debug: ssa_frame_size: 4
debug: isv_prod_id: 0x00000000
debug: isv_svn: 0x00000000
debug: Adding pages to SGX enclave, this may take some time...
debug: Adding pages to enclave: 0xffee6d000-0x1000000000 [REG:R--] (manifest) measured
debug: Adding pages to enclave: 0xffea6d000-0xffee6d000 [REG:RW-] (ssa) measured
debug: Adding pages to enclave: 0xffe9ed000-0xffea6d000 [TCS:---] (tcs) measured
...
...
...
debug: Adding pages to enclave: 0xffbd41000-0xffbd94000 [REG:R-X] (code) measured
debug: Adding pages to enclave: 0xffbd95000-0xffbd9a000 [REG:RW-] (data) measured
debug: Adding pages to enclave: 0xffbd9a000-0xffc16d000 [REG:RW-] (bss) measured
debug: Adding pages to enclave: 0x10000-0xffbd41000 [REG:RWX] (free)
debug: Added all pages to SGX enclave
debug: Enclave initializing:
debug: enclave id: 0x0000000ffffff000
debug: mr_enclave: a8b3585a0216edc376f18a5c90deef78d39cd59b467c13836d5e78e8b33cea48
Detected a huge manifest, preallocating 128MB of internal memory.
-----------------------------------------------------------------------------------------------------------------------
Gramine detected the following insecure configurations:
- sgx.debug = true (this is a debug enclave)
- loader.log_level = warning|debug|trace|all (verbose log level, may leak information)
- loader.insecure__use_cmdline_argv = true (forwarding command-line args from untrusted host to the app)
Gramine will continue application execution, but this configuration must not be used in production!
-----------------------------------------------------------------------------------------------------------------------
warning: PalVirtualMemoryProtect is unimplemented in Linux-SGX PAL
debug: Gramine was built from commit: e18bc05b17fd704b259cb0401f928dc4ec5199a6
debug: Host: Linux-SGX
debug: LibOS xsave_enabled 1, xsave_size 0xa80(2688), xsave_features 0xe7
debug: Initial VMA region 0xffa748000-0xffa824000 (LibOS) bookkeeped
debug: Initial VMA region 0xffee6d000-0x1000000000 (manifest) bookkeeped
debug: ASLR top address adjusted to 0x5a9b4b000
debug: host is Linux-SGX but remote attestation type is 'none', adding only /dev/attestation/attestation_type file and skipping others (report, etc.)
debug: LibOS loaded at 0xffa748000, ready to initialize
debug: mounting "file:/" (chroot) under /
debug: mounting "proc" (pseudo) under /proc
debug: mounting "dev" (pseudo) under /dev
debug: mounting "dev:tty" (chroot) under /dev/tty
debug: mounting "sys" (pseudo) under /sys
debug: Creating pipe: pipe.srv:bca73b70daa9f328a9165993312477b23c86694fac1290e1894c96e19227d39b
[P1:T1:] debug: File /gramine/app_files/docker-entrypoint.sh not recognized as ELF, looking for shebang
[P1:T1:] debug: Assembling 4 execve arguments (total size is 59 bytes)
[P1:T1:] debug: Interpreter to be used for execve: /usr/bin/env
[P1:T1:env] debug: Creating pipe: pipe.srv:e4d7fef97b6120e004348672cd30c4e248f8347898177a44c25aadf8211b53ba
[P1:T1:env] debug: Allocated stack at 0x5a9b0b000 (size = 0x40000)
[P1:T1:env] debug: loading "file://usr/bin/env"
[P1:T1:env] debug: append_r_debug: adding file://usr/bin/env at 0x5a9afd000
[P1:T1:env] debug: find_interp: searching for interpreter: /gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/ld-linux-x86-64.so.2
[P1:T1:env] debug: loading "file://gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/ld-linux-x86-64.so.2"
[P1:T1:env] debug: append_r_debug: adding file://gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/ld-linux-x86-64.so.2 at 0x5a9ac4000
[P1:T1:env] debug: Creating pipe: pipe.srv:1
[P1:T1:env] debug: Creating pipe: pipe.srv:98e8434545a9894509d434573edf65fe4fe4c7314101cc68621305a325f446fc
[P1:T1:env] debug: LibOS initialized
[P1:libos] debug: IPC worker started
[P1:T1:env] debug: append_r_debug: adding file:[vdso_libos] at 0x5a9ac3000
[P1:T1:env] trace: ---- brk(0) = 0x5aa746000
[P1:T1:env] warning: Not supported flag (0x3001) passed to arch_prctl
[P1:T1:env] trace: ---- arch_prctl(12289, 0x5a9b4ab20) = -38
[P1:T1:env] trace: ---- mmap(0, 0x2000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0x0) ...
[P1:T1:env] trace: ---- return from mmap(...) = 0x5a9ac1000
[P1:T1:env] trace: ---- access("/etc/ld.so.preload", F_OK|X_OK) = -2
[P1:T1:env] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/glibc-hwcaps/x86-64-v4/libc.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:env] trace: ---- newfstatat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/glibc-hwcaps/x86-64-v4", 0x5a9b49d40, 0) = -2
[P1:T1:env] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/glibc-hwcaps/x86-64-v3/libc.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:env] trace: ---- newfstatat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/glibc-hwcaps/x86-64-v3", 0x5a9b49d40, 0) = -2
[P1:T1:env] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/glibc-hwcaps/x86-64-v2/libc.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:env] trace: ---- newfstatat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/glibc-hwcaps/x86-64-v2", 0x5a9b49d40, 0) = -2
[P1:T1:env] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/tls/haswell/avx512_1/x86_64/libc.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:env] trace: ---- newfstatat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/tls/haswell/avx512_1/x86_64", 0x5a9b49d40, 0) = -2
[P1:T1:env] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/tls/haswell/avx512_1/libc.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:env] trace: ---- newfstatat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/tls/haswell/avx512_1", 0x5a9b49d40, 0) = -2
[P1:T1:env] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/tls/haswell/x86_64/libc.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:env] trace: ---- newfstatat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/tls/haswell/x86_64", 0x5a9b49d40, 0) = -2
...
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/tls/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/tls", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/haswell/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/haswell/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/haswell/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/haswell/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/haswell/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/haswell/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/haswell/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/haswell", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libfakeroot", 0x5a98c2d50, 0) = 0x0
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/glibc-hwcaps/x86-64-v4/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/glibc-hwcaps/x86-64-v4", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/glibc-hwcaps/x86-64-v3/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/glibc-hwcaps/x86-64-v3", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/glibc-hwcaps/x86-64-v2/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/glibc-hwcaps/x86-64-v2", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/tls/haswell/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/tls/haswell/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/tls/haswell/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/tls/haswell/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/tls/haswell/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/tls/haswell/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/tls/haswell/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/tls/haswell", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/tls/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/tls/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/tls/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/tls/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/tls/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/tls/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/tls/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/tls", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/haswell/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/haswell/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/haswell/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/haswell/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/haswell/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/haswell/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/haswell/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/haswell", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/usr/local/lib/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/usr/local/lib", 0x5a98c2d50, 0) = 0x0
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v4/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v4", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/haswell/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/haswell/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/haswell/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/haswell/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/haswell/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/haswell/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/haswell/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/haswell", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/avx512_1/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/avx512_1/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/avx512_1/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/avx512_1", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/x86_64/libtinfo.so.6", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/x86_64", 0x5a98c2d50, 0) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libtinfo.so.6", O_RDONLY|0x80000, 0000) = 0x3
[P1:T1:bash] trace: ---- read(3, 0x5a98c2eb8, 0x340) ...
[P1:T1:bash] trace: ---- return from read(...) = 0x340
[P1:T1:bash] trace: ---- newfstatat(3, "", 0x5a98c2d50, 4096) = 0x0
[P1:T1:bash] trace: ---- mmap(0, 0x2e9a0, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0x0) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99a7000
[P1:T1:bash] trace: ---- mmap(0x5a99b5000, 0xe000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99b5000
[P1:T1:bash] trace: ---- mmap(0x5a99c3000, 0xe000, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99c3000
[P1:T1:bash] trace: ---- mmap(0x5a99d1000, 0x5000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99d1000
[P1:T1:bash] trace: ---- close(3) = 0x0
[P1:T1:bash] debug: glibc register library /lib/x86_64-linux-gnu/libtinfo.so.6 loaded at 0x5a99a7000
[P1:T1:bash] debug: append_r_debug: adding file://lib/x86_64-linux-gnu/libtinfo.so.6 at 0x5a99a7000
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/libdl.so.2", O_RDONLY|0x80000, 0000) = 0x3
[P1:T1:bash] trace: ---- read(3, 0x5a98c2e98, 0x340) ...
[P1:T1:bash] trace: ---- return from read(...) = 0x340
[P1:T1:bash] trace: ---- newfstatat(3, "", 0x5a98c2d30, 4096) = 0x0
[P1:T1:bash] trace: ---- mmap(0, 0x4028, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0x0) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99a2000
[P1:T1:bash] trace: ---- mmap(0x5a99a3000, 0x1000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99a3000
[P1:T1:bash] trace: ---- mmap(0x5a99a4000, 0x1000, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99a4000
[P1:T1:bash] trace: ---- mmap(0x5a99a5000, 0x2000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99a5000
[P1:T1:bash] trace: ---- close(3) = 0x0
[P1:T1:bash] debug: glibc register library /gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/libdl.so.2 loaded at 0x5a99a2000
[P1:T1:bash] debug: append_r_debug: adding file://gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/libdl.so.2 at 0x5a99a2000
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/libc.so.6", O_RDONLY|0x80000, 0000) = 0x3
[P1:T1:bash] trace: ---- read(3, 0x5a98c2e78, 0x340) ...
[P1:T1:bash] trace: ---- return from read(...) = 0x340
[P1:T1:bash] trace: ---- pread64(3, 0x5a98c2890, 0x310, 0x40) ...
[P1:T1:bash] trace: ---- return from pread64(...) = 0x310
[P1:T1:bash] trace: ---- pread64(3, 0x5a98c2850, 0x30, 0x350) ...
[P1:T1:bash] trace: ---- return from pread64(...) = 0x30
[P1:T1:bash] trace: ---- pread64(3, 0x5a98c2800, 0x44, 0x380) ...
[P1:T1:bash] trace: ---- return from pread64(...) = 0x44
[P1:T1:bash] trace: ---- newfstatat(3, "", 0x5a98c2d10, 4096) = 0x0
[P1:T1:bash] trace: ---- pread64(3, 0x5a98c2960, 0x310, 0x40) ...
[P1:T1:bash] trace: ---- return from pread64(...) = 0x310
[P1:T1:bash] trace: ---- mmap(0, 0x1f9a50, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0x0) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a9689000
[P1:T1:bash] trace: ---- mprotect(0x5a96b5000, 0x1c0000, PROT_NONE) ...
[P1:T1:bash] trace: ---- return from mprotect(...) = 0x0
[P1:T1:bash] trace: ---- mmap(0x5a96b5000, 0x16a000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2c000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a96b5000
[P1:T1:bash] trace: ---- mmap(0x5a981f000, 0x55000, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x196000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a981f000
[P1:T1:bash] trace: ---- mmap(0x5a9875000, 0x6000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1eb000) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a9875000
[P1:T1:bash] trace: ---- mmap(0x5a987b000, 0x7a50, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1, 0x0) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a987b000
[P1:T1:bash] trace: ---- close(3) = 0x0
[P1:T1:bash] debug: glibc register library /gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/libc.so.6 loaded at 0x5a9689000
[P1:T1:bash] debug: append_r_debug: adding file://gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/libc.so.6 at 0x5a9689000
[P1:T1:bash] trace: ---- mmap(0, 0x2000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0x0) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a99a0000
[P1:T1:bash] trace: ---- arch_prctl(4098, 0x5a99a1400) = 0x0
[P1:T1:bash] trace: ---- set_tid_address(0x5a99a16d0) = 0x1
[P1:T1:bash] trace: ---- set_robust_list(0x5a99a16e0, 0x18) = 0x0
[P1:T1:bash] warning: Unsupported system call rseq
[P1:T1:bash] trace: ---- mprotect(0x5a9875000, 0x3000, PROT_READ) ...
[P1:T1:bash] trace: ---- return from mprotect(...) = 0x0
[P1:T1:bash] trace: ---- mprotect(0x5a99a5000, 0x1000, PROT_READ) ...
[P1:T1:bash] trace: ---- return from mprotect(...) = 0x0
[P1:T1:bash] trace: ---- mprotect(0x5a99d1000, 0x4000, PROT_READ) ...
[P1:T1:bash] trace: ---- return from mprotect(...) = 0x0
[P1:T1:bash] trace: ---- mprotect(0x5a9b34000, 0x3000, PROT_READ) ...
[P1:T1:bash] trace: ---- return from mprotect(...) = 0x0
[P1:T1:bash] trace: ---- mmap(0, 0x2000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0x0) ...
[P1:T1:bash] trace: ---- return from mmap(...) = 0x5a999e000
[P1:T1:bash] trace: ---- mprotect(0x5a9a0e000, 0x2000, PROT_READ) ...
[P1:T1:bash] trace: ---- return from mprotect(...) = 0x0
[P1:T1:bash] trace: ---- prlimit64(0, 3, 0, 0x5a98c38b0) = 0x0
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/dev/tty", O_RDWR|0x800, 0000) = -22
[P1:T1:bash] trace: ---- ioctl(0, TCGETS, 0x5a98c39c0) ...
[P1:T1:bash] trace: ---- return from ioctl(...) = -38
[P1:T1:bash] trace: ---- getrandom(0x5a9880198, 0x8, GRND_NONBLOCK) = 0x8
[P1:T1:bash] trace: ---- brk(0) = 0x5a9fea000
[P1:T1:bash] trace: ---- brk(0x5aa00b000) = 0x5aa00b000
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/locale/locale-archive", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/share/locale/locale.alias", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/locale/C.UTF-8/LC_IDENTIFICATION", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/locale/C.utf8/LC_IDENTIFICATION", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/gramine/meson_build_output/lib/x86_64-linux-gnu/gramine/runtime/glibc/locale/C/LC_IDENTIFICATION", O_RDONLY|0x80000, 0000) = -2
[P1:T1:bash] trace: ---- getuid() = 0x0
[P1:T1:bash] trace: ---- getgid() = 0x0
[P1:T1:bash] trace: ---- geteuid() = 0x0
[P1:T1:bash] trace: ---- getegid() = 0x0
[P1:T1:bash] trace: ---- rt_sigprocmask(BLOCK, NULL, [], 0x8) = 0x0
[P1:T1:bash] trace: ---- gettimeofday(0x5a9b3ff10, 0) = 0x0
[P1:T1:bash] trace: ---- ioctl(-1, TIOCGPGRP, 0x5a98c3a3c) ...
[P1:T1:bash] trace: ---- return from ioctl(...) = -9
[P1:T1:bash] trace: ---- sysinfo(0x5a98c37b0) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGCHLD], 0x5a98c3670, 0x5a98c3710, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGCHLD], 0x5a98c3670, 0x5a98c3710, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGINT], 0x5a98c3670, 0x5a98c3710, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGINT], 0x5a98c3670, 0x5a98c3710, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGQUIT], 0x5a98c3670, 0x5a98c3710, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGQUIT], 0x5a98c3670, 0x5a98c3710, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGTSTP], 0x5a98c3640, 0x5a98c36e0, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGTSTP], 0x5a98c3640, 0x5a98c36e0, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGTTIN], 0x5a98c3640, 0x5a98c36e0, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGTTIN], 0x5a98c3640, 0x5a98c36e0, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGTTOU], 0x5a98c3640, 0x5a98c36e0, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGTTOU], 0x5a98c3640, 0x5a98c36e0, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigprocmask(BLOCK, NULL, [], 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGQUIT], 0x5a98c3670, 0x5a98c3710, 0x8) = 0x0
[P1:T1:bash] trace: ---- uname(0x5a98c3770) = 0x0
[P1:T1:bash] trace: ---- getcwd(0x5a9fef1a0, 0x1000) = 0x2
[P1:T1:bash] trace: ---- getpid() = 0x1
[P1:T1:bash] trace: ---- getppid() = 0x0
[P1:T1:bash] trace: ---- stat(".", 0x5a98c37a0) = 0x0
[P1:T1:bash] trace: ---- stat("/gramine/meson_build_output/bin/bash", 0x5a98c3680) = -2
[P1:T1:bash] trace: ---- stat("/usr/local/openjdk-11/bin/bash", 0x5a98c3680) = -2
[P1:T1:bash] trace: ---- stat("/usr/local/sbin/bash", 0x5a98c3680) = -2
[P1:T1:bash] trace: ---- stat("/usr/local/bin/bash", 0x5a98c3680) = -2
[P1:T1:bash] trace: ---- stat("/usr/sbin/bash", 0x5a98c3680) = -2
[P1:T1:bash] trace: ---- stat("/usr/bin/bash", 0x5a98c3680) = -2
[P1:T1:bash] trace: ---- stat("/sbin/bash", 0x5a98c3680) = -2
[P1:T1:bash] trace: ---- stat("/bin/bash", 0x5a98c3680) = 0x0
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/bin/bash", 0x5a98c35b0, 0) = 0x0
[P1:T1:bash] trace: ---- geteuid() = 0x0
[P1:T1:bash] trace: ---- getegid() = 0x0
[P1:T1:bash] trace: ---- getuid() = 0x0
[P1:T1:bash] trace: ---- getgid() = 0x0
[P1:T1:bash] trace: ---- access("/bin/bash", F_OK|R_OK) = 0x0
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/bin/bash", 0x5a98c35b0, 0) = 0x0
[P1:T1:bash] trace: ---- geteuid() = 0x0
[P1:T1:bash] trace: ---- getegid() = 0x0
[P1:T1:bash] trace: ---- getuid() = 0x0
[P1:T1:bash] trace: ---- getgid() = 0x0
[P1:T1:bash] trace: ---- access("/bin/bash", F_OK|X_OK) = 0x0
[P1:T1:bash] trace: ---- stat("/bin/bash", 0x5a98c36c0) = 0x0
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/bin/bash", 0x5a98c35f0, 0) = 0x0
[P1:T1:bash] trace: ---- geteuid() = 0x0
[P1:T1:bash] trace: ---- getegid() = 0x0
[P1:T1:bash] trace: ---- getuid() = 0x0
[P1:T1:bash] trace: ---- getgid() = 0x0
[P1:T1:bash] trace: ---- access("/bin/bash", F_OK|R_OK) = 0x0
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/bin/bash", 0x5a98c35f0, 0) = 0x0
[P1:T1:bash] trace: ---- geteuid() = 0x0
[P1:T1:bash] trace: ---- getegid() = 0x0
[P1:T1:bash] trace: ---- getuid() = 0x0
[P1:T1:bash] trace: ---- getgid() = 0x0
[P1:T1:bash] trace: ---- access("/bin/bash", F_OK|X_OK) = 0x0
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/etc/nsswitch.conf", 0x5a98c34d0, 0) = 0x0
[P1:T1:bash] trace: ---- newfstatat(AT_FDCWD, "/", 0x5a98c35e0, 0) = 0x0
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|0x80000, 0000) = 0x3
[P1:T1:bash] trace: ---- newfstatat(3, "", 0x5a98c33f0, 4096) = 0x0
[P1:T1:bash] trace: ---- read(3, 0x5a9ff0390, 0x1000) ...
[P1:T1:bash] trace: ---- return from read(...) = 0x1ee
[P1:T1:bash] trace: ---- read(3, 0x5a9ff0390, 0x1000) ...
[P1:T1:bash] trace: ---- return from read(...) = 0x0
[P1:T1:bash] trace: ---- newfstatat(3, "", 0x5a98c34d0, 4096) = 0x0
[P1:T1:bash] trace: ---- close(3) = 0x0
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/etc/passwd", O_RDONLY|0x80000, 0000) = 0x3
[P1:T1:bash] trace: ---- newfstatat(3, "", 0x5a98c3550, 4096) = 0x0
[P1:T1:bash] trace: ---- lseek(3, 0x0, SEEK_SET) = 0x0
[P1:T1:bash] trace: ---- read(3, 0x5a9ff0390, 0x1000) ...
[P1:T1:bash] trace: ---- return from read(...) = 0x39a
[P1:T1:bash] trace: ---- close(3) = 0x0
[P1:T1:bash] trace: ---- gettimeofday(0x5a98c3840, 0) = 0x0
[P1:T1:bash] trace: ---- getpid() = 0x1
[P1:T1:bash] trace: ---- getppid() = 0x0
[P1:T1:bash] trace: ---- gettimeofday(0x5a98c3840, 0) = 0x0
[P1:T1:bash] trace: ---- getpid() = 0x1
[P1:T1:bash] trace: ---- getppid() = 0x0
[P1:T1:bash] trace: ---- getpgrp() = 0x1
[P1:T1:bash] trace: ---- ioctl(2, TIOCGPGRP, 0x5a98c38fc) ...
[P1:T1:bash] trace: ---- return from ioctl(...) = 0x0
[P1:T1:bash] trace: ---- rt_sigaction([SIGCHLD], 0x5a98c3660, 0x5a98c3700, 0x8) = 0x0
[P1:T1:bash] trace: ---- prlimit64(0, 6, 0, 0x5a98c3860) = 0x0
[P1:T1:bash] trace: ---- rt_sigprocmask(BLOCK, NULL, [], 0x8) = 0x0
[P1:T1:bash] trace: ---- openat(AT_FDCWD, "/gramine/app_files/docker-entrypoint.sh", O_RDONLY, 0000) = 0x3
[P1:T1:bash] trace: ---- stat("/gramine/app_files/docker-entrypoint.sh", 0x5a98c39b0) = 0x0
[P1:T1:bash] trace: ---- ioctl(3, TCGETS, 0x5a98c39d0) ...
[P1:T1:bash] trace: ---- return from ioctl(...) = -38
[P1:T1:bash] trace: ---- lseek(3, 0x0, SEEK_CUR) = 0x0
[P1:T1:bash] trace: ---- read(3, 0x5a98c3b30, 0x50) ...
[P1:T1:bash] trace: ---- return from read(...) = 0x3a
[P1:T1:bash] trace: ---- lseek(3, 0x0, SEEK_SET) = 0x0
[P1:T1:bash] trace: ---- prlimit64(0, 7, 0, 0x5a98c3a00) = 0x0
[P1:T1:bash] trace: ---- fcntl(255, F_GETFD, 0x5a98c3a24) = -9
[P1:T1:bash] trace: ---- dup2(3, 255) = 0xff
[P1:T1:bash] trace: ---- close(3) = 0x0
[P1:T1:bash] trace: ---- fcntl(255, F_SETFD, 0x1) = 0x0
[P1:T1:bash] trace: ---- fcntl(255, F_GETFL, 0) = 0x0
[P1:T1:bash] trace: ---- fstat(255, 0x5a98c3970) = 0x0
[P1:T1:bash] trace: ---- lseek(255, 0x0, SEEK_CUR) = 0x0
[P1:T1:bash] trace: ---- read(255, 0x5a9ff6de0, 0x3a) ...
[P1:T1:bash] trace: ---- return from read(...) = 0x3a
[P1:T1:bash] trace: ---- rt_sigprocmask(BLOCK, NULL, [], 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigprocmask(BLOCK, [SIGINT,SIGTERM,SIGCHLD,], [], 0x8) = 0x0
[P1:T1:bash] trace: ---- lseek(255, -1, SEEK_CUR) = 0x39
[P1:T1:bash] trace: ---- clone(CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|[SIGCHLD], 0, 0, 0x5a99a16d0, 0) ...
[P1:T1:bash] debug: Creating pipe: pipe.srv:3e0a1b2f86c4f333d6cd9df61f4d1f06aeabdcf976543924ad81b271903ed85a
debug: Gramine parsed TOML manifest file successfully
debug: Token file: /gramine/app_files/entrypoint.token
debug: Read dummy DCAP token
debug: Enclave created:
debug: base: 0x0000000000000000
debug: size: 0x0000001000000000
debug: misc_select: 0x00000000
debug: attr.flags: 0x0000000000000007
debug: attr.xfrm: 0x00000000000000e7
debug: ssa_frame_size: 4
debug: isv_prod_id: 0x00000000
debug: isv_svn: 0x00000000
debug: Adding pages to SGX enclave, this may take some time...
debug: Adding pages to enclave: 0xffee6d000-0x1000000000 [REG:R--] (manifest) measured
debug: Adding pages to enclave: 0xffea6d000-0xffee6d000 [REG:RW-] (ssa) measured
debug: Adding pages to enclave: 0xffe9ed000-0xffea6d000 [TCS:---] (tcs) measured
debug: Adding pages to enclave: 0xffe96d000-0xffe9ed000 [REG:RW-] (tls) measured
debug: Adding pages to enclave: 0xffe92d000-0xffe96d000 [REG:RW-] (stack) measured
...
...
...
debug: Adding pages to enclave: 0xffbd95000-0xffbd9a000 [REG:RW-] (data) measured
debug: Adding pages to enclave: 0xffbd9a000-0xffc16d000 [REG:RW-] (bss) measured
debug: Adding pages to enclave: 0x10000-0xffbd41000 [REG:RWX] (free)
[P1:T1:bash] error: process creation failed
[P1:T1:bash] trace: ---- return from clone(...) = -13
[P1:T1:bash] trace: ---- newfstatat(2, "", 0x5a98c2e60, 4096) = 0x0
[P1:T1:bash] trace: ---- ioctl(2, TCGETS, 0x5a98c2dd0) ...
[P1:T1:bash] trace: ---- return from ioctl(...) = -38
[P1:T1:bash] trace: ---- write(2, 0x5a9ff8e70, 0x41) ...
/gramine/app_files/docker-entrypoint.sh: fork: Permission denied
[P1:T1:bash] trace: ---- return from write(...) = 0x41
[P1:T1:bash] trace: ---- rt_sigprocmask(SETMASK, [], NULL, 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigprocmask(BLOCK, [SIGCHLD,], [], 0x8) = 0x0
[P1:T1:bash] trace: ---- rt_sigprocmask(SETMASK, [], NULL, 0x8) = 0x0
[P1:T1:bash] debug: ---- exit_group (returning 254)
[P1:T1:bash] debug: clearing POSIX locks for pid 1
[P1:T1:bash] debug: sync client shutdown: closing handles
[P1:T1:bash] debug: sync client shutdown: waiting for confirmation
[P1:T1:bash] debug: sync client shutdown: finished
[P1:libos] debug: IPC worker: exiting worker thread
[P1:T1:bash] debug: process 1 exited with status 254
debug: PalProcessExit: Returning exit code 254
I don't know why the process fails to be created. Is it related to the size of the enclave?