arm64: userspace broken with jemalloc 4.0.0

Julien Grall julien.grall at citrix.com
Tue Sep 1 10:54:12 UTC 2015


Hi Ed,

On 31/08/15 21:29, Ed Maste wrote:
> On 30 August 2015 at 18:21, Julien Grall <julien.grall at citrix.com> wrote:
>>
>>
>> So I figured out the problem today. ls is linked to 2 libraries using local
>> thread storage: libxo and libc. Somehow the 2 libraries are using the same
>> base pointer for the storage.
>>
>> When libxo will try to realloc a pointer living in the thread storage,
>> jemalloc will throw an exception (the ASSERT mentioned earlier) because the
>> pointer is invalid. The pointer was expected to be NULL but it has been
>> overwritten by jemalloc earlier.
> 
> Would you submit a PR for this to keep track of it while the
> investigation is ongoing?

Andrew provides a patch to fix the problem on the thread. Let me know if
it's still worth to submit a PR.

Regards,

-- 
Julien Grall


More information about the freebsd-arm mailing list