jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0"

Eugene Grosbein eugen at grosbein.net
Thu Oct 15 18:42:42 UTC 2015


On 15.10.2015 00:53, Adrian Chadd wrote:
> No, you're finding an actual real bug with jemalloc, so don't define
> MALLOC_PRODUCTION.

As a test, I've used qemu under FreeBSD/amd64 to build two packages for MIPS32:
pkg-1.6.1.txz and mpd-5.7_3.txz and stored them to USB flash.

I've mounted that USB flash as /usr/local in my TL WDR3600, extracted pkg-static
and tried to install both packages and got kernel panic in process:

# ./pkg-static install -yU /usr/local/pkg/*.txz
pkg-static: Repository FreeBSD cannot be opened. 'pkg update' required
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        mpd5: 5.7_3
        pkg: 1.6.1

The process will require 12 MiB more space.
[1/2] Installing mpd5-5.7_3...
[1/2] Extracting mpd5-5.7_3: 100%
[2/2] Installing pkg-1.6.1...
[2/2] Extracting pkg-1.6.1:  16%

Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)
panic: trap
Uptime: 3m7s
panic: bufwrite: buffer is not busy???
Uptime: 3m7s


This is repeatable. This time the device used system built using HEAD sources r289362
with MALLOC_PRODUCTION.



More information about the freebsd-mips mailing list