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

Bug 676176

Summary: sys-devel/llvm-6.0.1 - .../work/llvm-6.0.1.src/lib/CodeGen/ScheduleDAG.cpp:63:1: internal compiler error: Aborted
Product: Gentoo Linux Reporter: Maurice Volaski <mvolaski>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WORKSFORME    
Severity: normal CC: llvm, mgorny, slyfox
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge info

Description Maurice Volaski 2019-01-24 19:11:19 UTC
Created attachment 562698 [details]
build.log

Freshly installed Gentoo 32-bit and trying to emerge X11 resulted in

FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ScheduleDAG.cpp.o 
/usr/bin/i686-pc-linux-gnu-g++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/CodeGen -I/var/tmp/portage/sys-devel/llvm-6.0.1/work/llvm-6.0.1.src/lib/CodeGen -I/usr/include/libxml2 -Iinclude -I/var/tmp/portage/sys-devel/llvm-6.0.1/work/llvm-6.0.1.src/include  -DNDEBUG -O2 -march=i686 -pipe -mno-bmi -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -fPIC -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ScheduleDAG.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ScheduleDAG.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ScheduleDAG.cpp.o -c /var/tmp/portage/sys-devel/llvm-6.0.1/work/llvm-6.0.1.src/lib/CodeGen/ScheduleDAG.cpp
double free or corruption (out)
/var/tmp/portage/sys-devel/llvm-6.0.1/work/llvm-6.0.1.src/lib/CodeGen/ScheduleDAG.cpp: In member function ‘void llvm::ScheduleDAG::clearDAG()’:
/var/tmp/portage/sys-devel/llvm-6.0.1/work/llvm-6.0.1.src/lib/CodeGen/ScheduleDAG.cpp:63:1: internal compiler error: Aborted
 }
 ^
Comment 1 Maurice Volaski 2019-01-24 19:12:54 UTC
Created attachment 562700 [details]
emerge info
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-25 09:47:02 UTC
Normally I'd guess you ran out of memory but that 'double free' looks like legitimate bug.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-25 22:53:26 UTC
Is failure reproducible for you or was it a one-off?

> double free or corruption (out)
This is heap corruption detected by glibc at:
    https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=feaf7ee0bf362ed86375c290d7f55a75c3d2edcf;hb=HEAD#l4319 suggests it's

I'll try to reproduce locally.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-26 16:38:55 UTC
(In reply to Sergei Trofimovich from comment #3)
> I'll try to reproduce locally.

I did not succeed.

We'll need more data or you'll need to investigate yourself. A few avenues to explore:
0. Post your 'gcc -v'. I'll try bring the setup closer to yours.
1. Make sure your RAM is intact by running sys-apps/memtest86+ or similar.
2. Check if you can reproduce the same crash by rerunning emerge
3. Check if you can reproduce the crash by rerunning failed g++ command (might require multiple runs).

If you are lucky with [3.] you can extract selfcontained example: https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide
Comment 5 Maurice Volaski 2019-01-27 18:26:59 UTC
I rebooted and this time it compiled fine. I have no explanation. I'm running inside VitualBox on a Mac Pro with ECC RAM.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-27 19:19:07 UTC
Aha. Must be some software corruption then. Either in Gentoo or in hypervisor.

Let's close this bug as WORKSFORME as there are no leads to follow. And start afresh in a new bug if it happens again.