From owner-freebsd-ports@freebsd.org Tue Aug 25 16:03:05 2015 Return-Path: Delivered-To: freebsd-ports@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 8038899E29F for ; Tue, 25 Aug 2015 16:03:05 +0000 (UTC) (envelope-from ml@netfence.it) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 64E52796 for ; Tue, 25 Aug 2015 16:03:05 +0000 (UTC) (envelope-from ml@netfence.it) Received: by mailman.ysv.freebsd.org (Postfix) id 624DB99E29D; Tue, 25 Aug 2015 16:03:05 +0000 (UTC) Delivered-To: ports@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 4828A99E29C for ; Tue, 25 Aug 2015 16:03:05 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp208.alice.it (smtp208.alice.it [82.57.200.104]) by mx1.freebsd.org (Postfix) with ESMTP id D3694793; Tue, 25 Aug 2015 16:03:04 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu (87.18.43.33) by smtp208.alice.it (8.6.060.28) (authenticated as acanedi@alice.it) id 55BB68E1045A81DE; Tue, 25 Aug 2015 18:02:57 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.15.2/8.14.9) with ESMTP id t7PG2tCx084390; Tue, 25 Aug 2015 18:02:56 +0200 (CEST) (envelope-from ml@netfence.it) From: Andrea Venturoli Subject: Samba 4.2 crashes To: ports@freebsd.org Cc: timur@FreeBSD.org Message-ID: <55DC91AF.8020108@netfence.it> Date: Tue, 25 Aug 2015 18:02:55 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2015 16:03:05 -0000 Hello. I'm trying to upgrade from samba 3.6 to 4.2 (mainly because the former is deprecated, so I don't want AD, just plain old functionality). I started with simpler installations and had almost no problem. However, in a just a little bit more complex case (PDC+BDC with LDAP backend), smbd and/or winbindd keep crashing. I started by upgrading the PDC; everything should be fine (config files, rc.conf, database directory, connection to LDAP, etc...). However I'm getting lots of the following messages: > kernel: pid 50545 (smbd), uid 0: exited on signal 6 > winbindd[89801]: stack overflow detected; terminated > winbindd[89801]: stack overflow detected; terminated and basically nothing works. The box is running 9.3/amd64 and I have "WITH_SSP_PORTS=yes" in /etc/make.conf. So I removed that line and issued a "portupgrade -Rf samba42"; afterwards, however, samba failed in the same way. Then I tried building samba in debug mode, with "env FORCE_PKG_REGISTER=yes make WITH_DEBUG=yes STRIP= install". I get crash dumps, but trying to interpret them fails: > cd /usr/ports/net/samba42/work/samba-4.2.3/bin/default/source3/winbindd/ > # gdb winbindd /winbindd.core > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "amd64-marcel-freebsd"... > Core was generated by `winbindd'. > Program terminated with signal 6, Aborted. > #0 0x0000000808c8238c in ?? () > (gdb) bt > #0 0x0000000808c8238c in ?? () > #1 0x0000000808c22dd6 in ?? () > #2 0x0000000000000000 in ?? () > (gdb) q Even trying with gdb-7.9.1 from ports yields the same result. Not even a simple debugging session works: > # /usr/local/bin/gdb winbindd > GNU gdb (GDB) 7.9.1 [GDB v7.9.1 for FreeBSD] > Copyright (C) 2015 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-portbld-freebsd9.3". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > . > Find the GDB manual and other documentation resources online at: > . > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from winbindd...done. > (gdb) b main > Breakpoint 1 at 0x3c039: file ../source3/winbindd/winbindd.c, line 1428. > (gdb) r > Starting program: /usr/ports/net/samba42/work/samba-4.2.3/bin/default/source3/winbindd/winbindd > Error in re-setting breakpoint 1: Cannot access memory at address 0x3c020 > Error in re-setting breakpoint 1: Cannot access memory at address 0x3c020 > [Inferior 1 (process 59552) exited normally] So, any hint on what to do to sort this out? How do I debug smbd and/or winbindd? bye & Thanks av. P.S. I saw another thread suggesting "https://bugzilla.samba.org/show_bug.cgi?id=11455", but that doesn't seem to be my problem; I tried anyway, but without success. P.P.S. Out of curiosity I also tried samba41 and samba4 and experienced similar behaviour.