From owner-freebsd-current@FreeBSD.ORG Sun Nov 1 07:26:24 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CCD5106566C for ; Sun, 1 Nov 2009 07:26:24 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from dd12710.kasserver.com (dd12710.kasserver.com [85.13.134.233]) by mx1.freebsd.org (Postfix) with ESMTP id 19DBB8FC20 for ; Sun, 1 Nov 2009 07:26:23 +0000 (UTC) Received: from current.Sisis.de (ppp-88-217-48-99.dynamic.mnet-online.de [88.217.48.99]) by dd12710.kasserver.com (Postfix) with ESMTP id 758F9184F89E6; Sun, 1 Nov 2009 08:26:22 +0100 (CET) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id nA17QTam002396; Sun, 1 Nov 2009 08:26:29 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Sun, 1 Nov 2009 08:26:29 +0100 From: Matthias Apitz To: kde-freebsd@kde.org Message-ID: <20091101072629.GA2334@current.Sisis.de> References: <20091030151754.GA5849@current.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20091030151754.GA5849@current.Sisis.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) Cc: freebsd-current@freebsd.org Subject: Re: [kde-freebsd] after compiling x11/kde4 problems with /usr/local/bin/startkde (SOLVED) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2009 07:26:24 -0000 El día Friday, October 30, 2009 a las 04:17:55PM +0100, Matthias Apitz escribió: > > Hello, > > I have in a VM a 9-CURRENT and compiled/installed from the ports first > x11/kde3 (which worked fine) and now in addition x11/kde4 (which comes > up also fine). > > But, > > A start of KDE3 from ~/.xinitrc via exec /usr/local/bin/startkde > complains in the following code: > > # We set LD_BIND_NOW to increase the efficiency of kdeinit. > # kdeinit unsets this variable before loading applications. > LD_BIND_NOW=true start_kdeinit_wrapper --new-startup +kcminit_startup > if test $? -ne 0; then > # Startup error > echo 'startkde: Could not start kdeinit. Check your installation.' 1>&2 > xmessage -geometry 500x100 "Could not start kdeinit. Check your installation." > fi > > i.e. it brings up this xmessage box and in the log files I can see that > 'start_kdeinit_wrapper' SIGABORT's. The KDE desktop itself comes up > fine. This is, as I said, after compiling the port x11/kde4. The file > /usr/local/bin/start_kdeinit_wrapper is not touched by the port x11/kde4 > and neither the shared libs it is depending: > > $ ldd /usr/local/bin/start_kdeinit_wrapper > /usr/local/bin/start_kdeinit_wrapper: > libjpeg.so.10 => /usr/local/lib/libjpeg.so.10 (0x2808e000) > libc.so.7 => /lib/libc.so.7 (0x280c2000) > > What could cause this behaviour? Thanks +Cc: freebsd-current I digged into that deeper with the sources... start_kdeinit_wrapper -> start_kdeinit -> kdeinit is (on non-Linux) just an execvp(2) chain of the above three programs; on FreeBSD it would not even be necessary because non of them runs with setuid on execution. As mentioned, the three programs /usr/local/bin/start_kdeinit_wrapper /usr/local/bin/start_kdeinit /usr/local/bin/kdeinit have been compiled on -CURRENT r197801 and have been untouched and working since October, 16. On October 30, I compiled in addition the port x11/kde4, which does not touch the above programs and also not the shared libs used by them; after the installation of x11/kde4 the start_kdeinit_wrapper now aborts: $ /usr/local/bin/start_kdeinit_wrapper Abort trap: 6 it does not abort when you set # sysctl security.bsd.map_at_zero=1 security.bsd.map_at_zero: 0 -> 1 I think that security.bsd.map_at_zero was already 0 before compiling x11/kde4, i.e. no part of KDE4 changed this sysctl value; so it remains open, what caused this effect, but at least it is working again; Thx matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu