From owner-freebsd-current@freebsd.org Sat Mar 19 10:14:39 2016 Return-Path: Delivered-To: freebsd-current@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 E4880AD664D for ; Sat, 19 Mar 2016 10:14:39 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6313C858 for ; Sat, 19 Mar 2016 10:14:39 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u2JAEXM4071489 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 19 Mar 2016 12:14:33 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u2JAEXM4071489 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u2JAEXJk071488; Sat, 19 Mar 2016 12:14:33 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 19 Mar 2016 12:14:33 +0200 From: Konstantin Belousov To: "Oleg V. Nauman" Cc: freebsd-current@freebsd.org Subject: Re: Fatal error 'mutex is on list' at line 139 in file /usr/src/lib/libthr/thread/thr_mutex.c (errno = 35) Message-ID: <20160319101433.GB1741@kib.kiev.ua> References: <5093647.qxI0C33PyG@asus.theweb.org.ua> <20160318061457.GV1741@kib.kiev.ua> <20160318095531.GX1741@kib.kiev.ua> <2033024.6HYPrpyIJj@asus.theweb.org.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2033024.6HYPrpyIJj@asus.theweb.org.ua> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2016 10:14:40 -0000 On Sat, Mar 19, 2016 at 09:03:56AM +0200, Oleg V. Nauman wrote: > On Friday 18 March 2016 11:55:31 Konstantin Belousov wrote: > > On Fri, Mar 18, 2016 at 08:14:57AM +0200, Konstantin Belousov wrote: > > > Yes, please. It would be significantly easier to diagnose the problem if > > > the minimal example is provided. If not, please pack one crashing app > > > and all it non-system libraries and provide the tarball to me. > > > > Meantime you could also try the following change. I doubt that it would > > fix your issue, but it is possibly related. Only libthr needs to be > > rebuilt. > > > > diff --git a/lib/libthr/thread/thr_fork.c b/lib/libthr/thread/thr_fork.c > > index 7256b68..531e09c 100644 > > --- a/lib/libthr/thread/thr_fork.c > > +++ b/lib/libthr/thread/thr_fork.c > > No it is still coredumping. > The only positive effect is that segfaults are quite occasional comparing to > stock libthr > > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x00000008041b2d6a in thr_kill () from /lib/libc.so.7 > [New Thread 809215000 (LWP 100253/)] > (gdb) bt > #0 0x00000008041b2d6a in thr_kill () from /lib/libc.so.7 > #1 0x00000008041b2d3b in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:52 > #2 0x00000008041b2ca9 in abort () at /usr/src/lib/libc/stdlib/abort.c:65 > #3 0x0000000803eda67c in _thread_exit (fname=, > lineno=, msg=) > at /usr/src/lib/libthr/thread/thr_exit.c:182 > #4 0x0000000803ed56fc in mutex_lock_common (m=, > abstime=, cvattach=) > at /usr/src/lib/libthr/thread/thr_mutex.c:139 > #5 0x0000000803ed4c20 in __pthread_mutex_timedlock (mutex=0x818200008, > abstime=0x7fffffffc468) at /usr/src/lib/libthr/thread/thr_mutex.c:566 > Again, please show me p *mutex p m p *m from the frame 5.