Summary: | app-editors/emacs-21.4-r4 segementation fault if linked with binutils-2.17 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markus Rothe (RETIRED) <corsair> |
Component: | Current packages | Assignee: | ppc64 architecture team <ppc64> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | emacs, toolchain |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emacs-21.4-ppc64-align-jmpbuf.patch
emacs-21.4-ppc64-align-jmpbuf.patch emacs-21.4-ppc64-fix-unexelf.patch |
Description
Markus Rothe (RETIRED)
2006-10-19 13:39:43 UTC
# emerge --info Portage 2.1.1-r1 (default-linux/ppc/ppc64/2006.1/64bit-userland/970, gcc-3.4.6, glibc-2.3.6-r5, 2.6.19-rc2 ppc64) ================================================================= System uname: 2.6.19-rc2 ppc64 PPC970FX, altivec supported Gentoo Base System version 1.12.5 Last Sync: Thu, 19 Oct 2006 17:00:01 +0000 ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] 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.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="ppc64" AUTOCLEAN="yes" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe -mtune=970 -mcpu=970 -mabi=altivec -g" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -mtune=970 -mcpu=970 -mabi=altivec -g" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig cvs distlocks installsources metadata-transfer sandbox sfperms splitdebug strict" GENTOO_MIRRORS="http://mirror.pacific.net.au/linux/Gentoo" LANG="en_US.UTF8" LC_ALL="en_US.UTF8" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc64 X a52 aac aiglx alsa altivec amr apache2 apm asf bash-completion berkdb bitmap-fonts bzip2 ccache cdinstall cdparanoia cdr cli cracklib crypt cups curl cvs dbus dlloader dri dts dv dvd dvdr dvdread eds elibc_glibc emboss enca encode exscalibar ffmpeg flac foomaticdb fortran fping gd gdbm ggi gif gimpprint glib glitz gmp gnokii gnutls gphoto2 gpm graphviz gs gstreamer gtk hal highlight ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux latex ldap libg++ libwww mad matroska mdnsresponder-compat mikmod mjpeg motif mp3 mp4 mpeg mplayer multiuser musicbrainz mysql ncurses network nls no-old-linux nptl nptlonly nsplugin objc objc++ offensive ogg openal opengl pam pcre pdf perl php plotutils png ppds pppd python qt3 qt4 quicktime rdesktop readline reflection ruby samba scanner screen sdl session skins smp spell spl ssl stream subtitles subversion svg tcltk tcpd teamarena tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode upnp usb userland_GNU utempter vcd video_cards_radeon videos vim-pager vorbis wxwindows x264 xcomposite xine xml xorg xscreensaver xv xvid xvmc zeroconf zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY adding emacs alias instead of individual members. adding toolchain to CC, as this seems to be a bug in binutils, as I cannot reproduce this on my ppc machine (apple powerbook). app-editors/emacs-cvs-23.0.0-r1 does not show this behavior. that version runs just fine. corsair, could you try with emacs-cvs-22.0.9999-r1 please? As it will see a release soon, we can probably close this bug then. yes, emacs-cvs-22.0.9999-r1 builds and runs with binutils-2.17. let's wait for the release mark it stabe soon and close this bug. A running emacs can be compiled with the following CFLAGS: CFLAGS="-mno-fp-in-toc -mno-sum-in-toc" Maybe an arch-dependent addition of these CFLAGS should be considered? emerge --info is as follows: Portage 2.1.2-r9 (default-linux/ppc/ppc64/2006.0/64bit-userland/970/pmac, gcc-3.4.6, glibc-2.3.6-r5, 2.6.17-gentoo-r4.omega ppc64) ================================================================= System uname: 2.6.17-gentoo-r4.omega ppc64 PPC970MP, altivec supported Gentoo Base System release 1.12.8 Timestamp of tree: Wed, 28 Feb 2007 17:01:01 +0000 distcc 2.18.3 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="ppc64" AUTOCLEAN="yes" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -pipe -ggdb" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms splitdebug strict" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorse\ rvice.org/sites/www.ibiblio.org/gentoo/ " LINGUAS="en_GB" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --\ exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac alsa altivec apache2 apm arts asf bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cpudetection cracklib crypt cups dbus doc dri dts dv d\ vd dvdread eds emacs emboss encode ffmpeg flac foomaticdb fortran gdbm gif gpm gstreamer gtk hal iconv ieee1394 imlib ipv6 isdnlog jpeg kde lcms ldap libg++ libwww mad mi\ di mikmod mng motif mp3 mpeg ncurses nls nptl nsplugin ogg openal opengl oss pam pcre pdf perl png ppc64 ppds pppd python qt qt3 qt4 quicktime readline reflection rtc sam\ ba sdl session speex spell spl sqlite ssl tcpd tetex tga theora threads tiff truetype truetype-fonts type1-fonts unicode vorbis wmf x264 xchattext xine xinerama xml xorg \ xscreensaver xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null pl\ ug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses\ text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nv fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS (In reply to comment #6) > A running emacs can be compiled with the following CFLAGS: > CFLAGS="-mno-fp-in-toc -mno-sum-in-toc" > Maybe an arch-dependent addition of these CFLAGS should be considered? ppc64 (namely corsair): Do you give your ok for that? Does it work? ppc64 is screwed up in general here ... perhaps a tracker bug should be filed so crappy ppc64 flags dont leak into ebuilds everywhere and get lost in the shuffle this is fixed in emacs-22.0.9999-r1, so I think it is OK to add this CFLAGS for ppc64 only in 21.4-r4. once 22.0 is released, stable on ppc64 and the older version removed we won't have any crap lying around, do we? andrew: good work. thanks for this! (In reply to comment #9) > this is fixed in emacs-22.0.9999-r1, so I think it is OK to add this CFLAGS for > ppc64 only in 21.4-r4. once 22.0 is released, stable on ppc64 and the older > version removed we won't have any crap lying around, do we? That's the way it is. So closing this after CFLAGS additions. > andrew: good work. thanks for this! Yeah! i was talking in more general terms, not just emacs ... like busybox or openssl those added CFLAGS (no longer?) solve the problem for me.. emacs still segfaults for me. Created attachment 117623 [details]
emacs-21.4-ppc64-align-jmpbuf.patch
Could you please try if attached patch fixes the problem?
Created attachment 117625 [details, diff]
emacs-21.4-ppc64-align-jmpbuf.patch
take 2 ...
no, same problem. Created attachment 117646 [details, diff] emacs-21.4-ppc64-fix-unexelf.patch Next attempt, patch taken from Redhat/FC6, see <http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=183304>. (This is like poking with a stick in the dark, could someone give me shell access to a ppc64 system?) patch added. Thanks for spotting it, ulm. marking as FIXED. (In reply to comment #16) > (This is like poking with a stick in the dark, could someone give me shell > access to a ppc64 system?) Will this patch hit upstream? Greetings from sunny California (In reply to comment #18) > Will this patch hit upstream? Since it was backported from Emacs 22, upstream is aware of it. |