Summary: | dev-lang/erlang-14.2.1 - make[3]: *** [../ebin/hipe_consttab.beam] Aborted | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Henrique Dias <henrique.ribeiro.dias> |
Component: | [OLD] Development | Assignee: | Christian Faulhammer (RETIRED) <fauli> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | bugs+gentoo, chris, dliana, dschridde+gentoobugs, fabian, foomor, holger, lang-misc+disabled, modelnine, oxyum, rajat.vig, roamingangel, skrattaren, teidakankan |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.erlang.org/cgi-bin/ezmlm-cgi?2:mss:2135:bdnooaggpdnbokaboakj | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Henrique Dias
2010-12-12 20:35:27 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. Created attachment 257051 [details]
build.log
I have probably the same problem, though it is not reported as a buffer overflow.
Same problem. Hope 14.2-r1 will compile successfully This is caused by FORTIFY_SOURCE=2, which is a security measure....this hides a potential security problem. Let's wait for upstream. 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 --- I masked it for now, so less people stumble upon this. Plus I will nag upstream. 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). (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. :( (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. 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. (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. works for me on amd64 with gcc-4.5.2 (on a test server) emerge --info: http://paste.pocoo.org/show/322777/ Thanks for testing, Fabian. If information is crucial you should not use a pastebin service...but just by the way. |