First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 122855
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Spell checking utilities and dictionaries -- related bugs <app-dicts@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Thomas Cort (RETIRED) <tcort@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 122855 depends on: Show dependency tree
Show dependency graph
Bug 122855 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-02-14 16:01 0000
aspell segfaults if it is compiled with -Os in CFLAGS on alpha. If aspell is
compiled with -O2, everything works as expected. aspell seems to be very
sensitive to CFLAGS (at least on alpha), see Bug #35238. 

Adding this to the ebuild in src_compile() fixed the problem:

if [ "${ARCH}" == "alpha" ]; then
    replace-flags -Os -O2
fi



The end of "strace aspell" output:

open("/dev/urandom", O_RDONLY)          = 3
read(3, "+Z\232u\344\230\237\217", 8)   = 8
close(3)                                = 0
brk(0)                                  = 0x12002e000
brk(0x120050000)                        = 0x120050000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++



Even when emerge'd with FEATURES="nostrip debug" USE="debug", running "gdb
aspell" only produced this output after SIGSEGV: "Cannot access memory at
address 0x21b90". That same message came up when I tried doing a backtrace.



# emerge info
Portage 2.1_pre3-r1 (!/usr/portage/profiles/default-linux/ppc/2005.1/ppc,
gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r1 ppc)
=================================================================
System uname: 2.6.15-gentoo-r1 ppc 740/750
Gentoo Base System version 1.12.0_pre14
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5, 2.4.2
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=750 -Os -pipe -fno-strict-aliasing -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=750 -Os -pipe -fno-strict-aliasing -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo http://adelie.polymtl.ca/
http://gentoo.cites.uiuc.edu/pub/gentoo/
ftp://gentoo.arcticnetwork.ca/pub/gentoo/"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/exports/nfs/portage/"
PORTDIR_OVERLAY="/exports/nfs/overlay"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="ppc X aac aim alsa audiofile berkdb bitmap-fonts browserplugin bzip2 crypt
cups curl eds emboss encode esd exif expat fam ffmpeg flac gdbm gif glut gnome
gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal icq idn ipv6 jabber java jpeg kde
lcms libwww lua mad mikmod mng mono motif mozilla moznocompose moznoirc
moznomail mp3 mpeg msn ncurses nls nocd nptl nptlonly nsplugin offensive ogg
oggvorbis openal opengl oscar pam pcre pdflib perl png python qt readline ruby
samba sdl shorten sndfile speex spell sqlite ssl symlink tcpd tiff truetype
truetype-fonts type1-fonts udev unicode usb vorbis wxgtk1 xml xml2 xmms xv xvid
yahoo zlib elibc_glibc kernel_linux linguas_en userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS

------- Comment #1 From Thomas Cort (RETIRED) 2006-02-14 16:05:18 0000 -------
I posted the wrong emerge info. Here is the correct emerge info:

Portage 2.1_pre4-r1 (default-linux/alpha/2006.0, gcc-3.4.4, glibc-2.3.5-r3,
2.6.16-rc2 alpha)
=================================================================
System uname: 2.6.16-rc2 alpha EV56
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 alpha-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="alpha ~alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -Os -mcpu=ev56 -pipe"
CHOST="alpha-unknown-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/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mieee -Os -mcpu=ev56 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo
http://gentoo.cites.uiuc.edu/pub/gentoo/ http://adelie.polymtl.ca/
http://distfiles.gentoo.org ftp://gentoo.arcticnetwork.ca/pub/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="alpha X aac aim alsa apache2 arts audiofile bash-completion berkdb
bitmap-fonts bzip2 cdr crypt cups eds encode esd flac foomaticdb gcj gdbm gif
glut gnome gpm gstreamer gtk gtk2 icq imlib ipv6 jabber jpeg kde libg++ libwww
lua mad mikmod motif mp3 mpeg msn ncurses nls nocd nptl nptlonly offensive ogg
oggvorbis openal opengl oscar oss pam pcre pdflib perl png python qt quicktime
readline sdl shorten sndfile spell ssl symlink tcpd truetype truetype-fonts
type1-fonts udev vorbis xml xmms xv xvid yahoo zlib elibc_glibc kernel_linux
linguas_en userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL

------- Comment #2 From Thomas Cort (RETIRED) 2006-02-20 08:27:01 0000 -------
aspell-0.60.3 and aspell-0.60.4 both don't segfault when compiled with -Os. I
did a diff between 0.50.5-r4 and 0.60.3 to try to figure out where the problem
came from, but there were some massive changes (the diff for aspell.cpp alone
is >3000 lines) and I don't know the aspell code well enough to find the
problem.

------- Comment #3 From Anders Rune Jensen (RETIRED) 2006-03-19 11:22:09 0000 -------
Thanks fixed

First Last Prev Next    No search results available      Search page      Enter new bug