[Bug 220767] lang/beignet: hangs if consumer is not linked against libpthread after jemalloc 5.0.0 update

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 11 18:44:05 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220767

--- Comment #6 from Jason Evans <jasone at FreeBSD.org> ---
I don't have any specific ideas as to why this is happening.  Bootstrapping
jemalloc on FreeBSD is really tricky, because pthreads mutexes use malloc, and
jemalloc has to jump through hoops to initialize its mutexes in multiple
phases.

It looks like beignet depends on the libpthread-stubs package.  Is it possible
that the stubs don't sufficiently stub out the libc-internal hooks that
jemalloc uses to bootstrap?  Here's a list of pthreads-related symbols jemalloc
depends on (generated by building stand-alone jemalloc):

_pthread_mutex_init_calloc_cb
je_pthread_create_wrapper
pthread_cond_init
pthread_cond_signal
pthread_cond_timedwait
pthread_cond_wait
pthread_create
pthread_create_fptr
pthread_join
pthread_mutex_lock
pthread_mutex_trylock
pthread_mutex_unlock
pthread_sigmask

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list