From owner-freebsd-stable@FreeBSD.ORG Sun Jan 24 11:15:12 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6299E106566C for ; Sun, 24 Jan 2010 11:15:12 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from no.spam.no.ddos.ru (no.spam.no.ddos.ru [77.73.233.132]) by mx1.freebsd.org (Postfix) with ESMTP id 18DB58FC0C for ; Sun, 24 Jan 2010 11:15:11 +0000 (UTC) Received: from ws.ipfw.ru (secured.by.ipfw.ru [81.200.11.182]) by no.spam.no.ddos.ru (Postfix) with ESMTPA id C7AA737C680; Sun, 24 Jan 2010 11:15:09 +0000 (UTC) Message-ID: <4B5C2B5D.3010301@ipfw.ru> Date: Sun, 24 Jan 2010 14:13:33 +0300 From: "Alexander V. Chernikov" User-Agent: Thunderbird 2.0.0.23 (X11/20091103) MIME-Version: 1.0 To: Harald Schmalzbauer References: <4B56AB6F.9010303@omnilan.de> <86eilhwzbh.fsf@kopusha.onet> <4B5A4A8C.8070707@omnilan.de> <4B5C11BD.7080103@ipfw.ru> <4B5C28E3.8080006@omnilan.de> In-Reply-To: <4B5C28E3.8080006@omnilan.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Mikolaj Golub Subject: Re: top Segmentation faulting on 8.0p2 amd64 (nss_ldapd problem?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2010 11:15:12 -0000 Harald Schmalzbauer wrote: > Alexander V. Chernikov schrieb am 24.01.2010 10:24 (localtime): > ... >>>> gdb /usr/bin/top top.core >>>> bt >>>> >>>> And sure a backtrace from the top built with -g would be much better. >>>> >>>> cd /usr/src/usr.bin/top >>>> CFLAGS=-g make >>> >>> Unfortunately nss_ldap seems to be the culprit. >> There is some strange problem with TLS and gcc optimization I can't >> localize >> >> Please try to rebuild port with >> >> post-configure: >> @${REINPLACE_CMD} -e 's/^\(CFLAGS .*\)-O2 \(.*\)$$/\1 -O0 \2/' >> ${WRKSRC}/nss/Makefile >> >> I'll submit updated port later > > That indeed fixed the problem. Thank you very much. > But I found another point for improovement: > When deinstalling/installing nss_ldap.conf gets deleted/overwritten. I > think it's better to install nss_ldap.conf.sample like many other > ports do. > I also like the way lighttpd port is managed: > @unexec if cmp -s %D/etc/lighttpd.conf %D/etc/lighttpd.conf.sample; > then rm -f %D/etc/lighttpd.conf; fi > etc/lighttpd.conf.sample > @exec [ -f %B/lighttpd.conf ] || cp %B/%f %B/lighttpd.conf > > Thanks, > > -Harry > Already noticed that, thanks.