[LLVMbugs] [Bug 12952] New: UNREACHABLE executed at Value.cpp:620!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 25 18:22:12 PDT 2012


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

             Bug #: 12952
           Summary: UNREACHABLE executed at Value.cpp:620!
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            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 r58]$ clang -O small.c -c -w
While deleting: i32 %storemerge1
An asserting value handle still pointed to this value!
UNREACHABLE executed at Value.cpp:620!
0  clang           0x0000000001b948bf
1  clang           0x0000000001b94dd4
2  libpthread.so.0 0x00007fef62d4c8f0
3  libc.so.6       0x00007fef6203ba75 gsignal + 53
4  libc.so.6       0x00007fef6203f5c0 abort + 384
5  clang           0x0000000001b82cef llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 463
6  clang           0x0000000001b4222d
llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) + 1037
7  clang           0x0000000001b41b8e llvm::Value::~Value() + 46
8  clang           0x0000000001b12d22 llvm::PHINode::~PHINode() + 66
9  clang           0x0000000001932bdb
llvm::RecursivelyDeleteTriviallyDeadInstructions(llvm::Value*) + 363
10 clang           0x00000000018422d4
11 clang           0x00000000019ca0b9
llvm::LPPassManager::runOnFunction(llvm::Function&) + 841
12 clang           0x0000000001b33deb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 443
13 clang           0x0000000001964175
14 clang           0x0000000001b342c3
llvm::MPPassManager::runOnModule(llvm::Module&) + 419
15 clang           0x0000000001b34848 llvm::PassManagerImpl::run(llvm::Module&)
+ 408
16 clang           0x0000000001b349aa llvm::PassManager::run(llvm::Module&) +
10
17 clang           0x0000000000773bb0
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4976
18 clang           0x0000000000771a7a
19 clang           0x000000000089a1f5 clang::ParseAST(clang::Sema&, bool, bool)
+ 389
20 clang           0x0000000000770c0b clang::CodeGenAction::ExecuteAction() +
459
21 clang           0x0000000000641fed
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
22 clang           0x000000000062b25b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3307
23 clang           0x000000000061ff7b cc1_main(char const**, char const**, char
const*, void*) + 731
24 clang           0x0000000000627988 main + 3464
25 libc.so.6       0x00007fef62026c4d __libc_start_main + 253
26 clang           0x000000000061fbd9
Stack dump:
0.    Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r157507-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r157507-install/bin/../lib/clang/3.2
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r157507-install/bin/../lib/clang/3.2/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-w -fdebug-compilation-dir /home/regehr/z/reduce/r58 -ferror-limit 19
-fmessage-length 83 -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.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'small.c'.
4.    Running pass 'Loop Pass Manager' on function '@fn4'
5.    Running pass 'Induction Variable Simplification' on basic block
'%for.body'
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 version 3.2 (trunk 157507)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/small-iOxMlO.i
clang: note: diagnostic msg: /tmp/small-iOxMlO.sh
[regehr at dyson r58]$ clang -v
clang version 3.2 (trunk 157507)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at dyson r58]$ cat small.c
int a, b, c;
int
fn1 (short p1)
{
    return p1 ^ p1 < 0 ? 0 : p1;
}
void fn2 (short);
void
fn3 ()
{
    b = fn1 (a);
    c = a;
}
void
fn4 ()
{
    a = 0;
    for (; a >= 0; a = a - 1)
        fn3 ();
    fn2 (a);
}

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