Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348559 - dev-lang/erlang-14.2.1 - make[3]: *** [../ebin/hipe_consttab.beam] Aborted
Summary: dev-lang/erlang-14.2.1 - make[3]: *** [../ebin/hipe_consttab.beam] Aborted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Christian Faulhammer (RETIRED)
URL: http://www.erlang.org/cgi-bin/ezmlm-c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-12 20:35 UTC by Henrique Dias
Modified: 2011-01-18 17:38 UTC (History)
14 users (show)

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


Attachments
build.log (build.log,263.46 KB, text/plain)
2010-12-13 20:13 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrique Dias 2010-12-12 20:35:27 UTC
When I try to emerge the dev-lang/erlang-14.2.1 package, the emerge process fails to compile the package.

Reproducible: Always

Steps to Reproduce:
1. emerge erlang
2.
3.

Actual Results:  
=== Entering application hipe
make[3]: Entering directory `/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/lib/hipe/rtl'
(cd ../main && make hipe.hrl)
make[4]: Entering directory `/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/lib/hipe/main'
sed -e "s;%VSN%;3.7.8;" ../../hipe/main/hipe.hrl.src > ../../hipe/main/hipe.hrl
make[4]: Leaving directory `/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/lib/hipe/main'
erlc -W  +debug_info +inline -o../ebin hipe_rtl.erl
*** buffer overflow detected ***: /var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7fc936553cf7]
/lib/libc.so.6(+0xe5b40)[0x7fc936551b40]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam[0x5398e9]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam(erts_write_to_port+0x88a)[0x47e708]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam[0x4d64b2]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam(process_main+0x1d7f)[0x4fc478]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam(erl_start+0x47a)[0x450ccf]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam(main+0x9)[0x4374dd]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fc93648ad2d]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam[0x437439]
======= Memory map: ========
00400000-005b0000 r-xp 00000000 08:08 392715                             /var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam
007af000-007b0000 r--p 001af000 08:08 392715                             /var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam
007b0000-00800000 rw-p 001b0000 08:08 392715                             /var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam
00800000-00862000 rw-p 00000000 00:00 0 
02687000-026ad000 rw-p 00000000 00:00 0                                  [heap]
7fc935f28000-7fc935f3c000 r-xp 00000000 08:02 47698                      /lib64/libgcc_s.so.1
7fc935f3c000-7fc93613c000 ---p 00014000 08:02 47698                      /lib64/libgcc_s.so.1
7fc93613c000-7fc93613d000 r--p 00014000 08:02 47698                      /lib64/libgcc_s.so.1
7fc93613d000-7fc93613e000 rw-p 00015000 08:02 47698                      /lib64/libgcc_s.so.1
7fc93616a000-7fc93646c000 rw-p 00000000 00:00 0 
7fc93646c000-7fc9365c9000 r-xp 00000000 08:02 47682                      /lib64/libc-2.12.1.so
7fc9365c9000-7fc9367c8000 ---p 0015d000 08:02 47682                      /lib64/libc-2.12.1.so
7fc9367c8000-7fc9367cc000 r--p 0015c000 08:02 47682                      /lib64/libc-2.12.1.so
7fc9367cc000-7fc9367cd000 rw-p 00160000 08:02 47682                      /lib64/libc-2.12.1.so
7fc9367cd000-7fc9367d2000 rw-p 00000000 00:00 0 
7fc9367d2000-7fc9367da000 r-xp 00000000 08:02 47219                      /lib64/librt-2.12.1.so
7fc9367da000-7fc9369d9000 ---p 00008000 08:02 47219                      /lib64/librt-2.12.1.so
7fc9369d9000-7fc9369da000 r--p 00007000 08:02 47219                      /lib64/librt-2.12.1.so
7fc9369da000-7fc9369db000 rw-p 00008000 08:02 47219                      /lib64/librt-2.12.1.so
7fc9369db000-7fc9369f2000 r-xp 00000000 08:02 47306                      /lib64/libpthread-2.12.1.so
7fc9369f2000-7fc936bf2000 ---p 00017000 08:02 47306                      /lib64/libpthread-2.12.1.so
7fc936bf2000-7fc936bf3000 r--p 00017000 08:02 47306                      /lib64/libpthread-2.12.1.so
7fc936bf3000-7fc936bf4000 rw-p 00018000 08:02 47306                      /lib64/libpthread-2.12.1.so
7fc936bf4000-7fc936bf8000 rw-p 00000000 00:00 0 
7fc936bf8000-7fc936c0e000 r-xp 00000000 08:02 47231                      /lib64/libz.so.1.2.5
7fc936c0e000-7fc936e0d000 ---p 00016000 08:02 47231                      /lib64/libz.so.1.2.5
7fc936e0d000-7fc936e0e000 r--p 00015000 08:02 47231                      /lib64/libz.so.1.2.5
7fc936e0e000-7fc936e0f000 rw-p 00016000 08:02 47231                      /lib64/libz.so.1.2.5
7fc936e0f000-7fc936e57000 r-xp 00000000 08:02 47218                      /lib64/libncurses.so.5.7
7fc936e57000-7fc937056000 ---p 00048000 08:02 47218                      /lib64/libncurses.so.5.7
7fc937056000-7fc93705a000 r--p 00047000 08:02 47218                      /lib64/libncurses.so.5.7
7fc93705a000-7fc93705b000 rw-p 0004b000 08:02 47218                      /lib64/libncurses.so.5.7
7fc93705b000-7fc93705c000 rw-p 00000000 00:00 0 
7fc93705c000-7fc9370dc000 r-xp 00000000 08:02 47710                      /lib64/libm-2.12.1.so
7fc9370dc000-7fc9372db000 ---p 00080000 08:02 47710                      /lib64/libm-2.12.1.so
7fc9372db000-7fc9372dc000 r--p 0007f000 08:02 47710                      /lib64/libm-2.12.1.so
7fc9372dc000-7fc9372dd000 rw-p 00080000 08:02 47710                      /lib64/libm-2.12.1.so
7fc9372dd000-7fc9372df000 r-xp 00000000 08:02 47726                      /lib64/libdl-2.12.1.so
7fc9372df000-7fc9374df000 ---p 00002000 08:02 47726                      /lib64/libdl-2.12.1.so
7fc9374df000-7fc9374e0000 r--p 00002000 08:02 47726                      /lib64/libdl-2.12.1.so
7fc9374e0000-7fc9374e1000 rw-p 00003000 08:02 47726                      /lib64/libdl-2.12.1.so
7fc9374e1000-7fc9374ef000 r-xp 00000000 08:05 2290437                    /usr/lib64/libsandbox.so
7fc9374ef000-7fc9376ef000 ---p 0000e000 08:05 2290437                    /usr/lib64/libsandbox.so
7fc9376ef000-7fc9376f0000 r--p 0000e000 08:05 2290437                    /usr/lib64/libsandbox.so
7fc9376f0000-7fc9376f1000 rw-p 0000f000 08:05 2290437                    /usr/lib64/libsandbox.so
7fc9376f1000-7fc9376f3000 rw-p 00000000 00:00 0 
7fc9376f3000-7fc937713000 r-xp 00000000 08:02 47317                      /lib64/ld-2.12.1.so
7fc93776f000-7fc9378e6000 rw-p 00000000 00:00 0 
7fc9378e6000-7fc937912000 rw-p 00000000 00:00 0 
7fc937912000-7fc937913000 r--p 0001f000 08:02 47317                      /lib64/ld-2.12.1.so
7fc937913000-7fc937914000 rw-p 00020000 08:02 47317                      /lib64/ld-2.12.1.so
7fc937914000-7fc937915000 rw-p 00000000 00:00 0 
7fffcfc73000-7fffcfc97000 rw-p 00000000 00:00 0                          [stack]
7fffcfd0f000-7fffcfd10000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
make[3]: *** [../ebin/hipe_rtl.beam] Aborted
make[3]: Leaving directory `/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/lib/hipe/rtl'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/lib/hipe'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/lib'
make: *** [secondary_bootstrap_build] Error 2
emake failed
 * ERROR: dev-lang/erlang-14.2.1 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2885:  Called die
 * The specific snippet of code:
 *       emake -j1 || die;
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/erlang-14.2.1',
 * the complete build log and the output of 'emerge -pqv =dev-lang/erlang-14.2.1'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/erlang-14.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/erlang-14.2.1/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01'

>>> Failed to emerge dev-lang/erlang-14.2.1, Log file:

>>>  '/var/tmp/portage/dev-lang/erlang-14.2.1/temp/build.log'

 * Messages for package dev-lang/erlang-14.2.1:

 * ERROR: dev-lang/erlang-14.2.1 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2885:  Called die
 * The specific snippet of code:
 *       emake -j1 || die;
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/erlang-14.2.1',
 * the complete build log and the output of 'emerge -pqv =dev-lang/erlang-14.2.1'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/erlang-14.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/erlang-14.2.1/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01'


# emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 12 Dec 2010 17:00:19 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.3.5, 4.4.5, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 AdobeFlash-10"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://rsync.de.gentoo.org/ 		http://de-mirror.org/distro/gentoo/ 		http://gentoo.mirror.pw.edu.pl/ 		http://gentoo.tiscali.nl/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en pt"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx db dbus dri dts dvd dvdr emboss encode exif fam firefox flac gdbm gif gnome gpm gtk hal iconv jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia%" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Ivan Iraci 2010-12-13 11:10:01 UTC
(In reply to comment #0)
> When I try to emerge the dev-lang/erlang-14.2.1 package, the emerge process
> fails to compile the package.

I had the same problem on a laptop, a server and three vservers.
Comment 2 Dennis Schridde 2010-12-13 20:13:43 UTC
Created attachment 257051 [details]
build.log

I have probably the same problem, though it is not reported as a buffer overflow.
Comment 3 foomor 2010-12-14 08:54:53 UTC
Same problem.

Hope 14.2-r1 will compile successfully
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2010-12-14 17:58:02 UTC
This is caused by FORTIFY_SOURCE=2, which is a security measure....this hides a potential security problem.  Let's wait for upstream.
Comment 5 Dennis Schridde 2010-12-15 10:00:24 UTC
Now I got the backtrace, too:
---
erlc -W  +debug_info +warn_exported_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_consttab.erl
*** buffer overflow detected ***: /var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f047c6c4e37]
/lib/libc.so.6(+0xfcc80)[0x7f047c6c2c80]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp[0x5514e7]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp(erts_write_to_port+0x950)[0x47e340]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp[0x4f49e9]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp(process_main+0x12f8)[0x51d968]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp[0x48a670]
/var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp[0x57b164]
/lib/libpthread.so.0(+0x7965)[0x7f047cb56965]
/lib/libc.so.6(clone+0x6d)[0x7f047c6ab4cd]
======= Memory map: ========
00400000-005c4000 r-xp 00000000 00:11 194726                             /var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp
007c3000-007c4000 r--p 001c3000 00:11 194726                             /var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp
007c4000-0080a000 rw-p 001c4000 00:11 194726                             /var/tmp/portage/dev-lang/erlang-14.2.1/work/otp_src_R14B01/bin/x86_64-pc-linux-gnu/beam.smp
0080a000-00860000 rw-p 00000000 00:00 0 
0270e000-027bf000 rw-p 00000000 00:00 0                                  [heap]
7f047a0aa000-7f047a0bf000 r-xp 00000000 08:13 4156                       /lib64/libgcc_s.so.1
7f047a0bf000-7f047a2be000 ---p 00015000 08:13 4156                       /lib64/libgcc_s.so.1
7f047a2be000-7f047a2bf000 r--p 00014000 08:13 4156                       /lib64/libgcc_s.so.1
7f047a2bf000-7f047a2c0000 rw-p 00015000 08:13 4156                       /lib64/libgcc_s.so.1
7f047a2c0000-7f047a2c1000 ---p 00000000 00:00 0 
7f047a2c1000-7f047aac1000 rw-p 00000000 00:00 0 
7f047aac1000-7f047aac2000 ---p 00000000 00:00 0 
7f047aac2000-7f047b3c3000 rw-p 00000000 00:00 0 
7f047b3c3000-7f047b3c4000 ---p 00000000 00:00 0 
7f047b3c4000-7f047bbc4000 rw-p 00000000 00:00 0 
7f047bbc4000-7f047bbc5000 ---p 00000000 00:00 0 
7f047bbc5000-7f047c5c6000 rw-p 00000000 00:00 0 
7f047c5c6000-7f047c73e000 r-xp 00000000 08:13 132154                     /lib64/libc-2.12.1.so
7f047c73e000-7f047c93d000 ---p 00178000 08:13 132154                     /lib64/libc-2.12.1.so
7f047c93d000-7f047c941000 r--p 00177000 08:13 132154                     /lib64/libc-2.12.1.so
7f047c941000-7f047c942000 rw-p 0017b000 08:13 132154                     /lib64/libc-2.12.1.so
7f047c942000-7f047c947000 rw-p 00000000 00:00 0 
7f047c947000-7f047c94e000 r-xp 00000000 08:13 132200                     /lib64/librt-2.12.1.so
7f047c94e000-7f047cb4d000 ---p 00007000 08:13 132200                     /lib64/librt-2.12.1.so
7f047cb4d000-7f047cb4e000 r--p 00006000 08:13 132200                     /lib64/librt-2.12.1.so
7f047cb4e000-7f047cb4f000 rw-p 00007000 08:13 132200                     /lib64/librt-2.12.1.so
7f047cb4f000-7f047cb66000 r-xp 00000000 08:13 132196                     /lib64/libpthread-2.12.1.so
7f047cb66000-7f047cd65000 ---p 00017000 08:13 132196                     /lib64/libpthread-2.12.1.so
7f047cd65000-7f047cd66000 r--p 00016000 08:13 132196                     /lib64/libpthread-2.12.1.so
7f047cd66000-7f047cd67000 rw-p 00017000 08:13 132196                     /lib64/libpthread-2.12.1.so
7f047cd67000-7f047cd6b000 rw-p 00000000 00:00 0 
7f047cd6b000-7f047cd81000 r-xp 00000000 08:13 132210                     /lib64/libz.so.1.2.5
7f047cd81000-7f047cf80000 ---p 00016000 08:13 132210                     /lib64/libz.so.1.2.5
7f047cf80000-7f047cf81000 r--p 00015000 08:13 132210                     /lib64/libz.so.1.2.5
7f047cf81000-7f047cf82000 rw-p 00016000 08:13 132210                     /lib64/libz.so.1.2.5
7f047cf82000-7f047cfce000 r-xp 00000000 08:13 132180                     /lib64/libncurses.so.5.7
7f047cfce000-7f047d1cd000 ---p 0004c000 08:13 132180                     /lib64/libncurses.so.5.7
7f047d1cd000-7f047d1d1000 r--p 0004b000 08:13 132180                     /lib64/libncurses.so.5.7
7f047d1d1000-7f047d1d2000 rw-p 0004f000 08:13 132180                     /lib64/libncurses.so.5.7
7f047d1d2000-7f047d1d3000 rw-p 00000000 00:00 0 
7f047d1d3000-7f047d255000 r-xp 00000000 08:13 132178                     /lib64/libm-2.12.1.so
7f047d255000-7f047d454000 ---p 00082000 08:13 132178                     /lib64/libm-2.12.1.so
7f047d454000-7f047d455000 r--p 00081000 08:13 132178                     /lib64/libm-2.12.1.so
7f047d455000-7f047d456000 rw-p 00082000 08:13 132178                     /lib64/libm-2.12.1.so
7f047d456000-7f047d458000 r-xp 00000000 08:13 132163                     /lib64/libdl-2.12.1.so
7f047d458000-7f047d658000 ---p 00002000 08:13 132163                     /lib64/libdl-2.12.1.so
7f047d658000-7f047d659000 r--p 00002000 08:13 132163                     /lib64/libdl-2.12.1.so
7f047d659000-7f047d65a000 rw-p 00003000 08:13 132163                     /lib64/libdl-2.12.1.so
7f047d65a000-7f047d669000 r-xp 00000000 fe:00 269135                     /usr/lib64/libsandbox.so
7f047d669000-7f047d868000 ---p 0000f000 fe:00 269135                     /usr/lib64/libsandbox.so
7f047d868000-7f047d869000 r--p 0000e000 fe:00 269135                     /usr/lib64/libsandbox.so
7f047d869000-7f047d86a000 rw-p 0000f000 fe:00 269135                     /usr/lib64/libsandbox.so
7f047d86a000-7f047d86c000 rw-p 00000000 00:00 0 
7f047d86c000-7f047d88e000 r-xp 00000000 08:13 132144                     /lib64/ld-2.12.1.so
7f047d925000-7f047d926000 ---p 00000000 00:00 0 
7f047d926000-7f047d92b000 rw-p 00000000 00:00 0 
7f047d92b000-7f047d92c000 ---p 00000000 00:00 0 
7f047d92c000-7f047da52000 rw-p 00000000 00:00 0 
7f047da52000-7f047da8d000 rw-p 00000000 00:00 0 
7f047da8d000-7f047da8e000 r--p 00021000 08:13 132144                     /lib64/ld-2.12.1.so
7f047da8e000-7f047da8f000 rw-p 00022000 08:13 132144                     /lib64/ld-2.12.1.so
7f047da8f000-7f047da90000 rw-p 00000000 00:00 0 
7fffbd0ed000-7fffbd111000 rw-p 00000000 00:00 0                          [stack]
7fffbd1ff000-7fffbd200000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
make[3]: *** [../ebin/hipe_consttab.beam] Aborted
---
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2010-12-17 15:55:20 UTC
I masked it for now, so less people stumble upon this.  Plus I will nag upstream.
Comment 7 Holger Hoffstätte 2010-12-17 17:13:45 UTC
Could this be another gcc-4.5.1 problem, maybe creating code that trips over fortify instead of segfaulting? Maybe someone who can reproduce the problem could try to rebuild with 4.4.x - that worked just fine for me (on 32bit though).
Comment 8 Ivan Fedorov 2010-12-17 19:43:22 UTC
(In reply to comment #7)
> Could this be another gcc-4.5.1 problem, maybe creating code that trips over
> fortify instead of segfaulting? Maybe someone who can reproduce the problem
> could try to rebuild with 4.4.x - that worked just fine for me (on 32bit
> though).
> 

I'm tried that on gcc 4.4 from ALT Linux on x86_64 - that not gcc 4.5 specific, so I'm just run 'export CFLAGS=" -UFORTIFY_SOURCE"' before build. :(
Comment 9 Arkadiusz Miskiewicz 2011-01-10 18:13:54 UTC
Use http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/erlang/erlang-fortify.patch as a fix.
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2011-01-12 09:36:43 UTC
(In reply to comment #9)
> Use
> http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/erlang/erlang-fortify.patch as
> a fix.

 Thank you very much for the research.
So I committed the patch to the Portage tree.  Please unmask the 14.2.1 and test it.  As soon as some report about successful merges come in I will remove the package.mask entry.  Additionally I informed the -bugs mailing list of Erlang about this patch.

By the way, this will be my last action as Erlang maintainer, I will pass over to djc.
Comment 11 Christian Faulhammer (RETIRED) gentoo-dev 2011-01-12 17:35:03 UTC
Ok, upstream constructed a saner patch for this which will be available in the next couple of days.  So hold your horses as this will only silence FORTIFY_SOURCE without really fixing the issue.
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2011-01-18 15:46:43 UTC
(In reply to comment #11)
> Ok, upstream constructed a saner patch for this which will be available in the
> next couple of days.  So hold your horses as this will only silence
> FORTIFY_SOURCE without really fixing the issue.

 Please unmask erlang 14.2.1 and test it if you had failures before.  As soon as I get positive results (I have no 64bit system with GCC 4.5) it will be unmasked for the wide public.
Comment 13 Fabian Fingerle 2011-01-18 17:14:53 UTC
works for me on amd64 with gcc-4.5.2 (on a test server)

emerge --info:
http://paste.pocoo.org/show/322777/
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2011-01-18 17:38:18 UTC
Thanks for testing, Fabian.  If information is crucial you should not use a pastebin service...but just by the way.