debug: Token file: gramine-sqvs.token
debug: Read dummy DCAP token
debug: enclave created:
debug: base: 0x0000000000000000
debug: size: 0x0000000010000000
debug: misc_select: 0x00000000
debug: attr.flags: 0x0000000000000005
debug: attr.xfrm: 0x00000000000000e7
debug: ssa_frame_size: 4
debug: isv_prod_id: 0x00000000
debug: isv_svn: 0x00000000
debug: adding pages to enclave: 0xff79000-0x10000000 [REG:R--] (manifest) measured
debug: adding pages to enclave: 0xff59000-0xff79000 [REG:RW-] (ssa) measured
debug: adding pages to enclave: 0xff55000-0xff59000 [TCS:---] (tcs) measured
debug: adding pages to enclave: 0xff51000-0xff55000 [REG:RW-] (tls) measured
debug: adding pages to enclave: 0xff11000-0xff51000 [REG:RW-] (stack) measured
debug: adding pages to enclave: 0xfed1000-0xff11000 [REG:RW-] (stack) measured
debug: adding pages to enclave: 0xfe91000-0xfed1000 [REG:RW-] (stack) measured
debug: adding pages to enclave: 0xfe51000-0xfe91000 [REG:RW-] (stack) measured
debug: adding pages to enclave: 0xfe41000-0xfe51000 [REG:RW-] (sig_stack) measured
debug: adding pages to enclave: 0xfe31000-0xfe41000 [REG:RW-] (sig_stack) measured
debug: adding pages to enclave: 0xfe21000-0xfe31000 [REG:RW-] (sig_stack) measured
debug: adding pages to enclave: 0xfe11000-0xfe21000 [REG:RW-] (sig_stack) measured
debug: adding pages to enclave: 0xf9e4000-0xfa39000 [REG:R-X] (code) measured
debug: adding pages to enclave: 0xfa39000-0xfa3d000 [REG:RW-] (data) measured
debug: adding pages to enclave: 0xfa3d000-0xfe11000 [REG:RW-] (bss) measured
debug: adding pages to enclave: 0x10000-0xf9e4000 [REG:RWX] (free)
debug: enclave initializing:
debug: enclave id: 0x000000000ffff000
debug: mr_enclave: ece968e3780e658a266b77fb4e77159ab856b36e17897d0cea6f71f115029176
debug: Using SGX DCAP/ECDSA attestation
-----------------------------------------------------------------------------------------------------------------------
Gramine detected the following insecure configurations:
- 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: DkVirtualMemoryProtect is unimplemented in Linux-SGX PAL
[::] debug: Host: Linux-SGX
[::] debug: LibOS xsave_enabled 1, xsave_size 0xa80(2688), xsave_features 0xe7
[::] debug: Initial VMA region 0xf51b000-0xf59c000 (LibOS) bookkeeped
[::] debug: Initial VMA region 0xff79000-0x10000000 (manifest) bookkeeped
[::] debug: ASLR top address adjusted to 0x7bbc000
[::] debug: Shim loaded at 0xf51b000, ready to initialize
[::] debug: Mounting root as chroot filesystem: from file:. to /
[::] debug: Mounting special proc filesystem: /proc
[::] debug: Mounting special dev filesystem: /dev
[::] debug: Mounting terminal device /dev/tty under /dev
[P1:T1:] debug: Mounting as chroot filesystem: from file:/usr/local/lib/x86_64-linux-gnu/gramine/runtime/glibc to /lib
[P1:T1:] debug: Mounting as chroot filesystem: from file:/etc to /etc
[P1:T1:] debug: Mounting as chroot filesystem: from file:/lib/x86_64-linux-gnu to /lib/x86_64-linux-gnu
[P1:T1:] debug: Mounting as chroot filesystem: from file:/usr/lib/x86_64-linux-gnu to /usr/lib/x86_64-linux-gnu
[P1:T1:] debug: Mounting as chroot filesystem: from file:/root/mohanpa/gramine/CI-Examples/gramine-sqvs/gramine-sqvs to /root/mohanpa/gramine/CI-Examples/gramine-sqvs
[P1:T1:gramine-sqvs] debug: Allocating stack at 0 (size = 262144)
[P1:T1:gramine-sqvs] debug: loading "file:./gramine-sqvs"
[P1:T1:gramine-sqvs] debug: find_interp: searching for interpreter: /lib/ld-linux-x86-64.so.2
[P1:T1:gramine-sqvs] debug: loading "file:/usr/local/lib/x86_64-linux-gnu/gramine/runtime/glibc/ld-linux-x86-64.so.2"
[P1:T1:gramine-sqvs] debug: Creating pipe: pipe.srv:1
debug: sock_getopt (fd = 12, sockopt addr = 0x7ffc0050b810) is not implemented and always returns 0
[P1:T1:gramine-sqvs] debug: Shim process initialized
[P1:shim] debug: IPC worker started
[P1:T1:gramine-sqvs] debug: glibc register library /lib/libc.so.6 loaded at 0x0794d000
[P1:T1:sqvs] debug: Allocating stack at 0 (size = 262144)
[P1:T1:sqvs] debug: loading "file:./sqvs"
[P1:T1:sqvs] debug: find_interp: searching for interpreter: /lib/ld-linux-x86-64.so.2
[P1:T1:sqvs] debug: loading "file:/usr/local/lib/x86_64-linux-gnu/gramine/runtime/glibc/ld-linux-x86-64.so.2"
[P1:T1:sqvs] debug: execve: start execution
[P1:T1:sqvs] debug: glibc register library /lib/libpthread.so.0 loaded at 0x07b81000
[P1:T1:sqvs] debug: glibc register library /lib/libc.so.6 loaded at 0x0798e000
fatal error: failed to reserve page summary memory
runtime stack:
runtime.throw(0x85600b, 0x25)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0x7949d58 sp=0x7949d28 pc=0x4345d2
runtime.(*pageAlloc).sysInit(0xb97f48)
/usr/local/go/src/runtime/mpagealloc_64bit.go:80 +0x17e fp=0x7949de8 sp=0x7949d58 pc=0x42b4de
runtime.(*pageAlloc).init(0xb97f48, 0xb97f40, 0xbac5f8)
/usr/local/go/src/runtime/mpagealloc.go:297 +0x75 fp=0x7949e10 sp=0x7949de8 pc=0x429135
runtime.(*mheap).init(0xb97f40)
/usr/local/go/src/runtime/mheap.go:694 +0x274 fp=0x7949e38 sp=0x7949e10 pc=0x426354
runtime.mallocinit()
/usr/local/go/src/runtime/malloc.go:470 +0xff fp=0x7949e68 sp=0x7949e38 pc=0x40c8ef
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:545 +0x60 fp=0x7949ec0 sp=0x7949e68 pc=0x437cc0
runtime.rt0_go(0x7949ef8, 0x1, 0x7949ef8, 0x7949e48, 0x7b8a0aa, 0x1, 0x7949ffa, 0x0, 0x7949faf, 0x0, ...)
/usr/local/go/src/runtime/asm_amd64.s:214 +0x125 fp=0x7949ec8 sp=0x7949ec0 pc=0x4620d5
[P1:T1:sqvs] debug: ---- shim_exit_group (returning 2)
[P1:T1:sqvs] debug: clearing POSIX locks for pid 1
[P1:T1:sqvs] debug: sync client shutdown: closing handles
[P1:T1:sqvs] debug: sync client shutdown: waiting for confirmation
[P1:T1:sqvs] debug: sync client shutdown: finished
[P1:shim] debug: IPC worker: exiting worker thread
[P1:T1:sqvs] debug: process 1 exited with status 2
debug: DkProcessExit: Returning exit code 2