arm64: userspace broken with jemalloc 4.0.0
Andrew Turner
andrew at fubar.geek.nz
Mon Aug 31 21:06:51 UTC 2015
On Sat, 29 Aug 2015 23:05:52 +0100
Julien Grall <julien.grall at citrix.com> wrote:
> Hi,
>
> I've built the latest freebsd master (r287263) for arm64 today. While
> trying to use the userspace I hit some ASSERT in jemalloc:
>
> # ls
> <jemalloc>: /usr/src/freebsd/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:571:
> Failed assertion: "pageind >= map_bias" pid 21 (ls), uid 0: exited on
> signal 6 Abort trap
>
> It's happening every time with the command "ls".
>
> I tried to use the previous version of jemalloc (i.e reverting
> all the patches up to "Update jemalloc to version 4.0.0" included)
> and everything is working.
>
> Note that I'm using Freebsd as a Xen ARM guest although the only
> difference is the version of jemalloc (4.0.0 vs 3.6.0).
>
> Does anyone using arm64 have seen a similar ASSERT?
>
> BTW, is there any way to rebuild only the libc rather than doing
> make buildworld everytime I modified the jemalloc code?
>
> Regards,
>
This is a bug in the runtime linkers handling of tls. The attached
patch allows me to get to multiuser mode without anything hitting the
above assert.
Andrew
--
ABT Systems Ltd
Unit 11, Hove Business Centre, Fonthill Road, Hove, BN3 6HA
Registered in England and Wales, No. 9285513
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-WIP-fix-for-AArch64-TLS.patch
Type: text/x-patch
Size: 1479 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20150831/e203de96/attachment.bin>
More information about the freebsd-arm
mailing list