Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 412553

Summary: Segmentation fault compiling any app-dicts/aspell-foo under PPC
Product: Gentoo Linux Reporter: Maurizio Camisaschi (amd64 AT) <k01>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: jeremy_just, madcored, ppc64, ppc
Priority: Normal    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Maurizio Camisaschi (amd64 AT) 2012-04-18 19:01:26 UTC
/usr/bin/prezip-bin -d < it.cwl | /usr/bin/aspell  --lang=it create master ./it.rws
/bin/sh: line 1:  3719 Done                    /usr/bin/prezip-bin -d < it.cwl
      3720 Segmentation fault      | /usr/bin/aspell --lang=it create master ./it.rws
make: *** [it.rws] Error 139
emake failed


actually on my ppc32 system i can't compile any of app-dicts/aspell-foo, i've to downgrade to the previous version of app-text/aspell to don't hit this problem (previous ebuilds just removed from portage a couple of hours ago).


Portage 2.1.10.49 (default/linux/powerpc/ppc32/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.2.1-gentoo-r2 ppc)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-ppc-7447A,_altivec_supported-with-gentoo-2.0.3
Timestamp of tree: Tue, 17 Apr 2012 16:05:01 +0000
distcc 3.1 powerpc-unknown-linux-gnu [enabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo zugaina
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/zugaina"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl altivec apache2 berkdb bzip2 cli color cracklib crypt cups cxx dri foomaticdb fortran gdbm gpm iconv ipv6 modules mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre php ppc ppds pppd readline samba server session ssl sysfs tcpd unicode web webinterface webserver xml xorg zip zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Maurizio Camisaschi (amd64 AT) 2012-04-18 19:02:44 UTC
Created attachment 309451 [details]
build.log
Comment 2 Maurizio Camisaschi (amd64 AT) 2012-04-18 19:03:44 UTC
backtrace from gdb:

#0  0x0ff6e910 in void acommon::free_norm_table<acommon::FromUniNormEntry>(acommon::NormTable<acommon::FromUniNormEntry>*) () from /usr/lib/libaspell.so.15
#1  0x0ff6e940 in void acommon::free_norm_table<acommon::FromUniNormEntry>(acommon::NormTable<acommon::FromUniNormEntry>*) () from /usr/lib/libaspell.so.15
#2  0x0ff68d7c in acommon::NormTables::~NormTables() () from /usr/lib/libaspell.so.15
#3  0x0ff68eb8 in acommon::NormTables::~NormTables() () from /usr/lib/libaspell.so.15
#4  0x0ff4c8d8 in acommon::GlobalCacheBase::release(acommon::Cacheable*) () from /usr/lib/libaspell.so.15
#5  0x0ff4ca60 in acommon::release_cache_data(acommon::GlobalCacheBase*, acommon::Cacheable const*) () from /usr/lib/libaspell.so.15
#6  0x0ff68aec in acommon::Convert::~Convert() () from /usr/lib/libaspell.so.15
#7  0x0ffa6c3c in aspeller::Language::~Language() () from /usr/lib/libaspell.so.15
#8  0x0ff4c8d8 in acommon::GlobalCacheBase::release(acommon::Cacheable*) () from /usr/lib/libaspell.so.15
#9  0x0ff4ca60 in acommon::release_cache_data(acommon::GlobalCacheBase*, acommon::Cacheable const*) () from /usr/lib/libaspell.so.15
#10 0x0ff7d4cc in aspeller::create_default_readonly_dict(acommon::StringEnumeration*, acommon::Config&) () from /usr/lib/libaspell.so.15
#11 0x1000a334 in ?? ()
#12 0x10015e6c in ?? ()
#13 0x0fbff214 in ?? () from /lib/libc.so.6
#14 0x0fbff3a4 in __libc_start_main () from /lib/libc.so.6
#15 0x00000000 in ?? ()
Comment 3 Laurent G. 2012-05-20 17:24:05 UTC
Same problem here.

emerge --info
Portage 2.2.0_alpha107 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.2.11-gentoo-l3 ppc)
=================================================================
System uname: Linux-3.2.11-gentoo-l3-ppc-7447A,_altivec_supported-with-gentoo-2.1
Timestamp of tree: Sun, 20 May 2012 14:35:01 +0000
distcc 3.1 powerpc-unknown-linux-gnu [enabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo stuff qt local
Installed sets: 
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=G4 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=G4 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
DISTDIR="/in_n_outs/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ "
LANG="fr_FR.UTF8"
LC_ALL="fr_FR.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/in_n_outs/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/stuff /var/lib/layman/qt /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl alsa altivec apache2 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cscope cups cxx dba dbus dri dts dvd dvdr emboss encode exif fam fbcon filter flac flash fortran gb gcj gd gdbm gif gnome gpm gtk gtk2 iconv ipv6 java jikes jpeg kde kdehiddenvisibility kpathsea lcms ldap libnotify mad mng modules mozdevelop mozsvg mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin objc ogg oggvorbis opengl openmp pam pango pcre pdf pdflib perl png policykit povray ppc ppds pppd private-headers python qt qt3support qt4 readline samba sasl scanner sdl session speex spell ssl startup-notification svg tcpd theora threads tiff tk truetype udev udisks unicode upower usb vorbis wmf wxwidgets xcb xinerama xml xml2 xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="snd-aoa" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi krita sheets stage words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati fbdev radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Sean McGovern 2012-09-21 03:58:08 UTC
This is optimization related -- compiling aspell 0.60.6.1 locally with the default of -O2 reproduces the crash. Removing -O2 from CFLAGS and CXXFLAGS allows it to succeed with aspell6-en.
Comment 5 Sean McGovern 2013-05-07 15:15:03 UTC
I've only been able to reproduce this on my Gentoo PPC box -- attempts to reproduce it on a RedHat ppc64 machine with the same glibc version (2.16) have been unsuccessful with a 32 or 64 bit build.
Comment 6 Pacho Ramos gentoo-dev 2014-01-05 11:48:11 UTC
(In reply to Sean McGovern from comment #4)
> This is optimization related -- compiling aspell 0.60.6.1 locally with the
> default of -O2 reproduces the crash. Removing -O2 from CFLAGS and CXXFLAGS
> allows it to succeed with aspell6-en.

Are you still hitting this with latest gcc and newer glibc?
Comment 7 Jérémy Just 2014-10-13 19:27:07 UTC
(In reply to Pacho Ramos from comment #6)
> Are you still hitting this with latest gcc and newer glibc?

  Yes, it's still impossible to build aspell-en when aspell has been compiled with

 CFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"

while everything goes smoothly with CFLAGS="".

  I've just found the trick here
https://forums.gentoo.org/viewtopic-t-499881.html
So I created a file /etc/portage/env/app-text/aspell containing:

<<<<<
CFLAGS=""
CXXFLAGS="${CFLAGS}"
>>>>>

  Now that works, but it looks like a workaround.


=================================================================
Portage 2.2.8-r2 (hardened/linux/powerpc/ppc32, gcc-4.7.3, glibc-2.19-r1, 3.5.7-gentoo ppc)

System uname: Linux-3.5.7-gentoo-ppc-7447A,_altivec_supported-with-gentoo-2.2
Timestamp of tree: Mon, 13 Oct 2014 17:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r1
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1