Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2012 09:01:28 +0200
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        Jason Evans <jasone@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: <jemalloc>: jemalloc_arena.c:182: Failed assertion: "p[i] == 0"
Message-ID:  <20120509070101.GC1395@mole.fafoe.narf.at>
In-Reply-To: <93A2687F-5061-42B7-883B-F92371F8023F@FreeBSD.org>
References:  <20120421185402.GH1743@albert.catwhisker.org> <7AD8956D-AD18-4CAB-9953-06E00185A7DA@freebsd.org> <a457b78de070b45bbffdd06271c6a7ef.squirrel@mouf.net> <A67012C5-E54A-4F60-A1DD-AAFB3867793B@FreeBSD.org> <4FA94E51.8020902@FreeBSD.org> <20120508213717.GA1410@mole.fafoe.narf.at> <EBD45BFC-D4A4-4B29-B946-5C67357FC2CD@FreeBSD.org> <20120508215802.GB1410@mole.fafoe.narf.at> <93A2687F-5061-42B7-883B-F92371F8023F@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 08, 2012 at 03:59:42PM -0700, Jason Evans wrote:
> On May 8, 2012, at 2:58 PM, Stefan Farfeleder wrote:
> > On Tue, May 08, 2012 at 02:47:59PM -0700, Jason Evans wrote:
> >> On May 8, 2012, at 2:37 PM, Stefan Farfeleder wrote:
> >>> 
> >>> I hit the same assertion with r235052 and inkscape. I'm now using
> >>> MALLOC_PRODUCTION and it works again.
> >> 
> >> Was the assertion failure easily reproducible with inkscape?
> > 
> > Yes, it crashed everytime before showing the GUI. The backtrace goes
> > like this:

[snip]

> sbrk() is being used rather than mmap().  Unless mmap() is failing (which would surprise me), this indicates that you are using a version of libc that's old enough to have the bug I fixed in r234569.

I'm afraid the backtrace was somehow corrupted. Here's a new one from a libc
compiled with -g:

(gdb) bt
#0  0x000000080ad760ac in thr_kill () at thr_kill.S:3
#1  0x000000080ae22548 in abort () at /usr/src/lib/libc/stdlib/abort.c:77
#2  0x000000080ad9f57d in arena_chunk_validate_zeroed (chunk=0x188d3, run_ind=6) at jemalloc_arena.c:182
#3  0x000000080ada1c51 in arena_run_split (arena=0x8104000c0, run=Variable "run" is not available.
) at jemalloc_arena.c:318
#4  0x000000080ada3624 in arena_run_alloc (arena=0x8104000c0, size=4096, large=false, zero=false)
    at jemalloc_arena.c:524
#5  0x000000080ada3ffc in arena_bin_malloc_hard (arena=0x8104000c0, bin=0x810400298) at jemalloc_arena.c:1128
#6  0x000000080ada432d in __jemalloc_arena_tcache_fill_small (arena=0x8104000c0, tbin=0x810806068, binind=2, 
    prof_accumbytes=Variable "prof_accumbytes" is not available.
) at jemalloc_arena.c:1250
#7  0x000000080ad9394f in __jemalloc_tcache_alloc_small_hard (tcache=Variable "tcache" is not available.
) at jemalloc_tcache.c:32
#8  0x000000080ad93d70 in __jemalloc_tcache_alloc_small (tcache=0x810806000, size=32, zero=false) at tcache.h:340
#9  0x000000080ada73a0 in malloc (size=32) at jemalloc_jemalloc.c:807
#10 0x000000080a6a283d in operator new () from /usr/lib/libstdc++.so.6
#11 0x0000000803300dcf in sigc::internal::trackable_callback_list::add_callback ()
   from /usr/local/lib/libsigc-2.0.so.0
#12 0x00000000007a5664 in sp_style_new_from_object ()

Stefan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120509070101.GC1395>