[LLVMbugs] [Bug 20629] New: clang fails to build compiler-rt (sanitizer-allocator.cc)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 11 17:01:43 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20629

            Bug ID: 20629
           Summary: clang fails to build compiler-rt
                    (sanitizer-allocator.cc)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: marc.eaddy at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12881
  --> http://llvm.org/bugs/attachment.cgi?id=12881&action=edit
Preprocessed source

While building llvm, clang, and compiler-rt, clang fails to build
sanitizer_common.cc:

...
COMPILE:   clang_linux/san-x86_64/x86_64:
/nfs/tapeout/disks/clt_na07/meaddy/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc 
DominatorTree is not up to date!                                                
Computed:                                                                       
=============================--------------------------------                   
Inorder Dominator Tree: DFSNumbers invalid: 26 slow queries.                    
  [1] %entry {0,33}                                                             
    [2]
%_ZN11__sanitizer28SizeClassAllocatorLocalCacheINS_20SizeClassAllocator32ILm0ELy140737488355328ELm0ENS_12SizeClassMapILm17ELm64ELm14EEELm20ENS_15TwoLevelByteMapILy32768ELy4096ENS_20NoOpMapUnmapCallbackEEES5_EEE9InitCacheEv.exit
{13,32}                                                                     
      [3] %if.then {14,15}                                                      
      [3] %for.body.preheader {4294967295,4294967295}                           
        [4] %overflow.checked {4294967295,4294967295}                           
          [5] %vector.memcheck {4294967295,4294967295}                          
            [6] %vector.ph {4294967295,4294967295}                              
              [7] %vector.body {4294967295,4294967295}                          
          [5] %middle.block {4294967295,4294967295}                             
            [6] %for.end {17,30}                                                
              [7]
%_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE4SizeEm.exit.i {18,19}          
              [7]
%_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE38SizeClassRequiresSeparateTransferBatchEm.exit
{20,25}                                                                         
                [8] %if.then12 {21,22}                                          
                [8] %if.end14 {23,24}                                           
              [7]
%_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE4SizeEm.exit.i.i {26,27}        
              [7] %if.end.i.i.i29 {28,29}                                       
        [4] %scalar.ph {4294967295,4294967295}                                  
          [5] %for.body {16,31}                                                 
    [2] %for.body.i.preheader {4294967295,4294967295}                           
      [3] %for.body.i {1,12}                                                    
        [4]
%_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE9MaxCachedEm.exit.thread.i
{2,3}            
        [4] %if.end.i.i {4,11}                                                  
          [5] %if.then.i.i.i {5,6}                                              
          [5]
%_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE9MaxCachedEm.exit.i {7,8}       
            [6]
%_ZN11__sanitizer28SizeClassAllocatorLocalCacheINS_20SizeClassAllocator32ILm0ELy140737488355328ELm0ENS_12SizeClassMapILm17ELm64ELm14EEELm20ENS_15TwoLevelByteMapILy32768ELy4096ENS_20NoOpMapUnmapCallbackEEES5_EEE9InitCacheEv.exit.loopexit
{4294967295,4294967295}                                    
          [5] %if.end.i.i.i {9,10}                                              
        [4] %for.body.i.backedge {4294967295,4294967295}                        

Actual:
=============================--------------------------------
Inorder Dominator Tree:                                      
  [1] %entry {0,53}                                          
    [2] %for.body.i.preheader {1,18}                         
      [3] %for.body.i {2,17}                                 
        [4]
%_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE9MaxCachedEm.exit.thread.i
{3,4}
        [4] %for.body.i.backedge {5,6}                                          
        [4] %if.end.i.i {7,16}                                                  
          [5] %if.then.i.i.i {8,9}                                              
          [5]
%_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE9MaxCachedEm.exit.i {10,13}   
            [6]
%_ZN11__sanitizer28SizeClassAllocatorLocalCacheINS_20SizeClassAllocator32ILm0ELy140737488355328ELm0ENS_12SizeClassMapILm17ELm64ELm14EEELm20ENS_15TwoLevelByteMapILy32768ELy4096ENS_20NoOpMapUnmapCallbackEEES5_EEE9InitCacheEv.exit.loopexit
{11,12}                                                    
          [5] %if.end.i.i.i {14,15}                                             
    [2]
%_ZN11__sanitizer28SizeClassAllocatorLocalCacheINS_20SizeClassAllocator32ILm0ELy140737488355328ELm0ENS_12SizeClassMapILm17ELm64ELm14EEELm20ENS_15TwoLevelByteMapILy32768ELy4096ENS_20NoOpMapUnmapCallbackEEES5_EEE9InitCacheEv.exit
{19,52}                                                                     
      [3] %if.then {20,21}                                                      
      [3] %for.body.preheader {22,51}                                           
        [4] %scalar.ph {23,26}                                                  
          [5] %for.body {24,25}                                                 
        [4] %for.end {27,40}                                                    
          [5] %_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE4SizeEm.exit.i
{28,29}                    
          [5]
%_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE38SizeClassRequiresSeparateTransferBatchEm.exit
{30,35}                                                                         
            [6] %if.then12 {31,32}                                              
            [6] %if.end14 {33,34}                                               
          [5] %_ZN11__sanitizer12SizeClassMapILm17ELm64ELm14EE4SizeEm.exit.i.i
{36,37}                  
          [5] %if.end.i.i.i29 {38,39}                                           
        [4] %overflow.checked {41,50}                                           
          [5] %middle.block {42,43}                                             
          [5] %vector.memcheck {44,49}                                          
            [6] %vector.ph {45,48}                                              
              [7] %vector.body {46,47}                                          
0  clang           0x0000000002ce22e2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34                        
1  clang           0x0000000002ce2c1b                                           
2  libpthread.so.0 0x00002aaaaaef27c0                                           
3  libc.so.6       0x00002aaaabf19b35 gsignal + 53                              
4  libc.so.6       0x00002aaaabf1b111 abort + 385                               
5  clang           0x0000000002bc1aae                                           
6  clang           0x0000000002c5a629
llvm::PMDataManager::verifyPreservedAnalysis(llvm::Pass*) + 137   
7  clang           0x0000000002c5dba2
llvm::FPPassManager::runOnFunction(llvm::Function&) + 178         
8  clang           0x0000000002c5dd8b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43              
9  clang           0x0000000002c5d547                                           
10 clang           0x0000000002c5da3b
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 235           
11 clang           0x0000000000b27ca2
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
3410                                                        
12 clang           0x0000000000b18e70                                           
13 clang           0x0000000000d0c51a clang::ParseAST(clang::Sema&, bool, bool)
+ 522                   
14 clang           0x0000000000b1919e clang::CodeGenAction::ExecuteAction() +
78                        
15 clang           0x000000000091b646 clang::FrontendAction::Execute() + 150    
16 clang           0x00000000008ee215
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 309            
17 clang           0x00000000008c8c8a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2218 
18 clang           0x00000000008be5d8 cc1_main(char const**, char const**, char
const*, void*) + 1560   
19 clang           0x00000000008a92d8 main + 5928                               
20 libc.so.6       0x00002aaaabf05c16 __libc_start_main + 230                   
21 clang           0x00000000008bda51                                           
Stack dump:                                                                     
0.      Program arguments:
/nfs/tapeout/disks/clt_na07/meaddy/clang/build/Release+Asserts+Checks/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
sanitizer_allocator.cc -mrelocation-model pic -pic-level 2 -pie-level 2
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -target-linker-version 2.23 -momit-leaf-frame-pointer -gline-tables-only
-dwarf-column-info -coverage-file
/nfs/tapeout/disks/clt_na07/meaddy/clang/build/tools/clang/runtime/compiler-rt/clang_linux/san-x86_64/x86_64/SubDir.lib__sanitizer_common/sanitizer_allocator.o
-resource-dir
/nfs/tapeout/disks/clt_na07/meaddy/clang/build/Release+Asserts+Checks/bin/../lib/clang/3.6.0
-I /nfs/tapeout/disks/clt_na07/meaddy/clang/llvm/projects/compiler-rt/lib -I
/nfs/tapeout/disks/clt_na07/meaddy/clang/llvm/projects/compiler-rt/include
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../include/c++/4.3
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../include/c++/4.3/x86_64-suse-linux
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../include/c++/4.3/backward
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../include/x86_64-suse-linux/c++/4.3
-internal-isystem /usr/local/include -internal-isystem
/nfs/tapeout/disks/clt_na07/meaddy/clang/build/Release+Asserts+Checks/bin/../lib/clang/3.6.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Wall -Werror -std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/nfs/tapeout/disks/clt_na07/meaddy/clang/llvm/projects/compiler-rt
-ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-builtin -fno-rtti
-fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
/nfs/tapeout/disks/clt_na07/meaddy/clang/build/tools/clang/runtime/compiler-rt/clang_linux/san-x86_64/x86_64/SubDir.lib__sanitizer_common/sanitizer_allocator.o
-x c++
/nfs/tapeout/disks/clt_na07/meaddy/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc 
1.      <eof> parser at end of file                                             
2.      Per-module optimization passes                                          
3.      Running pass 'Function Pass Manager' on module
'/nfs/tapeout/disks/clt_na07/meaddy/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc'. 
clang: error: unable to execute command: Aborted                                
clang: error: clang frontend command failed due to signal (use -v to see
invocation)                    
clang version 3.6.0 (trunk 215390) (llvm/trunk 215389:215390)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/sanitizer_allocator-1c846d.cpp
clang: note: diagnostic msg: /tmp/sanitizer_allocator-1c846d.sh
clang: note: diagnostic msg:

********************
make[5]: ***
[/nfs/tapeout/disks/clt_na07/meaddy/clang/build/tools/clang/runtime/compiler-rt/clang_linux/san-x86_64/x86_64/SubDir.lib__sanitizer_common/sanitizer_allocator.o]
Error 254
make[5]: Leaving directory
`/nfs/tapeout/disks/clt_na07/meaddy/clang/llvm/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
make[4]: Leaving directory
`/nfs/tapeout/disks/clt_na07/meaddy/clang/build/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory
`/nfs/tapeout/disks/clt_na07/meaddy/clang/build/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/nfs/tapeout/disks/clt_na07/meaddy/clang/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory
`/nfs/tapeout/disks/clt_na07/meaddy/clang/build/tools'
make: *** [all] Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140812/c23427f6/attachment.html>


More information about the llvm-bugs mailing list