From owner-freebsd-ports@freebsd.org Tue Aug 25 17:53:42 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 208869C3397 for ; Tue, 25 Aug 2015 17:53:42 +0000 (UTC) (envelope-from se@freebsd.org) Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D5CFD15C for ; Tue, 25 Aug 2015 17:53:41 +0000 (UTC) (envelope-from se@freebsd.org) Received: from fwd36.aul.t-online.de (fwd36.aul.t-online.de [172.20.26.137]) by mailout06.t-online.de (Postfix) with SMTP id 70A63134689; Tue, 25 Aug 2015 19:53:32 +0200 (CEST) Received: from [192.168.119.17] (SyvCI4ZUrhAKO5aE3A8V4fXO8VxQsFqQxog4yjh5JVN5BBz6g4fZNGKxBMOfwspweh@[87.151.208.233]) by fwd36.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1ZUIPb-3WqBBg0; Tue, 25 Aug 2015 19:53:31 +0200 Subject: Re: Samba 4.2 crashes To: freebsd-ports@freebsd.org References: <55DC91AF.8020108@netfence.it> From: Stefan Esser X-Enigmail-Draft-Status: N1110 Cc: ml@netfence.it Message-ID: <55DCAB95.20201@freebsd.org> Date: Tue, 25 Aug 2015 19:53:25 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55DC91AF.8020108@netfence.it> Content-Type: multipart/mixed; boundary="------------010500060407030606010600" X-ID: SyvCI4ZUrhAKO5aE3A8V4fXO8VxQsFqQxog4yjh5JVN5BBz6g4fZNGKxBMOfwspweh X-TOI-MSGID: abcaa026-2165-4e47-bb3a-b24176a2934b 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 17:53:42 -0000 This is a multi-part message in MIME format. --------------010500060407030606010600 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Am 25.08.2015 um 18:02 schrieb Andrea Venturoli: > 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 I have seen that kind of failure when the port was built on a system that had www/libwww installed. In that case libmd5.so from libwww is linked to samba in preference of the system's libmd.so. I sent a note to the port's maintainer, a few weeks ago, but apparently he did not apply the patch I included, which fixes the port. In case you have libwww installed, you can simply temporarily deinstall it while you build samba42. Or apply the attached patch (copy it to the samba42 port's files directory and rebuild the port). Best regards, STefan --------------010500060407030606010600 Content-Type: text/plain; charset=UTF-8; name="patch-lib__crypto__wscript_configure" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-lib__crypto__wscript_configure" --- lib/crypto/wscript_configure~ 2014-10-01 11:16:21.000000000 +0200 +++ lib/crypto/wscript_configure 2015-08-11 22:54:47.865668000 +0200 @@ -1,8 +1,8 @@ if not conf.CHECK_FUNCS_IN('MD5Init', 'bsd', headers='bsd/md5.h', checklibc=True): - conf.CHECK_FUNCS_IN('MD5Init', 'md5', headers='sys/md5.h', - checklibc=True) conf.CHECK_FUNCS_IN('MD5Init', 'md', headers='sys/md5.h', checklibc=True) + conf.CHECK_FUNCS_IN('MD5Init', 'md5', headers='sys/md5.h', + checklibc=True) conf.CHECK_FUNCS_IN('CC_MD5_Init', '', headers='CommonCrypto/CommonDigest.h', checklibc=True) --------------010500060407030606010600--