Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119753 - Erlang segfaults without --disable-hipe in configure
Summary: Erlang segfaults without --disable-hipe in configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL: http://www.erlang.org/ml-archive/erla...
Whiteboard:
Keywords:
Depends on: 151612
Blocks:
  Show dependency tree
 
Reported: 2006-01-20 17:12 UTC by Chris Carlin
Modified: 2007-01-01 17:25 UTC (History)
3 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 Chris Carlin 2006-01-20 17:12:41 UTC
I ran into the segfault described in the mailing list entry above. After erlang compiled successfully it would never run, segfaulting every time. When I added --disable-hipe to the configure script the segfaults stopped.

I don't know what specifically about my installation causes this, so here's my emerge --info:

Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.12-gentoo-r10 i586)
=================================================================
System uname: 2.6.12-gentoo-r10 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.6.13
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -Os -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control /var/run/dspam /var/spool/dspam"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k6-2 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo http://distfiles.gentoo.org http://www.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="x86 3dnow X alsa aotuv apache2 apm arts avi berkdb bitmap-fonts bzip2 cli crypt curl curlwrappers dba eds emboss encode exim expat fam follow-xff foomaticdb ftp gd gif gmp gstreamer gtk gtk2 idn imagemagick imap imlib inode ipv6 java jpeg justify kde lcms ldap libg++ libwww lmtp mad maildir mailwrapper matroska matrox mcal md5sum mhash mikmod mmx mng motif mp3 mpeg mpm-prefork ncurses neural nls nptl odbc ogg oggvorbis oss pam passfile pcre pdflib pear perl php png postgres python quicktime readline session spell ssl tcltk tcpd theora threads tidy truetype truetype-fonts type1 type1-fonts udev unicode vorbis xml xml2 xmms xsl zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 George Shapovalov (RETIRED) gentoo-dev 2006-03-15 06:40:40 UTC
Hi Chris.

Thanks for a report and sorry about a delay - there isn't really any dev specifically supporting erlang at the moment unfortunately (I am just trying to keep an eye on "alternative development stuff" when I can spend some time away from my "main" topics). 

1. What erlang version is this? Thanks for posting emerge --info, but could you please be more specific about the erlang?

2. Do you still hit this, with few glibc updates happening since then? 

I added mkennedy and vapier to CC, as they seem to have been dealing with this package the most lately.. 
Matthew, Mike: can you please add yourself to lang-misc herd, probably specifying the <role> as well, so that you will see the bugs on erlang (as bug-wranglers apparently simply assigned this to the first herd mentioned in metadata)?

Downgrading the severity, since critical really is for system packaged and wide and severe breakage..

George
Comment 2 Fredrik Svahn 2006-04-18 23:18:28 UTC
I have the same problem, and I hope I can answer your questions:

1. I am running dev-lang/erlang-10.2.5 but I have also seen it with 10.2.10
 
2. It is still a problem for me. I am running sys-libs/glibc-2.3.5-r3  USE="nls -build -erandom -glibc-compat20 -glibc-omitfp -hardened -linuxthreads-tls -nptl -nptlonly -pic -profile -userlocales

I can also report that adding "--disable-hipe" to the ebuild seems to hide or temporarily solve the problem
tux> diff /usr/portage/dev-lang/erlang/erlang-10.2.5.ebuild /usr/local/portage/dev-lang/erlang/erlang-10.2.5.ebuild
46a47
>               --disable-hipe \

I have seen some indications that this problem is only reproducible on 2.4 kernels, but I am running 2.6.16
tux> uname -a
Linux tux 2.6.16-gentoo-r1 #3 SMP PREEMPT Mon Apr 10 20:17:38 CEST 2006 i686 Intel(R) Celeron(R) M processor         1.30GHz GNU/Linux

BR /Fredrik
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2006-11-07 22:53:07 UTC
Does this still exist with the current unstable?
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2006-11-08 13:21:11 UTC
This is fixed in dev-lang/erlang-11.2.1
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2007-01-01 17:25:30 UTC
all needed arches are stable now, I introduced a hipe USE flag in erlang 11.2.2 which enables hipe...if you do so, it may break -> no complaints to me.