occam ~ # pstree -pla $(pidof sandbox) sandbox,257256 /usr/lib/portage/python3.6/ebuild.sh test `-ebuild.sh,257258 /usr/lib/portage/python3.6/ebuild.sh test `-ebuild.sh,257275 /usr/lib/portage/python3.6/ebuild.sh test |-make,257319 -j1 check | `-sh,259084 test/test.sh test/integration/aligned_alloc test/integration/allocated test/integration/extent test/integration/mallocx test/integration/MALLOCX_ARENA test/integration/overflow test/integration/posix_memalign test/integration/rallocx test/integration/sdallocx test/integration/thread_arena test/integration/thread_tcache_enabled test/integration/xallocx test/integration/cpp/basic | `-aligned_alloc,259085 /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/ /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0-abi_x86_32.x86/ `-tee,257290 -a /var/tmp/portage/dev-libs/jemalloc-5.1.0/temp/build-abi_x86_32.x86.log occam ~ # gdb -p 259085 --batch -ex 'set solib-search-path /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0-abi_x86_32.x86/lib' -ex 'thread apply all bt full' warning: Could not load shared library symbols for lib/libjemalloc.so.2. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0xf7f28a99 in __kernel_vsyscall () Thread 1 (Thread 0xf7945080 (LWP 259085)): #0 0xf7f28a99 in __kernel_vsyscall () No symbol table info available. #1 0xf7e3c9b2 in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/i386/lowlevellock.S:144 No locals. #2 0xf7e341a8 in __GI___pthread_mutex_lock (mutex=0xf7e9b17c ) at ../nptl/pthread_mutex_lock.c:78 ignore3 = ignore1 = ignore2 = type = 380 __PRETTY_FUNCTION__ = "__pthread_mutex_lock" id = #3 0xf7e786bf in malloc_mutex_lock_final (mutex=0xf7e9b140 ) at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/include/jemalloc/internal/mutex.h:141 No locals. #4 je_malloc_mutex_lock_slow (mutex=0xf7e9b140 ) at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/mutex.c:66 data = 0xf7e9b140 before = {ns = 0} cnt = 251 max_cnt = after = {ns = 4158946916} n_thds = delta = {ns = 0} #5 0xf7e517d8 in malloc_mutex_lock (mutex=0xf7e9b140 , tsdn=0x0) at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/include/jemalloc/internal/mutex.h:205 No locals. #6 malloc_init_hard () at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:1506 tsd = #7 0xf7e57310 in malloc_init () at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:217 No locals. #8 imalloc (dopts=0xffc77ed0, sopts=0xffc77eb8) at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:1986 tsd = tsd = #9 calloc (num=1, size=20) at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:2138 ret = 0x0 sopts = {may_overflow = 12, bump_empty_alloc = 96, assert_nonempty_alloc = 196, null_out_result_on_error = true, set_errno_on_error = true, min_alignment = 0, oom_string = 0x0, invalid_alignment_string = 0x0, slow = 96} dopts = {result = 0xffc77eb4, num_items = 0, item_size = 0, alignment = 4158891504, zero = 12, tcache_ind = 4294967294, arena_ind = 4294967295} log_var = log_state = log_var = log_state = #10 0xf7c43559 in _dlerror_run (operate=0xf7c42e30 , args=0xffc77f6c) at dlerror.c:140 result = #11 0xf7c42ef3 in __dlsym (handle=0xffffffff, name=0xf7eb616d "mmap") at dlsym.c:70 args = {handle = 0xffffffff, name = 0xf7eb616d "mmap", who = 0xf7eac737 , sym = 0x0} result = #12 0xf7eac737 in get_dlsym (symname=0xf7eb616d "mmap", symver=0x0) at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/wrappers.c:51 symaddr = #13 0xf7eaacb4 in sb_mmap (addr=addr@entry=0x0, length=length@entry=16, prot=prot@entry=3, flags=34, fd=-1, offset=0) at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/memory.c:28 No locals. #14 0xf7eaad7d in malloc (size=16) at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/memory.c:50 ret = #15 0xf7eb3e1a in __xmalloc (size=8, file=0xf7eb5ce8 "/var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/libsandbox.c", func=0xf7eb6150 <__func__.8128> "init_env_entries", line=548) at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsbutil/sb_memory.c:34 ret = #16 0xf7ea9633 in init_env_entries (prefixes_array=prefixes_array@entry=0xf7ec606c , prefixes_num=prefixes_num@entry=0xf7ec6080 , env=env@entry=0xf7eb60ae "SANDBOX_DENY", prefixes_env=, warn=1) at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/libsandbox.c:548 token = 0x0 rpath = 0x0 buffer = 0x0 buffer_ptr = 0x0 prefixes_env_length = 0 num_delimiters = i = old_errno = 0 __func__ = "init_env_entries" #17 0xf7ea97cb in sb_process_env_settings () at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/libsandbox.c:620 sb_env = 0xffc7e1c5 "" sb_env_names = {0xf7eb60ae "SANDBOX_DENY", 0xf7eb60bb "SANDBOX_READ", 0xf7eb60c8 "SANDBOX_WRITE", 0xf7eb60d6 "SANDBOX_PREDICT"} i = 0 #18 0xf7ea9e3e in libsb_init () at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/libsandbox.c:92 No locals. #19 0xf7eaa011 in before_syscall (dirfd=-100, sb_nr=-3, func=0xf7eb6058 "open_rd", file=0xf7e849a4 "/proc/sys/vm/overcommit_memory", flags=524288) at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/libsandbox.c:1038 result = at_file_buf = "\000\000\000\000.,`\000\244\201\000\000\001", '\000' , "\004\000\000\000\000\000\000\271٩[\377\315\360\066\271٩[\377\315\360\066\271٩[\377\315\360\066", '\000' ... old_errno = 0 #20 0xf7eaa10d in before_syscall_open_int (dirfd=-100, sb_nr=, func=0xf7eb6869 "open", file=0xf7e849a4 "/proc/sys/vm/overcommit_memory", flags=524288) at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/libsandbox.c:1079 ext_func = 0xf7eb6058 "open_rd" #21 0xf7eb17a9 in open_DEFAULT (pathname=0xf7e849a4 "/proc/sys/vm/overcommit_memory", flags=524288) at /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/libsandbox/wrapper-funcs/__wrapper_simple.c:52 result = -1 #22 0xf7e78fb6 in open (__oflag=524288, __path=0xf7e849a4 "/proc/sys/vm/overcommit_memory") at /usr/include/bits/fcntl2.h:53 No locals. #23 os_overcommits_proc () at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/pages.c:463 fd = buf = "" nread = #24 0xf7e79299 in je_pages_boot () at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/pages.c:579 No locals. #25 0xf7e51481 in malloc_init_hard_a0_locked () at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:1291 No locals. #26 0xf7e51795 in malloc_init_hard () at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:1516 tsd = #27 0xf7e52194 in malloc_init () at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:217 No locals. #28 imalloc (dopts=0xffc7a2b0, sopts=0xffc7a298) at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:1986 tsd = tsd = #29 malloc (size=18944) at /var/tmp/portage/dev-libs/jemalloc-5.1.0/work/jemalloc-5.1.0/src/jemalloc.c:2038 ret = 0xf7bc0898 sopts = {may_overflow = true, bump_empty_alloc = false, assert_nonempty_alloc = false, null_out_result_on_error = true, set_errno_on_error = true, min_alignment = 4156805304, oom_string = 0xf7c411b8 "\001", invalid_alignment_string = 0xf7c35edc "\360o\254\367t", slow = 210} dopts = {result = 0xffc7a294, num_items = 4156805304, item_size = 4156805120, alignment = 4158813116, zero = 80, tcache_ind = 4294967294, arena_ind = 4294967295} log_var = log_state = log_var = log_state = #30 0xf7aaba29 in (anonymous namespace)::pool::pool (this=0xf7c3f420 <(anonymous namespace)::emergency_pool>) at /usr/src/debug/sys-devel/gcc-8.2.0-r3/gcc-8.2.0/libstdc++-v3/libsupc++/eh_alloc.cc:123 No locals. #31 __static_initialization_and_destruction_0 (__priority=65535, __initialize_p=1) at /usr/src/debug/sys-devel/gcc-8.2.0-r3/gcc-8.2.0/libstdc++-v3/libsupc++/eh_alloc.cc:262 No locals. #32 _GLOBAL__sub_I_eh_alloc.cc(void) () at /usr/src/debug/sys-devel/gcc-8.2.0-r3/gcc-8.2.0/libstdc++-v3/libsupc++/eh_alloc.cc:338 No locals. #33 0xf7f38693 in call_init (l=, argc=argc@entry=3, argv=argv@entry=0xffc7a394, env=0xffc7a3a4) at dl-init.c:72 j = jm = addrs = init_array = #34 0xf7f3879e in call_init (env=0xffc7a3a4, argv=0xffc7a394, argc=3, l=) at dl-init.c:30 init_array = init_array = j = jm = addrs = #35 _dl_init (main_map=, argc=3, argv=0xffc7a394, env=0xffc7a3a4) at dl-init.c:119 preinit_array = preinit_array_size = i = 5 #36 0xf7f29c4a in _dl_start_user () from /lib/ld-linux.so.2 version_info = 0 _dl_rtld_libname2 = {name = 0x0, next = 0x0, dont_free = 0} start_time = 825770947554638 relocate_time = 2394618 audit_list = 0x0 library_path = 0x0 tls_init_tp_called = true any_debug = 0 _dl_rtld_libname = {name = 0x56615194 "/lib/ld-linux.so.2", next = 0xf7f50838 , dont_free = 0} load_time = 780782 preloadlist = 0xffc80de3 "libsandbox.so" __GI__dl_argv = 0xffc7a394 _dl_argc = 3 audit_list_string = 0x0 _rtld_global = {_dl_ns = {{_ns_loaded = 0xf7f50900, _ns_nloaded = 11, _ns_main_searchlist = 0xf7f50a5c, _ns_global_scope_alloc = 0, _ns_unique_sym_table = {lock = {mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 1, __nusers = 0, {__elision_data = {__espins = 0, __eelision = 0}, __list = {__next = 0x0}}}, __size = '\000' , "\001\000\000\000\000\000\000\000\000\000\000", __align = 0}}, entries = 0xf7945bf0, size = 127, n_elements = 82, free = 0xf7f415d0 }, _ns_debug = {r_version = 0, r_map = 0x0, r_brk = 0, r_state = RT_CONSISTENT, r_ldbase = 0}}, {_ns_loaded = 0x0, _ns_nloaded = 0, _ns_main_searchlist = 0x0, _ns_global_scope_alloc = 0, _ns_unique_sym_table = {lock = {mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__elision_data = {__espins = 0, __eelision = 0}, __list = {__next = 0x0}}}, __size = '\000' , __align = 0}}, entries = 0x0, size = 0, n_elements = 0, free = 0x0}, _ns_debug = {r_version = 0, r_map = 0x0, r_brk = 0, r_state = RT_CONSISTENT, r_ldbase = 0}} }, _dl_nns = 1, _dl_load_lock = {mutex = {__data = {__lock = 1, __count = 1, __owner = 259085, __kind = 1, __nusers = 1, {__elision_data = {__espins = 0, __eelision = 0}, __list = {__next = 0x0}}}, __size = "\001\000\000\000\001\000\000\000\r\364\003\000\001\000\000\000\001\000\000\000\000\000\000", __align = 1}}, _dl_load_write_lock = {mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 1, __nusers = 0, {__elision_data = {__espins = 0, __eelision = 0}, __list = {__next = 0x0}}}, __size = '\000' , "\001\000\000\000\000\000\000\000\000\000\000", __align = 0}}, _dl_load_adds = 11, _dl_initfirst = 0x0, _dl_cpuclock_offset = 825770947563457, _dl_profile_map = 0x0, _dl_num_relocations = 3324, _dl_num_cache_relocations = 1590, _dl_all_dirs = 0xf7f50f90, _dl_rtld_map = {l_addr = 4159868928, l_name = 0x56615194 "/lib/ld-linux.so.2", l_ld = 0xf7f4fef4, l_next = 0xf7eca500, l_prev = 0xf7eca180, l_real = 0xf7f50518 <_rtld_global+1304>, l_ns = 0, l_libname = 0xf7f5085c <_dl_rtld_libname>, l_info = {0x0, 0x0, 0xf7f4ff2c, 0xf7f4ff24, 0x0, 0xf7f4ff04, 0xf7f4ff0c, 0x0, 0x0, 0x0, 0xf7f4ff14, 0xf7f4ff1c, 0x0, 0x0, 0xf7f4fef4, 0x0, 0x0, 0xf7f4ff44, 0xf7f4ff4c, 0xf7f4ff54, 0xf7f4ff34, 0x0, 0x0, 0xf7f4ff3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf7f4ff6c, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf7f4ff64, 0xf7f4ff5c, 0xf7f4ff74, 0xf7f4ff84, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf7f4ff7c, 0x0 , 0xf7f4fefc}, l_phdr = 0xf7f29034, l_entry = 0, l_phnum = 6, l_ldnum = 0, l_searchlist = {r_list = 0x0, r_nlist = 0}, l_symbolic_searchlist = {r_list = 0x0, r_nlist = 0}, l_loader = 0x0, l_versions = 0xf7947860, l_nversions = 7, l_nbuckets = 61, l_gnu_bitmask_idxbits = 7, l_gnu_shift = 8, l_gnu_bitmask = 0xf7f29104, {l_gnu_buckets = 0xf7f29124, l_chain = 0xf7f29124}, {l_gnu_chain_zero = 0xf7f29214, l_buckets = 0xf7f29214}, l_direct_opencount = 0, l_type = lt_library, l_relocated = 1, l_init_called = 1, l_global = 1, l_reserved = 0, l_phdr_allocated = 0, l_soname_added = 0, l_faked = 0, l_need_tls_init = 0, l_auditing = 0, l_audit_any_plt = 0, l_removed = 0, l_contiguous = 0, l_symbolic_in_local_scope = 0, l_free_initfini = 0, l_rpath_dirs = {dirs = 0x0, malloced = 0}, l_reloc_result = 0x0, l_versyms = 0xf7f2970a, l_origin = 0x0, l_map_start = 4159868928, l_map_end = 4160030968, l_text_end = 4159980843, l_scope_mem = {0x0, 0x0, 0x0, 0x0}, l_scope_max = 0, l_scope = 0x0, l_local_scope = {0x0, 0x0}, l_file_id = {dev = 0, ino = 0}, l_runpath_dirs = {dirs = 0x0, malloced = 0}, l_initfini = 0x0, l_reldeps = 0x0, l_reldepsmax = 0, l_used = 1, l_feature_1 = 0, l_flags_1 = 0, l_flags = 0, l_idx = 0, l_mach = {plt = 0, gotplt = 0, tlsdesc_table = 0x0}, l_lookup_cache = {sym = 0xf7f29384, type_class = 1, value = 0xf7ec98c0, ret = 0xf7c4bda0}, l_tls_initimage = 0x0, l_tls_initimage_size = 0, l_tls_blocksize = 0, l_tls_align = 0, l_tls_firstbyte_offset = 0, l_tls_offset = 0, l_tls_modid = 0, l_tls_dtor_count = 0, l_relro_addr = 157760, l_relro_size = 1984, l_serial = 0, l_audit = 0xf7f50774 <_rtld_global+1908>}, audit_data = {{cookie = 0, bindflags = 0} }, _dl_rtld_lock_recursive = 0xf7e34140 <__GI___pthread_mutex_lock>, _dl_rtld_unlock_recursive = 0xf7e358e0 <__GI___pthread_mutex_unlock>, _dl_make_stack_executable_hook = 0xf7e30920 <__make_stacks_executable>, _dl_stack_flags = 6, _dl_tls_dtv_gaps = false, _dl_tls_max_dtv_idx = 3, _dl_tls_dtv_slotinfo_list = 0xf79479f0, _dl_tls_static_nelem = 3, _dl_tls_static_size = 5440, _dl_tls_static_used = 2512, _dl_tls_static_align = 64, _dl_initial_dtv = 0xf7945598, _dl_tls_generation = 1, _dl_init_static_tls = 0xf7e310e0 <__pthread_init_static_tls>, _dl_wait_lookup_done = 0xf7e31210 <__wait_lookup_done>, _dl_scope_free_list = 0x0} _rtld_global_ro = {_dl_debug_mask = 0, _dl_osversion = 266759, _dl_platform = 0xf7f46660 "i686", _dl_platformlen = 4, _dl_pagesize = 4096, _dl_inhibit_cache = 0, _dl_initial_searchlist = {r_list = 0xf7eca83c, r_nlist = 10}, _dl_clktck = 100, _dl_verbose = 0, _dl_debug_fd = 2, _dl_lazy = 1, _dl_bind_not = 0, _dl_dynamic_weak = 0, _dl_fpu_control = 895, _dl_correct_cache_id = 3, _dl_hwcap = 1, _dl_auxv = 0xffc7a844, _dl_x86_cpu_features = {kind = arch_kind_intel, max_cpuid = 13, cpuid = {{eax = 132775, ebx = 17827840, ecx = 532341759, edx = 3219913727}, {eax = 0, ebx = 0, ecx = 0, edx = 0}, {eax = 0, ebx = 0, ecx = 1, edx = 672137216}}, family = 6, model = 42, xsave_state_size = 896, xsave_state_full_size = 896, feature = {1359985}, data_cache_size = 0, shared_cache_size = 0, non_temporal_threshold = 0}, _dl_x86_hwcap_flags = {"sse2\000\000\000\000", "x86_64\000\000", "avx512_1"}, _dl_x86_platforms = {"i586\000\000\000\000", "i686\000\000\000\000", "haswell\000", "xeon_phi"}, _dl_x86_cap_flags = {"fpu\000\000\000\000", "vme\000\000\000\000", "de\000\000\000\000\000", "pse\000\000\000\000", "tsc\000\000\000\000", "msr\000\000\000\000", "pae\000\000\000\000", "mce\000\000\000\000", "cx8\000\000\000\000", "apic\000\000\000", "10\000\000\000\000\000", "sep\000\000\000\000", "mtrr\000\000\000", "pge\000\000\000\000", "mca\000\000\000\000", "cmov\000\000\000", "pat\000\000\000\000", "pse36\000\000", "pn\000\000\000\000\000", "clflush", "20\000\000\000\000\000", "dts\000\000\000\000", "acpi\000\000\000", "mmx\000\000\000\000", "fxsr\000\000\000", "sse\000\000\000\000", "sse2\000\000\000", "ss\000\000\000\000\000", "ht\000\000\000\000\000", "tm\000\000\000\000\000", "ia64\000\000\000", "pbe\000\000\000\000"}, _dl_inhibit_rpath = 0x0, _dl_origin_path = 0x0, _dl_use_load_bias = 0, _dl_profile = 0x0, _dl_profile_output = 0xf7f445d0 "/var/tmp", _dl_trace_prelink = 0x0, _dl_trace_prelink_map = 0x0, _dl_init_all_dirs = 0xf7f50f90, _dl_sysinfo = 4159867536, _dl_sysinfo_dso = 0xf7f28000, _dl_sysinfo_map = 0xf7f50bf0, _dl_hwcap2 = 0, _dl_debug_printf = 0xf7f391c0 <_dl_debug_printf>, _dl_mcount = 0xf7f3a4d0 <__GI__dl_mcount>, _dl_lookup_symbol_x = 0xf7f32db0 <_dl_lookup_symbol_x>, _dl_check_caller = 0xf7f3b8a0 <_dl_check_caller>, _dl_open = 0xf7f3bdc0 <_dl_open>, _dl_close = 0xf7f3dbc0 <_dl_close>, _dl_tls_get_addr_soft = 0xf7f3b450 <_dl_tls_get_addr_soft>, _dl_discover_osversion = 0xf7f411d0 <_dl_discover_osversion>, _dl_audit = 0x0, _dl_naudit = 0} _dl_skip_args = 0 __pointer_chk_guard_local = 142785900 [Inferior 1 (process 259085) detached] occam ~ #