From owner-svn-src-head@freebsd.org Tue Jan 23 07:43:57 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAA80EB7B50; Tue, 23 Jan 2018 07:43:57 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A48AE695A5; Tue, 23 Jan 2018 07:43:57 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 445621E588; Tue, 23 Jan 2018 07:43:56 +0000 (UTC) Date: Tue, 23 Jan 2018 07:43:56 +0000 From: Alexey Dokuchaev To: John Baldwin Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Jason Evans 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> References: <201706150715.v5F7F6aT031218@repo.freebsd.org> <20180118101031.GB21646@FreeBSD.org> <20180122063210.GA43383@FreeBSD.org> <1981273.UqQzroY0xG@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1981273.UqQzroY0xG@ralph.baldwin.cx> User-Agent: Mutt/1.9.2 (2017-12-15) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2018 07:43:57 -0000 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