[LLVMbugs] [Bug 12507] New: Assertion `getActiveBits() <= 64 && "Too many bits for uint64_t"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 9 13:45:28 PDT 2012


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

             Bug #: 12507
           Summary: Assertion `getActiveBits() <= 64 && "Too many bits for
                    uint64_t"' failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


[regehr at dyson r15]$ clang -c -w -O2 small.c
clang:
/uusoc/exports/scratch/regehr/z/compiler-build/llvm-r154337/include/llvm/ADT/APInt.h:1187:
uint64_t llvm::APInt::getZExtValue() const: Assertion `getActiveBits() <= 64 &&
"Too many bits for uint64_t"' failed.
0  clang           0x0000000001ad0aef
1  clang           0x0000000001ad1009
2  libpthread.so.0 0x00007ffff7bcf8f0
3  libc.so.6       0x00007ffff6ebea75 gsignal + 53
4  libc.so.6       0x00007ffff6ec25c0 abort + 384
5  libc.so.6       0x00007ffff6eb7941 __assert_fail + 241
6  clang           0x0000000001492b62
7  clang           0x000000000147741e
8  clang           0x0000000001466f6c
9  clang           0x0000000001466a83
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 835
10 clang           0x0000000001520671
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 1137
11 clang           0x000000000151e3ad
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 269
12 clang           0x000000000151d6e4
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1156
13 clang           0x0000000001662354
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 116
14 clang           0x0000000001a72edb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 331
15 clang           0x0000000001a7326b
llvm::FPPassManager::runOnModule(llvm::Module&) + 347
16 clang           0x0000000001a733aa
llvm::MPPassManager::runOnModule(llvm::Module&) + 282
17 clang           0x0000000001a7398b llvm::PassManagerImpl::run(llvm::Module&)
+ 427
18 clang           0x0000000001a73ada llvm::PassManager::run(llvm::Module&) +
10
19 clang           0x000000000075a935
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5125
20 clang           0x0000000000758851
21 clang           0x000000000087da15 clang::ParseAST(clang::Sema&, bool) + 389
22 clang           0x0000000000757c5d clang::CodeGenAction::ExecuteAction() +
1053
23 clang           0x00000000006313ed
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957
24 clang           0x000000000061a403
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3283
25 clang           0x0000000000610606 cc1_main(char const**, char const**, char
const*, void*) + 2934
26 clang           0x0000000000616498 main + 728
27 libc.so.6       0x00007ffff6ea9c4d __libc_start_main + 253
28 clang           0x000000000060f9c9
Stack dump:
0.    Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r154337-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -coverage-file
small.o -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r154337-install/bin/../lib/clang/3.1
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r154337-install/bin/../lib/clang/3.1/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-w -fdebug-compilation-dir /home/regehr/z/reduce/r15 -ferror-limit 19
-fmessage-length 95 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o small.o -x c small.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'small.c'.
4.    Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/small-4au852.i
clang: note: diagnostic msg: /tmp/small-4au852.sh
[regehr at dyson r15]$ cat small.c
int a, c;
struct S0
{
    int f0;
    int f1;
    int f2;
};
struct S1
{
    char f3;
    struct S0 f5;
    int f6;
} b[0];
void
fn1 (struct S1 p1)
{
    if (p1.f6 != 1 ^ a ? 0 : 1)
        c = 0;
}

int
main ()
{
    fn1 (b[0]);
    return 0;
}
[regehr at dyson r15]$ clang -v
clang version 3.1 (trunk 154337)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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