Skip to content

Instantly share code, notes, and snippets.

@levex
Created June 1, 2018 02:58
Show Gist options
  • Save levex/2a702d364b1892be7b3b6d41c392b944 to your computer and use it in GitHub Desktop.
Save levex/2a702d364b1892be7b3b6d41c392b944 to your computer and use it in GitHub Desktop.
panic
(gdb) lthread-bt 0x310bc8c0
#0 _lthread_yield_cb (lt=0x310bc8c0, f=0x7ffff3354883 <submitsc>, arg=0x9) at sched/sched.c:322
#1 0x00007ffff3354919 in threadswitch (sc=0x4020a250) at host/hostsyscallclient.c:73
#2 0x00007ffff33568e0 in host_syscall_SYS_clock_gettime (clk_id=0, tp=0x30eb99a0) at host/hostsyscalls.c:707
#3 0x00007ffff332bac3 in __filter_syscall2 (n=113, a1=0, a2=820746656) at ./src/internal/syscall.h:147
#4 0x00007ffff332be27 in __clock_gettime (clk=1808146450, ts=0x30eb99a0) at src/time/clock_gettime.c:55
#5 0x00007ffff36d85a8 in abs_prev ()
#6 0x0000000030eb99b0 in ?? ()
#7 0x00007ffff3356f2a in panic () at lkl/posix-host.c:57
#8 0x00007ffff2f9fa6c in new_host_task (task=<optimised out>) at arch/lkl/kernel/syscalls.c:62
#9 lkl_syscall (no=140737277429160, params=0x2038000) at arch/lkl/kernel/syscalls.c:113
#10 0x00007ffff3352b6a in lkl_sys_mmap_pgoff (addr=0, len=524288, prot=3, flags=34, fd=18446744073709551615, pgoff=0) at /home/levente/sgx-lkl/build/sgx-lkl-musl/include/lkl/asm/syscall_defs.h:302
#11 0x00007ffff3352c04 in lkl_sys_mmap (addr=0x0, length=524288, prot=3, flags=34, fd=-1, offset=0) at /home/levente/sgx-lkl/build/sgx-lkl-musl/include/lkl.h:69
#12 0x00007ffff3353363 in syscall_SYS_mmap (addr=0x0, length=524288, prot=3, flags=34, fd=-1, offset=0) at sgx/enclave_mman.c:208
#13 0x00007ffff32b65c6 in __filter_syscall6 (n=222, a1=0, a2=524288, a3=3, a4=34, a5=-1, a6=0) at ./src/internal/syscall.h:285
#14 0x00007ffff32b67c6 in __mmap (start=0x0, len=524288, prot=3, flags=34, fd=-1, off=0) at src/mman/mmap.c:31
#15 0x00007ffff335b081 in lthread_create (new_lt=0x30eb9dc8, attrp=0x30eb9d70, fun=0x7ffff2f9eaf0 <thread_bootstrap>, arg=0x408960) at sched/sched.c:501
#16 0x00007ffff331f6d1 in __pthread_create (res=0x30eb9dc8, attrp=0x0, entry=0x7ffff2f9eaf0 <thread_bootstrap>, arg=0x408960) at src/thread/pthread_create.c:324
#17 0x00007ffff33572ab in thread_create (fn=0x7ffff2f9eaf0 <thread_bootstrap>, arg=0x408960) at lkl/posix-host.c:211
#18 0x00007ffff2f9ef10 in copy_thread (clone_flags=140737274165384, esp=140737280104440, unused=4249088, p=0x0) at arch/lkl/kernel/threads.c:188
#19 0x0000000000800711 in ?? ()
#20 0x000000000223af48 in ?? ()
#21 0x00007ffff36d85a8 in abs_prev ()
#22 0x0000000000000000 in ?? ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment