From owner-freebsd-questions@FreeBSD.ORG Tue Jul 21 00:41:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 887E3106566B for ; Tue, 21 Jul 2009 00:41:05 +0000 (UTC) (envelope-from rob1940@gmail.com) Received: from mail-vw0-f172.google.com (mail-vw0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 399488FC28 for ; Tue, 21 Jul 2009 00:41:04 +0000 (UTC) (envelope-from rob1940@gmail.com) Received: by vwj2 with SMTP id 2so2462437vwj.3 for ; Mon, 20 Jul 2009 17:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=4FH1/tst755Y2tGXS/2s4sFoAPrGd2MCXK51+xyFciQ=; b=TdjRbuTs/tKaUBRBfll4irNcsi7LbULXbP4prcmEkZVXyJsPHANrhjQE4FK6F+JWaS Qug4wn5TJ+Xd+MTLVszHCeNOgHS8dzVIGriU8VhBUcEJolnjvV/HAX9J6BtfHkDaLCEk EiymS6HGu20ZkN4utEE58PcwQFjiXUhJwp37o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=Nnz1IbWY2HKftua8at9CCAVKaU6sVFZCIQzRNSg8t77ut0BDT9HYiSXqA4YfNQvf+z TtZQMjXXZZnLdOzgtdqnL3k+xXnf1I0KmpXWmKy207LdZPoXkHP2nd7TnnKjgsa9zt7S si09M6RJNsmPUqYnPfyC+Y3dTLLy4miuynBwM= MIME-Version: 1.0 Received: by 10.220.87.76 with SMTP id v12mr5835439vcl.52.1248136864105; Mon, 20 Jul 2009 17:41:04 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Jul 2009 10:41:04 +1000 Message-ID: From: Rob Hurle To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: The Gimp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rob1940@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 00:41:05 -0000 Thanks for all the replies to my question about The Gimp: 2009/6/26 Tim Judd : > On 6/23/09, Rob Hurle wrote: >> =C2=A0 Due to some meteorological disasters I've had to replace my 6.1 >> FreeBSD system and I've installed 7.2 on the refurbished i386 >> computer: >> >> freebsd [22:03] ~>uname -a >> FreeBSD freebsd.connect-a.com.au 7.2-RELEASE FreeBSD 7.2-RELEASE #0: >> Fri May =C2=A01 08:49:13 UTC 2009 >> >> My desktop is KDE Version 4.2.2 (not yet sure that this is an >> improvement over the previous version). =C2=A0I'm starting to re-install >> software using portupgrade (portinstall). =C2=A0I've a few problems with >> that, but I'll leave that to another post. =C2=A0The immediate problem i= s >> that I've used portinstall to install gimp (picture processing >> software) which I was happily using on the previous version. =C2=A0It >> installs OK (after a fearful amount of time) but when I start it, I >> get a segmentation fault: >> >> freebsd [22:07] ~>gimp & >> [1] 3696 >> freebsd [22:09] ~> >> [1] =C2=A0 =C2=A0Segmentation fault =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0gimp >> freebsd [22:09] ~> >> >> If I run as root, there is no problem: >> >> freebsd [22:09] ~>sudo gimp & >> [1] 3700 >> freebsd [22:10] ~> >> [1] =C2=A0+ Suspended (tty output) =C2=A0 =C2=A0 =C2=A0 =C2=A0sudo gimp >> freebsd [22:10] ~>fg >> sudo gimp >> Password: >> >> freebsd [22:11] ~> >> >> It starts OK and I can use it fine. =C2=A0The config file ".gimp-2.6" is >> saved in root's home directory. =C2=A0I've tried RTFM, but there is no >> information on this problem. =C2=A0Maybe it's due to some library having >> the wrong permissions and I should search the system for files with >> 544 permissions or something. =C2=A0Does anyone have a clue as to what's >> going on, or should I report a bug? =C2=A0Thanks heaps. >> >> Rob Hurle > > Rob, > > Any chance you're using something like Kerberos, *SQL, LDAP, NIS, or > some other remote database to login to your system? > > > Is it all local users, or are they all from remote? > In fact, it is all users. I have now moved back to KDE 3.5.10 (a big improvement over KDE 4.2.2) and the problem is still there - gimp-2.6 runs OK as root, but segfaults when run by any other user. I've reinstalled gimp-app: portupgrade -rR gimp-app still got the problem. I've "solved" it by setting the executable in /usr/local/bin to suid: freebsd [10:24] /usr/local/bin#ll gimp-2.6 -r-sr-xr-x 1 root wheel 4245892 20 Jul 14:19 gimp-2.6 Not nice, but it now works with any user, however the ownership of files in the ~/gimp-2.6 directory is now "root". Previously I'd "solved" the problem by running always as root but then it never made a ~/gimp-2.6, but always used the ~root/gimp-2.6 directory, for every user. I've also tried setting the ownership of the executable to bin, but that also fails. Any ideas for a better solution would be welcome. Meanwhile, I'm OK. Rob Hurle --=20 ----------------------------- Rob Hurle Research School of Pacific and Asian Studies, ANU e-mail: rob1940@gmail.com Telephone (ANU): +61 2 6125 3169 Mobile (in VN): +84 948 243 538 (Currently in Australia) Mobile (in OZ): +61 417 293 603 (Currently in Australia) -----------------------------