Date: Tue, 23 Jan 2018 07:43:56 +0000 From: Alexey Dokuchaev <danfe@FreeBSD.org> To: John Baldwin <jhb@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Jason Evans <jasone@freebsd.org> Subject: Re: svn commit: r319971 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src include lib/libc/stdlib/jemalloc Message-ID: <20180123074356.GA10499@FreeBSD.org> In-Reply-To: <1981273.UqQzroY0xG@ralph.baldwin.cx> References: <201706150715.v5F7F6aT031218@repo.freebsd.org> <20180118101031.GB21646@FreeBSD.org> <20180122063210.GA43383@FreeBSD.org> <1981273.UqQzroY0xG@ralph.baldwin.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 22, 2018 at 10:50:06AM -0800, John Baldwin wrote: > On Monday, January 22, 2018 06:32:10 AM Alexey Dokuchaev wrote: > > ... > > I've just found out that similar bug was already reported back in July: > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220767 > > I wonder if it is tripping over pthread_once not working in libc. The stub > for pthread_once in libc is a nop and has been for a long time. I added > a functioning stub (called _libc_once) to libc for it's internal use (there > is a _once() wrapper that will call _pthread_once when using libpthread and > _libc_once otherwise). It might be interesting to build jemalloc with > '-Dpthread_once=_once' to see if that makes a difference? I've tried to replace pthread_once -> _once in `src/background_thread.c' directly (passing `-Dpthread_once=_once' would conflict with existing definition in /mnt/src/head/lib/libc/include/namespace.h), it didn't help. But thanks anyway, I appreciate more people taking a look in the issue. ./danfe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180123074356.GA10499>