[Bug 211032] [SIGABRT] portfind crashes on jemalloc free

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 12 11:08:20 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211032

            Bug ID: 211032
           Summary: [SIGABRT] portfind crashes on jemalloc free
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: mizhka at gmail.com

Hi,

On 11-ALPHAs/BETA/12-CURRENT "ports-mgmt/portfind" crashes on jemalloc free:

(gdb) file portfind
Reading symbols from portfind...(no debugging symbols found)...done.
(gdb) run pkg 
Starting program: /usr/local/bin/portfind pkg
<jemalloc>:
/builds/FreeBSD-src-head/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:1129:
Failed assertion: "((uintptr_t)ptr - ((uintptr_t)rpages +
(uintptr_t)bin_info->reg0_offset)) % bin_info->reg_interval == 0"

Program received signal SIGABRT, Aborted.
0x0000000800c17c2a in thr_kill () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800c17c2a in thr_kill () from /lib/libc.so.7
#1  0x0000000800c17bfb in __raise (s=6) at
/builds/FreeBSD-src-head/lib/libc/gen/raise.c:52
#2  0x0000000800c17b69 in abort () at
/builds/FreeBSD-src-head/lib/libc/stdlib/abort.c:65
#3  0x0000000800c066e2 in __je_arena_ptr_small_binind_get (ptr=<optimized out>,
mapbits=33)
    at
/builds/FreeBSD-src-head/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:1108
#4  0x0000000800c06f44 in __je_arena_salloc (tsdn=<optimized out>,
ptr=0x80141c002, demote=false)
    at
/builds/FreeBSD-src-head/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:1408
#5  0x0000000800c13a1b in __je_isalloc (tsdn=0x0, ptr=0x80141c002,
demote=false)
    at
/builds/FreeBSD-src-head/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h:951
#6  ifree (tsd=0x800626488, ptr=0x80141c002, tcache=0x80140d000,
slow_path=true) at jemalloc_jemalloc.c:1810
#7  0x0000000800c13b41 in __free (ptr=0x80141c002) at jemalloc_jemalloc.c:1937
#8  0x0000000000401212 in main ()
(gdb) 

Test case:
 - use FreeBSD 11-BETA or 12-CURRENT
 - fetch ports tree & make sure that index is OK
 - install portfind from ports
 - run "portfind pkg" 

It works fine on 10-stable. 

My actual uname -a:
FreeBSD gidrarium 12.0-CURRENT FreeBSD 12.0-CURRENT #1: Sat Jul  9 17:28:38 MSK
2016    
jenkins at gidrarium:/builds/FreeBSD-src-head/obj/builds/FreeBSD-src-head/sys/GENERIC
 amd64

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list