Gentoo Archives: gentoo-dev

From: Matthew Kennedy <mkennedy@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] xemacs segfault : it's not over yet
Date: Mon, 15 Apr 2002 02:01:53
Message-Id: 1018854112.4484.3.camel@gentoo.shacknet.nu
In Reply to: [gentoo-dev] xemacs segfault : it's not over yet by Sebastien Phaneuf
1 Howdy,
2
3 See Comment 8 at http://bugs.gentoo.org/show_bug.cgi?id=1501
4
5 The xemacs segfaults you are seeing seem to be related to sandbox. This
6 is a problem that is being currently researched by gentoo developers. In
7 the mean time, there are two work-arounds:
8
9 1. If you have a segfaulting xemacs you can run xemacs like this to
10 avoid the segfaulting:
11
12 LD_PRELOAD=/usr/lib/portage/lib/libsandbox.so xemacs
13
14 Better yet, define yourself an alias:
15
16 alias xemacs='LD_PRELOAD=/usr/lib/portage/lib/libsandbox.so xemacs'
17
18 2. If you feel like re-emerging xemacs, temporarily change the
19 FEATURES="..." line in /etc/make.conf from "sandbox" to "-sandbox". Then
20 "emerge xemacs". The resulting xemacs binary should no longer segfault.
21 At this point you can restore your old FEATURES="..." line in
22 /etc/make.conf to include "sandbox" (a good idea).
23
24 eg. If my FEATURES line looks like:
25
26 FEATURES="sandbox digest noclean"
27
28 then I change it to:
29
30 FEATURES="-sandbox digest noclean"
31
32 then "emerge xemacs", then change back to
33
34 FEATURES="sandbox digest noclean"
35
36 Then run xemacs as you normally would (ie. no LD_PRELOAD setting
37 required).
38
39
40 On Sun, 2002-04-14 at 18:57, Sebastien Phaneuf wrote:
41 > I'm having problem with xemacs. It's segfaulting at startup (im using Gentoo
42 > 1.1a evrything has just been built. I did'nt run any command except for
43 > emerge :) ).
44
45 --
46 Matthew Kennedy
47 Gentoo Linux Developer