Gentoo Archives: gentoo-dev

From: Matthew Kennedy <mkennedy@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] emacs segfaults
Date: Sun, 04 Aug 2002 03:18:41
Message-Id: 1028449138.7312.6.camel@gentoo.shacknet.nu
In Reply to: [gentoo-dev] emacs segfaults by Burton Samograd
1 As mentioned on http://bugs.gentoo.org/show_bug.cgi?id=5816 it's a
2 problem with sandbox and glibc.
3
4 The work around is
5
6 FEATURES=-sandbox emerge emacs
7
8 Matt
9
10
11 On Thu, 2002-08-01 at 15:33, Burton Samograd wrote:
12 > I just did an update and now for some reason my emacs is segfaulting at
13 > startup. I've tried unmerging it and installing different versions with
14 > no luck. And, as luck would have it, the xemacs build script seems to have
15 > problems too.
16 >
17 > Here's an strace of emacs starting up:
18 >
19 > <snip beginning>
20 >
21 > open("/usr/X11R6/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
22 > open("/lib/libc.so.6", O_RDONLY) = 3
23 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \203\1"..., 1024) = 1024
24 > fstat64(3, {st_mode=S_IFREG|0755, st_size=1485302, ...}) = 0
25 > old_mmap(NULL, 1340928, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4dbad000
26 > mprotect(0x4dceb000, 38400, PROT_NONE) = 0
27 > old_mmap(0x4dceb000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13d000) = 0x4dceb000
28 > old_mmap(0x4dcf1000, 13824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4dcf1000
29 > close(3) = 0
30 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4dcf5000
31 > open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
32 > open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
33 > open("/lib/libdl.so.2", O_RDONLY) = 3
34 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\31\0"..., 1024) = 1024
35 > fstat64(3, {st_mode=S_IFREG|0755, st_size=11752, ...}) = 0
36 > old_mmap(NULL, 11488, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4dcf6000
37 > mprotect(0x4dcf8000, 3296, PROT_NONE) = 0
38 > old_mmap(0x4dcf8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x4dcf8000
39 > close(3) = 0
40 > mprotect(0x4daa4000, 57344, PROT_READ|PROT_WRITE) = 0
41 > mprotect(0x4daa4000, 57344, PROT_READ|PROT_EXEC) = 0
42 > munmap(0x4d9f8000, 24586) = 0
43 > getrlimit(0x3, 0xbff4fba0) = 0
44 > setrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
45 > --- SIGSEGV (Segmentation fault) ---
46 > +++ killed by SIGSEGV +++
47 >
48 > <end>
49 >
50 > and here's the output from "emerge xemacs"
51 >
52 > <snip common autoconf output>
53 > XEmacs 21.4.8 "Honest Recruiter" configured for `i686-pc-linux'.
54 >
55 >
56 > Compilation / Installation:
57 > Source code location: /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8
58 > Installation prefix: /usr
59 > Operating system description file: `s/linux.h'
60 > Machine description file: `m/intel386.h'
61 > Compiler: gcc -march=i686 -mcpu=i686 -O3 -pipe -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
62 > Relocating allocator for buffers: no
63 > GNU version of malloc: yes
64 > - Using Doug Lea's new malloc from the GNU C Library.
65 > Linking with `-z nocombreloc'.
66 > - Consider configuring with --pdump.
67 >
68 > Window System:
69 > Compiling in support for the X window system:
70 > - X Windows headers location: /usr/X11R6/include
71 > - X Windows libraries location: /usr/X11R6/lib
72 > - Handling WM_COMMAND properly.
73 > Using Lucid menubars.
74 > Using Lucid scrollbars.
75 > Using Motif dialog boxes.
76 > Using Motif native widgets.
77 >
78 > TTY:
79 > Compiling in support for ncurses.
80 > Compiling in support for GPM (General Purpose Mouse).
81 >
82 > Images:
83 > Compiling in support for XPM images.
84 > Compiling in support for PNG images.
85 > Compiling in support for JPEG images.
86 > Compiling in support for TIFF images.
87 >
88 > Sound:
89 > Compiling in support for sound (native).
90 >
91 > Databases:
92 > Compiling in support for GNU DBM.
93 >
94 > Internationalization:
95 >
96 > Mail:
97 > Compiling in support for POP mail retrieval.
98 > Compiling in support for "dot-locking" mail spool file locking method.
99 >
100 > Other Features:
101 > Inhibiting IPv6 canonicalization at startup.
102 > Compiling in support for dynamic shared object modules.
103 >
104 >
105 > creating ./config.status
106 > creating Makefile.in
107 > creating lib-src/Makefile.in
108 > creating lwlib/Makefile.in
109 > creating src/Makefile.in
110 > creating src/paths.h
111 > creating lib-src/config.values
112 > creating lib-src/ellcc.h
113 > creating src/config.h
114 > creating lwlib/config.h
115 > creating ./Makefile
116 > creating ./GNUmakefile
117 > creating lib-src/Makefile
118 > creating lib-src/GNUmakefile
119 > creating lwlib/Makefile
120 > creating lwlib/GNUmakefile
121 > creating src/Makefile
122 > creating src/GNUmakefile
123 > Producing `src/Emacs.ad.h' from `etc/Emacs.ad'.
124 > Resetting `src/sheap-adjust.h'.
125 > Building finder database ...
126 > cd /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man && make info
127 > /bin/sh: /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/src/xemacs: No such file or directory
128 > make: *** [lisp/finder-inf.el] Error 127
129 > make: *** Waiting for unfinished jobs....
130 > make[1]: Entering directory `/var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man'
131 > make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
132 > make[1]: Nothing to be done for `info'.
133 > make[1]: Leaving directory `/var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man'
134 >
135 > !!! ERROR: The ebuild did not complete successfully.
136 > !!! Function src_compile, Line 115, Exitcode 2
137 > !!! (no error message)
138 >
139 > !!! emerge aborting on /usr/portage/app-editors/xemacs/xemacs-21.4.8-r3.ebuild .
140 > <end>
141 >
142 > Any ideas on what's happenning here? I just emerged xfree yesterday (i was console only
143 > before)...i'm thinking that has something to do with the new problems.
144 >
145 > Thanks,
146 >
147 > burton samograd (using nano :-/ )
148 > _______________________________________________
149 > gentoo-dev mailing list
150 > gentoo-dev@g.o
151 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
152 --