[LLVMbugs] [Bug 13185] New: While deleting: i32 %conv | UNREACHABLE executed at Value.cpp:620!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 23 04:14:35 PDT 2012


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

             Bug #: 13185
           Summary: While deleting: i32 %conv | UNREACHABLE executed at
                    Value.cpp:620!
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: merkil at savhon.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


With LLVM/Clang as of r158995, at -O2 and higher :

$ cat file.c
unsigned g;

void f2(void)
{
    g = 0;
}

unsigned f1(unsigned short p)
{
    unsigned x;

    for(g = 0; g < 2; g++)
    {
        x = p;
        f2();
    }

    return x;
}

$ ~/git/clang/build/Release+Asserts/bin/clang -O2 -w file.c
While deleting: i32 %conv
An asserting value handle still pointed to this value!
UNREACHABLE executed at /home/merkil/git/clang/llvm/lib/VMCore/Value.cpp:620!
0  clang           0x0000000001be08af
1  clang           0x0000000001be0d74
2  libpthread.so.0 0x000000344d410970
3  libc.so.6       0x000000344d037c15 gsignal + 53
4  libc.so.6       0x000000344d038f27 abort + 327
5  clang           0x0000000001bcf69f llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 463
6  clang           0x0000000001b961d7
llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) + 1175
7  clang           0x0000000001b95aae llvm::Value::~Value() + 46
8  clang           0x0000000001b74399
9  clang           0x000000000189f5c2
10 clang           0x000000000189f25f
11 clang           0x0000000001b8709b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 443
12 clang           0x000000000197b915
13 clang           0x0000000001b87573
llvm::MPPassManager::runOnModule(llvm::Module&) + 419
14 clang           0x0000000001b87af8 llvm::PassManagerImpl::run(llvm::Module&)
+ 408
15 clang           0x0000000001b87c5a llvm::PassManager::run(llvm::Module&) +
10
16 clang           0x000000000078f650
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5056
17 clang           0x000000000078d49a
18 clang           0x00000000008bb814 clang::ParseAST(clang::Sema&, bool, bool)
+ 516
19 clang           0x000000000078c4f8 clang::CodeGenAction::ExecuteAction() +
184
20 clang           0x000000000066ec65 clang::FrontendAction::Execute() + 101
21 clang           0x0000000000651b5d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
22 clang           0x00000000006398b4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3316
23 clang           0x000000000062e4eb cc1_main(char const**, char const**, char
const*, void*) + 731
24 clang           0x0000000000635de6 main + 3542
25 libc.so.6       0x000000344d024695 __libc_start_main + 245
26 clang           0x000000000062e12d
Stack dump:
0.    Program arguments: /home/merkil/git/clang/build/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
file.c -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -resource-dir
/home/merkil/git/clang/build/Release+Asserts/bin/../lib/clang/3.2
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/home/merkil/git/clang/build/Release+Asserts/bin/../lib/clang/3.2/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-w -fdebug-compilation-dir /home/merkil/ -ferror-limit 19 -fmessage-length 0
-mstackrealign -fobjc-runtime=gnu-fragile -fdiagnostics-show-option -o
/tmp/file-KIwPdF.o -x c file.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'file.c'.
4.    Running pass 'Reassociate expressions' on function '@f1'
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 158995)
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.

This looks like PR12952, but since I don't know if they're related, I prefer
filling a new bugreport.

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