Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126116 - emerge cscope-15.5-r4 fails; segmentation fault (gcc-4.1, glibc-2.4) (segfault)
Summary: emerge cscope-15.5-r4 fails; segmentation fault (gcc-4.1, glibc-2.4) (segfault)
Status: RESOLVED DUPLICATE of bug 136987
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
: 136054 143410 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-13 21:22 UTC by Ryan Chapman
Modified: 2006-08-10 11:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Chapman 2006-03-13 21:22:29 UTC
Tried re-emerging emacs and revdep-rebuild, multiple times, after reboots, w/
or w/o X running (trying to scramble the memory allocations to ensure its not a
memory error).  Always the same outcome as indicated below:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -c `test -f 'egrep.c' || echo './'`egrep.c
i686-pc-linux-gnu-gcc  -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args   -o cscope  fscanner.o egrep.o alloc.o basename.o build.o command.o compath.o crossref.o dir.o display.o edit.o exec.o find.o help.o history.o input.o invlib.o logdir.o lookup.o main.o mouse.o mygetenv.o mypopen.o vpaccess.o vpfopen.o vpinit.o vpopen.o -lncurses -lfl
make[2]: Leaving directory `/var/tmp/portage/cscope-15.5-r4/work/cscope-15.5/src'
Making all in contrib
make[2]: Entering directory `/var/tmp/portage/cscope-15.5-r4/work/cscope-15.5/contrib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/cscope-15.5-r4/work/cscope-15.5/contrib'
make[2]: Entering directory `/var/tmp/portage/cscope-15.5-r4/work/cscope-15.5'
make[2]: Leaving directory `/var/tmp/portage/cscope-15.5-r4/work/cscope-15.5'
make[1]: Leaving directory `/var/tmp/portage/cscope-15.5-r4/work/cscope-15.5'
Fatal error (11)./usr/portage/eclass/elisp-common.eclass: line 14:  6385 Segmentation fault      /usr/bin/emacs --batch -f batch-byte-compile --no-site-file --no-init-file $*

!!! ERROR: dev-util/cscope-15.5-r4 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile

------------------------------------------------------
# emerge --info
Portage 2.1_pre6-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r0, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X acpi aim alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts browserplugin bzip2 calendar cdr clamav cli cpdflib crypt cscope ctype cups dba dbx dio dlloader dmx doc dri eds emacs emacs-w3 emboss encode esd examples expat fastbuild flac foomaticdb force-cgi-redirect fortran ftp gcj gd gdbm gif gnutls gpm gstreamer gtk gtk2 hpoj icq imap imlib innodb ipv6 ithreads java jpeg junit kde kdeenablefinal kdexdeltas kerberos ldap libg++ libwww mad maildir memlimit mikmod mmx motif mozilla mp3 mpeg mysql mysqli ncurses nls nptl nptlonly nsplugin oav odbc offensive ofx ogg opengl oscar oss pam pam-mysql pcntl pcre pdflib pdo-external pear perl php pic plotutils png posix postgres ppds python qt quicktime readline ruby sasl scanner sdk sdl session sharedext simplexml slp soap sockets spell spl sqlite sse ssl svg svga symlink tcltk tcpd threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev usb usepackagedmakefiles vhosts vorbis x86 xine xml xml2 xmms xsl xv yahoo zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_vga"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Ryan Chapman 2006-03-13 21:24:11 UTC
# emacs -version
GNU Emacs 21.4.1
Comment 2 Kelvie Wong 2006-04-24 21:30:34 UTC
(In reply to comment #1)
> # emacs -version
> GNU Emacs 21.4.1
> 

I can confirm.

$ emerge --info
Portage 2.1_pre6-r3 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.15-suspend2-r5 i686)
=================================================================
System uname: 2.6.15-suspend2-r5 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer -finline-functions -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer -finline-functions -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-custom"
SYNC="rsync://192.168.1.100/gentoo-portage"
USE="x86 7zip X a52 aac aalib acpi alsa anthy apm asf auctex avi bash-completion berkdb bidi bitmap-fonts browserplugin bzip2 bzlib cairo canna cddb cdio cdr cdrom chroot cjk cli codecs cracklib crypt cscope css cups directfb divx4linux doc dri dvd dvdr dvdread eds emacs emacs-w3 emboss encode examples extensions fastcgi fbcon ffmpeg flac foomaticdb fortran freetype freewnn ftp gda gdbm gif gimp gimpprint glitz glut gnome gnutls gphoto2 gpm gs gstreamer gtk gtk2 gvim gzip hal httpd ide imagemagick imlib immqt-bc ipv6 isdnlog java javascript joystick jpeg k3b kde kdeenablefinal lapack latex libcaca libedit libg++ libwww live mad matroska mikmod mime mixer mmap mmx mng mod mono motif mozilla mp3 mpeg mpeg4 mplayer mppe-mppc msn msnextras mule ncurses net nls nocd nowin nptl nptlonly nsplugin ogg oggvorbis opengl openssl oracle oss pam pdf pdflib perl pertty php pic plotutils png posix ppds pppd print python qemu-fast qt quicktime quinnstorm readline real ruby samba screen sdk sdl shared slp speex spell ssl stream svg svga szip tcpd tetex text tga theora tidy tiff truetype truetype-fonts type1-fonts underscores unicode usb userlocales utf8 v4l v4l2 vcd vim-pager vim-with-x vlm vorbis wifi win32codecs wxwindows xanim xcomposite xemacs xinerama xml xml2 xmms xosd xpm xprint xscreensaver xv xvid yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_joystick kernel_linux userland_GNU video_cards_radeon video_cards_ati video_cards_fglrx video_cards_vga video_cards_vesa video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS

And as well, on this box:

$ emerge --info

Portage 2.0.54 (default-linux/x86/2005.1, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo-r1 i686)
=================================================================
System uname: 2.6.16-gentoo-r1 i686 AMD Athlon(tm) XP  1700+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -finline-functions -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -finline-functions -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo http://gentoo.mirrors.pair.com/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en_CA en_US en ja zh_TW zh_HK.big5hkscs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip GAPING_SECURITY_HOLE X aalib acl acpi alsa amd apm auctex audiofile avi bash-completion berkdb bitmap-fonts bzip2 c++ canna cddb cdr cdrom chroot cjk cli crypt cscope cups curl curlwrappers dedicated dio disk-cache doc dri dv dvb dvd dvdr eds emacs emacs-w3 emboss encode erandom examples exif expat fam ffmpeg flac foomaticdb fortran ftp fuse gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gvim gzip icq idn ieee1394 imagemagick imlib immqt-bc inode ipv6 isdnlog java javascript jpeg latex lcms libcaca libedit libg++ libwww mad matroska memlimit mhash mikmod mmx mng mono motif mozilla mp3 mpeg msn mule nas ncurses netboot nls nocd nptl nptlonly nsplugin ntfs ogg oggvorbis opengl oss pam pcre pdf pdflib perl php plotutils png ppds pppd python qt quicktime readline recode reflection reiserfs samba screen sdl server session shorten spell spl sse sse2 ssl svg tcltk tcpd tetex text theora tiff truetype truetype-fonts type1-fonts udev uim unicode usb userlocales utf8 v4l vcd vim vnc vorbis wifi win32codecs wxwindows xfs xim xine xml2 xmms xorg xosd xprint xv xvid zip zlib linguas_en_CA linguas_en_US linguas_en linguas_ja linguas_zh_TW linguas_zh_HK.big5hkscs userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS

emacs version 21.4-r3 and 21.4-r1, respectively.

Works completely fine on my amd64 dual core opteron, with gcc 3.4.6-r1 and same glibc, ironically (this box has emacs-21.4-r3).

I seem to recall another instance of it segfaulting with emacs
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2006-04-25 00:31:11 UTC
Is it just cscope? Or do emacs extensions (eg. from app-emacs/) exhibit the same behaviour when compiled in general.  What is the result of trying to byte compile an emacs extension outside of portage (ie. manually)
Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2006-05-15 09:14:25 UTC
Also, have you tried with CFLAGS="-march=i686 -O2 -pipe"?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-06-08 04:18:34 UTC
*** Bug 136054 has been marked as a duplicate of this bug. ***
Comment 6 john s j anderson 2006-06-08 08:41:41 UTC
(In reply to comment #4)
> Also, have you tried with CFLAGS="-march=i686 -O2 -pipe"?

I was having this problem with Subversion -- emacs would segfault while attempting to byte-compile duing the subversion emerge.

Doing a

CFLAGS="-O2 -pipe" emerge -av emacs subversion

allowed the subversion emerge to complete.

Previous CFLAGS for the emacs build were CFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe"

Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-08-10 00:46:50 UTC
*** Bug 143410 has been marked as a duplicate of this bug. ***
Comment 8 Matthew Kennedy (RETIRED) gentoo-dev 2006-08-10 11:32:47 UTC
I think this is a dup of 136987.  The problem is not with the port you're compiling (eg. subversion, xcscope etc.) but with how emacs was built in the first place.

*** This bug has been marked as a duplicate of 136987 ***