Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2015 01:42:14 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Adrian Chadd <adrian.chadd@gmail.com>
Cc:        "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0"
Message-ID:  <561FF386.7030307@grosbein.net>
In-Reply-To: <CAJ-VmondSi7N8-DtNbTUg2Bg9r5q6ofW4S1BnvsHjnch8XKxbw@mail.gmail.com>
References:  <561D2EC1.6030402@grosbein.net> <CAJ-VmonUQFYxAf%2BB4%2BWTKS3E5gc7=r9kFdfoLg2ZABFhPtYOyg@mail.gmail.com> <561D5459.70900@grosbein.net> <561E8C80.4030005@grosbein.net> <CAJ-VmondSi7N8-DtNbTUg2Bg9r5q6ofW4S1BnvsHjnch8XKxbw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




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