Skip to content

Instantly share code, notes, and snippets.

@andrew-aladev
Created January 21, 2020 18:06
Show Gist options
  • Save andrew-aladev/04fcb14af7b5c9ed4a363a3e95a8d9d7 to your computer and use it in GitHub Desktop.
Save andrew-aladev/04fcb14af7b5c9ed4a363a3e95a8d9d7 to your computer and use it in GitHub Desktop.
sandbox coredump
[New LWP 986]
Core was generated by `x86_64-pc-linux-musl-gcc -O2 -pipe -fPIC -I/usr/x86_64-pc-linux-musl/usr/includ'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fb0ac7da3be in do_dlsym (p=0x0, s=0x7fb0aca06528 "mmap", ra=0x7fb0ac9fb8d0 <get_dlsym+71>) at ldso/dynlink.c:2147
Thread 1 (LWP 986):
#0 0x00007fb0ac7da3be in do_dlsym (p=0x0, s=0x7fb0aca06528 "mmap", ra=0x7fb0ac9fb8d0 <get_dlsym+71>) at ldso/dynlink.c:2147
use_deps = 0
def = {sym = 0x2, dso = 0x0}
#1 0x00007fb0ac7da874 in __dlsym (p=0xffffffffffffffff, s=0x7fb0aca06528 "mmap", ra=0x7fb0ac9fb8d0 <get_dlsym+71>) at ldso/dynlink.c:2235
res = 0x7fb0aca16000
#2 0x00007fb0ac9fb8d0 in get_dlsym (symname=0x7fb0aca06528 "mmap", symver=0x0) at /usr/x86_64-pc-linux-musl/tmp/portage/sys-apps/sandbox-2.18/work/sandbox-2.18/libsandbox/wrappers.c:51
symaddr = 0x8000000000000006
#3 0x00007fb0ac9f9b22 in sb_mmap (addr=0x0, length=32, prot=3, flags=34, fd=-1, offset=0) at /usr/x86_64-pc-linux-musl/tmp/portage/sys-apps/sandbox-2.18/work/sandbox-2.18/libsandbox/memory.c:28
No locals.
#4 0x00007fb0ac9f9bd8 in malloc (size=32) at /usr/x86_64-pc-linux-musl/tmp/portage/sys-apps/sandbox-2.18/work/sandbox-2.18/libsandbox/memory.c:50
ret = 0x34000000340
#5 0x00007fb0aca02f3c in __xmalloc (size=16, file=0x7fb0aca060b0 "/usr/x86_64-pc-linux-musl/tmp/portage/sys-apps/sandbox-2.18/work/sandbox-2.18/libsandbox/libsandbox.c", func=0x7fb0aca064f0 <__func__.5697> "init_env_entries", line=555) at /usr/x86_64-pc-linux-musl/tmp/portage/sys-apps/sandbox-2.18/work/sandbox-2.18/libsbutil/sb_memory.c:34
ret = 0x7fb0aca16000
#6 0x00007fb0ac9f77c8 in init_env_entries (prefixes_array=0x7fb0aca0d2f0 <sbcontext+16>, prefixes_num=0x7fb0aca0d318 <sbcontext+56>, env=0x7fb0aca06466 "SANDBOX_DENY", prefixes_env=0x7ffc89a7c3a6 "", warn=1) at /usr/x86_64-pc-linux-musl/tmp/portage/sys-apps/sandbox-2.18/work/sandbox-2.18/libsandbox/libsandbox.c:555
token = 0x0
rpath = 0x0
buffer = 0x0
buffer_ptr = 0x0
prefixes_env_length = 0
num_delimiters = 0
i = 0
old_errno = 0
__func__ = "init_env_entries"
#7 0x00007fb0ac9f7b52 in sb_process_env_settings () at /usr/x86_64-pc-linux-musl/tmp/portage/sys-apps/sandbox-2.18/work/sandbox-2.18/libsandbox/libsandbox.c:627
sb_env = 0x7ffc89a7c3a6 ""
sb_env_names = {0x7fb0aca06466 "SANDBOX_DENY", 0x7fb0aca06473 "SANDBOX_READ", 0x7fb0aca06480 "SANDBOX_WRITE", 0x7fb0aca0648e "SANDBOX_PREDICT"}
i = 0
#8 0x00007fb0ac9f6695 in libsb_init () at /usr/x86_64-pc-linux-musl/tmp/portage/sys-apps/sandbox-2.18/work/sandbox-2.18/libsandbox/libsandbox.c:92
No locals.
#9 0x00007fb0aca275da in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#10 0x00007fb0aca276d9 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#11 0x00007fb0aca190ca in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#12 0x000000000000000c in ?? ()
No symbol table info available.
#13 0x00007ffc89a7a99c in ?? ()
No symbol table info available.
#14 0x00007ffc89a7a9b5 in ?? ()
No symbol table info available.
#15 0x00007ffc89a7a9b9 in ?? ()
No symbol table info available.
#16 0x00007ffc89a7a9bf in ?? ()
No symbol table info available.
#17 0x00007ffc89a7a9c5 in ?? ()
No symbol table info available.
#18 0x00007ffc89a7a9f8 in ?? ()
No symbol table info available.
#19 0x00007ffc89a7a9fb in ?? ()
No symbol table info available.
#20 0x00007ffc89a7aa13 in ?? ()
No symbol table info available.
#21 0x00007ffc89a7aa16 in ?? ()
No symbol table info available.
#22 0x00007ffc89a7aaa0 in ?? ()
No symbol table info available.
#23 0x00007ffc89a7aab7 in ?? ()
No symbol table info available.
#24 0x00007ffc89a7aacb in ?? ()
No symbol table info available.
#25 0x0000000000000000 in ?? ()
No symbol table info available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment