public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] emacs segfaults
@ 2002-08-01 20:33 Burton Samograd
  2002-08-02  0:25 ` Spider
  2002-08-04  8:18 ` Matthew Kennedy
  0 siblings, 2 replies; 8+ messages in thread
From: Burton Samograd @ 2002-08-01 20:33 UTC (permalink / raw
  To: gentoo-dev

I just did an update and now for some reason my emacs is segfaulting at 
startup.  I've tried unmerging it and installing different versions with 
no luck.  And, as luck would have it, the xemacs build script seems to have
problems too.

Here's an strace of emacs starting up:

<snip beginning>

open("/usr/X11R6/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
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
fstat64(3, {st_mode=S_IFREG|0755, st_size=1485302, ...}) = 0
old_mmap(NULL, 1340928, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4dbad000
mprotect(0x4dceb000, 38400, PROT_NONE)  = 0
old_mmap(0x4dceb000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13d000) = 0x4dceb000
old_mmap(0x4dcf1000, 13824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4dcf1000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4dcf5000
open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
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
fstat64(3, {st_mode=S_IFREG|0755, st_size=11752, ...}) = 0
old_mmap(NULL, 11488, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4dcf6000
mprotect(0x4dcf8000, 3296, PROT_NONE)   = 0
old_mmap(0x4dcf8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x4dcf8000
close(3)                                = 0
mprotect(0x4daa4000, 57344, PROT_READ|PROT_WRITE) = 0
mprotect(0x4daa4000, 57344, PROT_READ|PROT_EXEC) = 0
munmap(0x4d9f8000, 24586)               = 0
getrlimit(0x3, 0xbff4fba0)              = 0
setrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
 
<end>

and here's the output from "emerge xemacs"

<snip common autoconf output>
XEmacs 21.4.8 "Honest Recruiter" configured for `i686-pc-linux'.


Compilation / Installation:
  Source code location:              /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8
  Installation prefix:               /usr
  Operating system description file: `s/linux.h'
  Machine description file:          `m/intel386.h'
  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
  Relocating allocator for buffers:  no
  GNU version of malloc:             yes
    - Using Doug Lea's new malloc from the GNU C Library.
  Linking with `-z nocombreloc'.
    - Consider configuring with --pdump.

Window System:
  Compiling in support for the X window system:
    - X Windows headers location:                 /usr/X11R6/include
    - X Windows libraries location:               /usr/X11R6/lib
    - Handling WM_COMMAND properly.
  Using Lucid menubars.
  Using Lucid scrollbars.
  Using Motif dialog boxes.
  Using Motif native widgets.

TTY:
  Compiling in support for ncurses.
  Compiling in support for GPM (General Purpose Mouse).

Images:
  Compiling in support for XPM  images.
  Compiling in support for PNG  images.
  Compiling in support for JPEG images.
  Compiling in support for TIFF images.

Sound:
  Compiling in support for sound (native).

Databases:
  Compiling in support for GNU DBM.

Internationalization:

Mail:
  Compiling in support for POP mail retrieval.
  Compiling in support for "dot-locking" mail spool file locking method.

Other Features:
  Inhibiting IPv6 canonicalization at startup.
  Compiling in support for dynamic shared object modules.


creating ./config.status
creating Makefile.in
creating lib-src/Makefile.in
creating lwlib/Makefile.in
creating src/Makefile.in
creating src/paths.h
creating lib-src/config.values
creating lib-src/ellcc.h
creating src/config.h
creating lwlib/config.h
creating ./Makefile
creating ./GNUmakefile
creating lib-src/Makefile
creating lib-src/GNUmakefile
creating lwlib/Makefile
creating lwlib/GNUmakefile
creating src/Makefile
creating src/GNUmakefile
Producing `src/Emacs.ad.h' from `etc/Emacs.ad'.
Resetting `src/sheap-adjust.h'.
Building finder database ...
cd /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man && make info
/bin/sh: /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/src/xemacs: No such file or directory
make: *** [lisp/finder-inf.el] Error 127
make: *** Waiting for unfinished jobs....
make[1]: Entering directory `/var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make[1]: Nothing to be done for `info'.
make[1]: Leaving directory `/var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man'

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 115, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/app-editors/xemacs/xemacs-21.4.8-r3.ebuild .
<end>

Any ideas on what's happenning here?  I just emerged xfree yesterday (i was console only
before)...i'm thinking that has something to do with the new problems.

Thanks,

burton samograd (using nano :-/ )


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] emacs segfaults
  2002-08-01 20:33 [gentoo-dev] emacs segfaults Burton Samograd
@ 2002-08-02  0:25 ` Spider
  2002-08-02  8:45   ` Burton Samograd
  2002-08-04  8:18 ` Matthew Kennedy
  1 sibling, 1 reply; 8+ messages in thread
From: Spider @ 2002-08-02  0:25 UTC (permalink / raw
  To: Burton Samograd; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]




begin  quote
On Thu, 1 Aug 2002 13:33:17 -0700
Burton Samograd <kruhft@kruhft.dyndns.org> wrote:

> I just did an update and now for some reason my emacs is segfaulting
> at startup.  I've tried unmerging it and installing different versions
> with no luck.  And, as luck would have it, the xemacs build script
> seems to have problems too.
> 
> Here's an strace of emacs starting up:
> 

Give it a try without -funroll-loops.
it appears that  mkennedy and carpaski came to the conclusion that this
was the bad flag today. 

not much, but it might help.

//Spider


--
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] emacs segfaults
  2002-08-02  0:25 ` Spider
@ 2002-08-02  8:45   ` Burton Samograd
  2002-08-02  9:39     ` Kim Nielsen
                       ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Burton Samograd @ 2002-08-02  8:45 UTC (permalink / raw
  To: Spider; +Cc: gentoo-dev

I tried that and it didn't seem to make any difference...any other ideas?

On Fri, Aug 02, 2002 at 02:25:44AM +0200, Spider wrote:
> 
> 
> 
> begin  quote
> On Thu, 1 Aug 2002 13:33:17 -0700
> Burton Samograd <kruhft@kruhft.dyndns.org> wrote:
> 
> > I just did an update and now for some reason my emacs is segfaulting
> > at startup.  I've tried unmerging it and installing different versions
> > with no luck.  And, as luck would have it, the xemacs build script
> > seems to have problems too.
> > 
> > Here's an strace of emacs starting up:
> > 
> 
> Give it a try without -funroll-loops.
> it appears that  mkennedy and carpaski came to the conclusion that this
> was the bad flag today. 
> 
> not much, but it might help.
> 
> //Spider
> 
> 
> --
> begin  .signature
> This is a .signature virus! Please copy me into your .signature!
> See Microsoft KB Article Q265230 for more information.
> end




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] emacs segfaults
  2002-08-02  8:45   ` Burton Samograd
@ 2002-08-02  9:39     ` Kim Nielsen
  2002-08-02  9:59     ` Jorge Schramm
  2002-08-02 10:48     ` Martijn Koster
  2 siblings, 0 replies; 8+ messages in thread
From: Kim Nielsen @ 2002-08-02  9:39 UTC (permalink / raw
  To: gentoo-dev

On Fri, 2002-08-02 at 10:45, Burton Samograd wrote:
> I tried that and it didn't seem to make any difference...any other ideas?

Could you paste an output of 

gdb emacs

...
..
.
signal 11
where

and an output of ldd emacs

/Kim



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] emacs segfaults
  2002-08-02  8:45   ` Burton Samograd
  2002-08-02  9:39     ` Kim Nielsen
@ 2002-08-02  9:59     ` Jorge Schramm
  2002-08-02 10:48     ` Martijn Koster
  2 siblings, 0 replies; 8+ messages in thread
From: Jorge Schramm @ 2002-08-02  9:59 UTC (permalink / raw
  To: gentoo-dev

On Friday 02 August 2002 10:45, Burton Samograd wrote:
> I tried that and it didn't seem to make any difference...any other ideas?

I had also segfault at startup:
Fatal error (11).Segmentation fault

Recompiled it with -O2 and now it runs.

Jorge



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] emacs segfaults
  2002-08-02  8:45   ` Burton Samograd
  2002-08-02  9:39     ` Kim Nielsen
  2002-08-02  9:59     ` Jorge Schramm
@ 2002-08-02 10:48     ` Martijn Koster
  2002-08-03 17:53       ` Burton Samograd
  2 siblings, 1 reply; 8+ messages in thread
From: Martijn Koster @ 2002-08-02 10:48 UTC (permalink / raw
  To: Burton Samograd; +Cc: gentoo-dev

On Friday 02 August 2002 9:45 am, Burton Samograd wrote:
>  any other ideas?

This is being discussed in the bug db, 
http://bugs.gentoo.org/show_bug.cgi?id=5816
I just posted a workaround you might want to give a try.

-- Martijn




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] emacs segfaults
  2002-08-02 10:48     ` Martijn Koster
@ 2002-08-03 17:53       ` Burton Samograd
  0 siblings, 0 replies; 8+ messages in thread
From: Burton Samograd @ 2002-08-03 17:53 UTC (permalink / raw
  To: Martijn Koster; +Cc: gentoo-dev

I've tried a number of things (changing optimizations, USE variables, changed the ebuild, etc) 
many different ways, but nothing seems to work :-/  The whole problem started after I 
installed X, so I don't know if that has anything to do with it.  I think i might just do a manual
build myself from the distribution source tarballs to see if the ebuild is doing something 
wierd that might be causing some problems.  Of course it could just be another damn gcc 3.1 
bug (should have never switched) which seem to be cropping up left right and center on my 
machine...

burton

On Fri, Aug 02, 2002 at 11:48:28AM +0100, Martijn Koster wrote:
> On Friday 02 August 2002 9:45 am, Burton Samograd wrote:
> >  any other ideas?
> 
> This is being discussed in the bug db, 
> http://bugs.gentoo.org/show_bug.cgi?id=5816
> I just posted a workaround you might want to give a try.
> 
> -- Martijn
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] emacs segfaults
  2002-08-01 20:33 [gentoo-dev] emacs segfaults Burton Samograd
  2002-08-02  0:25 ` Spider
@ 2002-08-04  8:18 ` Matthew Kennedy
  1 sibling, 0 replies; 8+ messages in thread
From: Matthew Kennedy @ 2002-08-04  8:18 UTC (permalink / raw
  To: gentoo-dev

As mentioned on http://bugs.gentoo.org/show_bug.cgi?id=5816 it's a
problem with sandbox and glibc.

The work around is 

  FEATURES=-sandbox emerge emacs

Matt


On Thu, 2002-08-01 at 15:33, Burton Samograd wrote:
> I just did an update and now for some reason my emacs is segfaulting at 
> startup.  I've tried unmerging it and installing different versions with 
> no luck.  And, as luck would have it, the xemacs build script seems to have
> problems too.
> 
> Here's an strace of emacs starting up:
> 
> <snip beginning>
> 
> open("/usr/X11R6/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/lib/libc.so.6", O_RDONLY)        = 3
> 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
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1485302, ...}) = 0
> old_mmap(NULL, 1340928, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4dbad000
> mprotect(0x4dceb000, 38400, PROT_NONE)  = 0
> old_mmap(0x4dceb000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13d000) = 0x4dceb000
> old_mmap(0x4dcf1000, 13824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4dcf1000
> close(3)                                = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4dcf5000
> open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/lib/libdl.so.2", O_RDONLY)       = 3
> 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
> fstat64(3, {st_mode=S_IFREG|0755, st_size=11752, ...}) = 0
> old_mmap(NULL, 11488, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4dcf6000
> mprotect(0x4dcf8000, 3296, PROT_NONE)   = 0
> old_mmap(0x4dcf8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x4dcf8000
> close(3)                                = 0
> mprotect(0x4daa4000, 57344, PROT_READ|PROT_WRITE) = 0
> mprotect(0x4daa4000, 57344, PROT_READ|PROT_EXEC) = 0
> munmap(0x4d9f8000, 24586)               = 0
> getrlimit(0x3, 0xbff4fba0)              = 0
> setrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
> --- SIGSEGV (Segmentation fault) ---
> +++ killed by SIGSEGV +++
>  
> <end>
> 
> and here's the output from "emerge xemacs"
> 
> <snip common autoconf output>
> XEmacs 21.4.8 "Honest Recruiter" configured for `i686-pc-linux'.
> 
> 
> Compilation / Installation:
>   Source code location:              /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8
>   Installation prefix:               /usr
>   Operating system description file: `s/linux.h'
>   Machine description file:          `m/intel386.h'
>   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
>   Relocating allocator for buffers:  no
>   GNU version of malloc:             yes
>     - Using Doug Lea's new malloc from the GNU C Library.
>   Linking with `-z nocombreloc'.
>     - Consider configuring with --pdump.
> 
> Window System:
>   Compiling in support for the X window system:
>     - X Windows headers location:                 /usr/X11R6/include
>     - X Windows libraries location:               /usr/X11R6/lib
>     - Handling WM_COMMAND properly.
>   Using Lucid menubars.
>   Using Lucid scrollbars.
>   Using Motif dialog boxes.
>   Using Motif native widgets.
> 
> TTY:
>   Compiling in support for ncurses.
>   Compiling in support for GPM (General Purpose Mouse).
> 
> Images:
>   Compiling in support for XPM  images.
>   Compiling in support for PNG  images.
>   Compiling in support for JPEG images.
>   Compiling in support for TIFF images.
> 
> Sound:
>   Compiling in support for sound (native).
> 
> Databases:
>   Compiling in support for GNU DBM.
> 
> Internationalization:
> 
> Mail:
>   Compiling in support for POP mail retrieval.
>   Compiling in support for "dot-locking" mail spool file locking method.
> 
> Other Features:
>   Inhibiting IPv6 canonicalization at startup.
>   Compiling in support for dynamic shared object modules.
> 
> 
> creating ./config.status
> creating Makefile.in
> creating lib-src/Makefile.in
> creating lwlib/Makefile.in
> creating src/Makefile.in
> creating src/paths.h
> creating lib-src/config.values
> creating lib-src/ellcc.h
> creating src/config.h
> creating lwlib/config.h
> creating ./Makefile
> creating ./GNUmakefile
> creating lib-src/Makefile
> creating lib-src/GNUmakefile
> creating lwlib/Makefile
> creating lwlib/GNUmakefile
> creating src/Makefile
> creating src/GNUmakefile
> Producing `src/Emacs.ad.h' from `etc/Emacs.ad'.
> Resetting `src/sheap-adjust.h'.
> Building finder database ...
> cd /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man && make info
> /bin/sh: /var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/src/xemacs: No such file or directory
> make: *** [lisp/finder-inf.el] Error 127
> make: *** Waiting for unfinished jobs....
> make[1]: Entering directory `/var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man'
> make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
> make[1]: Nothing to be done for `info'.
> make[1]: Leaving directory `/var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8/man'
> 
> !!! ERROR: The ebuild did not complete successfully.
> !!! Function src_compile, Line 115, Exitcode 2
> !!! (no error message)
> 
> !!! emerge aborting on  /usr/portage/app-editors/xemacs/xemacs-21.4.8-r3.ebuild .
> <end>
> 
> Any ideas on what's happenning here?  I just emerged xfree yesterday (i was console only
> before)...i'm thinking that has something to do with the new problems.
> 
> Thanks,
> 
> burton samograd (using nano :-/ )
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
-- 



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-08-04  8:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-01 20:33 [gentoo-dev] emacs segfaults Burton Samograd
2002-08-02  0:25 ` Spider
2002-08-02  8:45   ` Burton Samograd
2002-08-02  9:39     ` Kim Nielsen
2002-08-02  9:59     ` Jorge Schramm
2002-08-02 10:48     ` Martijn Koster
2002-08-03 17:53       ` Burton Samograd
2002-08-04  8:18 ` Matthew Kennedy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox