[LLVMbugs] [Bug 13316] New: Clang trunk crash on Linux compiler assert in IntervalMap (clang version 3.2 (trunk 159979))

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 9 21:26:37 PDT 2012


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

             Bug #: 13316
           Summary: Clang trunk crash on Linux compiler assert in
                    IntervalMap (clang version 3.2 (trunk 159979))
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kbelco at sandia.gov
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8865
  --> http://llvm.org/bugs/attachment.cgi?id=8865
Clang said upload these files

clang: /scratch/kbelco/llvm_linux/llvm/include/llvm/ADT/IntervalMap.h:606:
unsigned int llvm::IntervalMapImpl::LeafNode< <template-parameter-1-1>,
<template-parameter-1-2>, <anonymous>, <template-parameter-1-4>
>::insertFrom(unsigned int&, unsigned int, KeyT, KeyT, ValT) [with KeyT =
llvm::SlotIndex, ValT = unsigned int, unsigned int N = 9u, Traits =
llvm::IntervalMapInfo<llvm::SlotIndex>]: Assertion `!Traits::stopLess(b, a) &&
"Invalid interval"' failed.

0  clang           0x000000000246cbcf
1  clang           0x000000000246d8a7
2  libpthread.so.0 0x0000003b3fa0eb70
3  libc.so.6       0x0000003b3ee30265 gsignal + 53
4  libc.so.6       0x0000003b3ee31d10 abort + 272
5  libc.so.6       0x0000003b3ee296e6 __assert_fail + 246
6  clang           0x0000000001ee26f3
llvm::IntervalMapImpl::LeafNode<llvm::SlotIndex, unsigned int, 9u,
llvm::IntervalMapInfo<llvm::SlotIndex> >::insertFrom(unsigned int&, unsigned
int, llvm::SlotIndex, llvm::SlotIndex, unsigned int) + 739
7  clang           0x0000000001ee2ea0
  COMPILE:   clang_linux/asan-x86_64/x86_64:
/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/lib/asan/asan_stats.cc
8  clang           0x0000000001ed57aa
llvm::SplitEditor::useIntv(llvm::SlotIndex, llvm::SlotIndex) + 90
9  clang           0x0000000001ed9b75
llvm::SplitEditor::splitRegInBlock(llvm::SplitAnalysis::BlockInfo const&,
unsigned int, llvm::SlotIndex) + 1413
10 clang           0x0000000001e90e0a
11 clang           0x0000000001e91ee4
12 clang           0x0000000001e94b6d
13 clang           0x0000000001e94fbd
14 clang           0x0000000001faac42 llvm::RegAllocBase::allocatePhysRegs() +
274
15 clang           0x0000000001e8ea6b
16 clang           0x0000000001e39025
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 53
17 clang           0x00000000023fd4e4
llvm::FPPassManager::runOnFunction(llvm::Function&) + 596
18 clang           0x00000000023fd57d
llvm::FPPassManager::runOnModule(llvm::Module&) + 45
19 clang           0x00000000023fd03c
llvm::MPPassManager::runOnModule(llvm::Module&) + 556
20 clang           0x00000000023fd18f llvm::PassManagerImpl::run(llvm::Module&)
+ 159
21 clang           0x00000000023fd27d llvm::PassManager::run(llvm::Module&) +
13
22 clang           0x000000000084a542
23 clang           0x000000000084adda
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 186
24 clang           0x0000000000847a83
25 clang           0x0000000000a05e94 clang::ParseAST(clang::Sema&, bool, bool)
+ 404
26 clang           0x0000000000845c32 clang::CodeGenAction::ExecuteAction() +
66
27 clang           0x00000000006a7951 clang::FrontendAction::Execute() + 145
28 clang           0x000000000067e3d8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 328
29 clang           0x000000000065cc2e
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1166
30 clang           0x000000000065337f cc1_main(char const**, char const**, char
const*, void*) + 1519
31 clang           0x000000000065b9e6 main + 4118
32 libc.so.6       0x0000003b3ee1d994 __libc_start_main + 244
33 clang           0x00000000006517f9
Stack dump:
0.    Program arguments:
/scratch/kbelco/llvm_linux/build/Release+Asserts/bin/clang -cc1 -triple
i386-unknown-linux-gnu -emit-obj -disable-free -main-file-name GCDAProfiling.c
-pic-level 2 -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu
pentium4 -target-linker-version 2.17.50.0.6 -momit-leaf-frame-pointer
-coverage-file
/scratch/kbelco/llvm_linux/build/tools/clang/runtime/compiler-rt/clang_linux/profile-i386/i386/SubDir.lib__profile/GCDAProfiling.o
-resource-dir
/scratch/kbelco/llvm_linux/build/Release+Asserts/bin/../lib/clang/3.2 -isysroot
/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/SDKs/linux
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/SDKs/linux/usr/local/include
-internal-isystem
/scratch/kbelco/llvm_linux/build/Release+Asserts/bin/../lib/clang/3.2/include
-internal-externc-isystem
/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/SDKs/linux/include
-internal-externc-isystem
/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/SDKs/linux/usr/include -O3
-Wall -Werror -fdebug-compilation-dir
/scratch/kbelco/llvm_linux/build/tools/clang/runtime/compiler-rt -ferror-limit
19 -fmessage-length 129 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o
/scratch/kbelco/llvm_linux/build/tools/clang/runtime/compiler-rt/clang_linux/profile-i386/i386/SubDir.lib__profile/GCDAProfiling.o
-x c
/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/lib/profile/GCDAProfiling.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/lib/profile/GCDAProfiling.c'.
4.    Running pass 'Greedy Register Allocator' on function
'@llvm_gcda_start_file'
  COMPILE:   clang_linux/asan-x86_64/x86_64:
/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/lib/asan/asan_thread.cc
  COMPILE:   clang_linux/asan-x86_64/x86_64:
/scratch/kbelco/llvm_linux/llvm/projects/compiler-rt/lib/asan/asan_thread_registry.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.2 (trunk 159979)
Target: i386-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/GCDAProfiling-DGBVxs.c
clang: note: diagnostic msg: /tmp/GCDAProfiling-DGBVxs.sh
clang: note: diagnostic msg: 

********************

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list