From owner-freebsd-current@freebsd.org Sun Jun 19 08:06:51 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 A6F83A7AC3D for ; Sun, 19 Jun 2016 08:06:51 +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 37E451E7D for ; Sun, 19 Jun 2016 08:06:50 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u5J86imN049986 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 19 Jun 2016 11:06:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u5J86imN049986 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u5J86iWJ049985; Sun, 19 Jun 2016 11:06:44 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 19 Jun 2016 11:06:44 +0300 From: Konstantin Belousov To: Daniel Engberg Cc: freebsd-current@freebsd.org Subject: Re: Samba 4.3 and 4.4 crashes on FreeBSD 11-ALPHA4 Message-ID: <20160619080644.GL38613@kib.kiev.ua> References: <0092113e-6ad6-575c-2127-f211ba9aef50@pyret.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0092113e-6ad6-575c-2127-f211ba9aef50@pyret.net> User-Agent: Mutt/1.6.1 (2016-04-27) 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.22 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: Sun, 19 Jun 2016 08:06:51 -0000 On Sun, Jun 19, 2016 at 09:10:08AM +0200, Daniel Engberg wrote: > Hi, > > Decided to try ALPHA4 and Samba 4.3 and 4.4 doesn't seem very happy. > > Fatal error 'mutex 0x8013ec000 own 0x18cdc is on list 0x8112161a0 0x0' at line 153 in file /usr/src/lib/libthr/thread/thr_mutex.c (errno = 4) > [2016/06/19 01:14:47.689256, 0] ../lib/util/fault.c:78(fault_report) > =============================================================== > [2016/06/19 01:14:47.689450, 0] ../lib/util/fault.c:79(fault_report) > INTERNAL ERROR: Signal 6 in pid 45222 (4.4.3) > Please read the Trouble-Shooting section of the Samba HOWTO > [2016/06/19 01:14:47.689479, 0] ../lib/util/fault.c:81(fault_report) > =============================================================== > [2016/06/19 01:14:47.689498, 0] ../source3/lib/util.c:791(smb_panic_s3) > PANIC (pid 45222): internal error > [2016/06/19 01:14:47.690577, 0] ../source3/lib/util.c:902(log_stack_trace) > BACKTRACE: 6 stack frames: > #0 0x803c16fe8 at /usr/local/lib/samba4/libsmbconf.so.0 > #1 0x803c16ed2 at /usr/local/lib/samba4/libsmbconf.so.0 > #2 0x801696dad at /usr/local/lib/samba4/libsamba-util.so.0 > #3 0x801696c57 at /usr/local/lib/samba4/libsamba-util.so.0 > #4 0x8014616df at /lib/libthr.so.3 > #5 0x801460cbf at /lib/libthr.so.3 > [2016/06/19 01:14:47.690686, 0] ../source3/lib/dumpcore.c:313(dump_core) > unable to change to %N.core > refusing to dump core > > Fatal error 'mutex 0x8013eb000 own 0x18d3d is on list 0x812e161a0 0x0' at line 153 in file /usr/src/lib/libthr/thread/thr_mutex.c (errno = 4) > [2016/06/19 01:26:41.063681, 0] ../lib/util/fault.c:78(fault_report) > =============================================================== > [2016/06/19 01:26:41.063827, 0] ../lib/util/fault.c:79(fault_report) > INTERNAL ERROR: Signal 6 in pid 61297 (4.3.9) > Please read the Trouble-Shooting section of the Samba HOWTO > [2016/06/19 01:26:41.063844, 0] ../lib/util/fault.c:81(fault_report) > =============================================================== > [2016/06/19 01:26:41.063855, 0] ../source3/lib/util.c:789(smb_panic_s3) > PANIC (pid 61297): internal error > [2016/06/19 01:26:41.064679, 0] ../source3/lib/util.c:900(log_stack_trace) > BACKTRACE: 6 stack frames: > #0 0x803846eb8 at /usr/local/lib/libsmbconf.so.0 > #1 0x803846da2 at /usr/local/lib/libsmbconf.so.0 > #2 0x80168c12d at /usr/local/lib/libsamba-util.so.0 > #3 0x80168bfd7 at /usr/local/lib/libsamba-util.so.0 > #4 0x8014606df at /lib/libthr.so.3 > #5 0x80145fcbf at /lib/libthr.so.3 > [2016/06/19 01:26:41.064747, 0] ../source3/lib/dumpcore.c:313(dump_core) > unable to change to %N.core > refusing to dump core > > This occurs immediately when you start Samba so it's easy to replicate. > I know that 4.3 worked on r298887 for sure, I'm going to try this in VM too but I'd apperciate if anyone else could give this a go. > > I noticed that there were some changes in libthr which might be a clue.... > Please convince samba to allow to dump core on assert (I have no idea how), then get a backtrace from the core, using ports/devel/gdb. After that I may know where to look next.