[LLVMbugs] [Bug 14212] New: Clang asserts in SROA pass

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 30 05:24:52 PDT 2012


             Bug #: 14212
           Summary: Clang asserts in SROA pass
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kalle.raiskila at nokia.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 9458
  --> http://llvm.org/bugs/attachment.cgi?id=9458
requested input file

Clang asserts.This was first noticed by a buildbot in rev166747,rev166659 does
not show this.
Clang cmd line used is:
/opt/llvm/latest/bin/clang -c -o bug.o bug.cl

clang: /home/kraiskil/llvm/llvm/lib/Transforms/Scalar/SROA.cpp:2064:
llvm::Value* convertValue(const llvm::DataLayout&, llvm::IRBuilder<>&,
llvm::Value*, llvm::Type*): Assertion `canConvertValue(DL, V->getType(), Ty) &&
"Value not convertable to type"' failed.
0  libLLVM-3.2svn.so 0x00007f00eb0ce0fa
1  libLLVM-3.2svn.so 0x00007f00eb0cddd0
2  libpthread.so.0   0x00007f00e9c63030
3  libc.so.6         0x00007f00e8f5c475 gsignal + 53
4  libc.so.6         0x00007f00e8f5f6f0 abort + 384
5  libc.so.6         0x00007f00e8f55621 __assert_fail + 241
6  libLLVM-3.2svn.so 0x00007f00eae79716
7  libLLVM-3.2svn.so 0x00007f00eae7b435
8  libLLVM-3.2svn.so 0x00007f00eae7b89c
9  libLLVM-3.2svn.so 0x00007f00eae89e51
10 libLLVM-3.2svn.so 0x00007f00eae86c3f
11 libLLVM-3.2svn.so 0x00007f00eae83e0d
12 libLLVM-3.2svn.so 0x00007f00eae7ac52
13 libLLVM-3.2svn.so 0x00007f00eae80fb7
14 libLLVM-3.2svn.so 0x00007f00eae8110c
15 libLLVM-3.2svn.so 0x00007f00eae81598
16 libLLVM-3.2svn.so 0x00007f00eae81ee7
17 libLLVM-3.2svn.so 0x00007f00eab25e05
llvm::FPPassManager::runOnFunction(llvm::Function&) + 383
18 libLLVM-3.2svn.so 0x00007f00eab25b2a
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 84
19 libLLVM-3.2svn.so 0x00007f00eab257eb
llvm::FunctionPassManager::run(llvm::Function&) + 175
20 clang             0x00000000009ff307
21 clang             0x00000000009ff4c0
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 136
22 clang             0x00000000009fb2e6
23 clang             0x0000000000bb01dc clang::ParseAST(clang::Sema&, bool,
bool) + 801
24 clang             0x00000000007ef2a0
clang::ASTFrontendAction::ExecuteAction() + 298
25 clang             0x00000000009fa43c clang::CodeGenAction::ExecuteAction() +
26 clang             0x00000000007eeed4 clang::FrontendAction::Execute() + 252
27 clang             0x00000000007c2b9d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 717
28 clang             0x000000000079533a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1048
29 clang             0x0000000000783139 cc1_main(char const**, char const**,
char const*, void*) + 1042
30 clang             0x00000000007902b7 main + 508
31 libc.so.6         0x00007f00e8f48ead __libc_start_main + 253
32 clang             0x0000000000782329
Stack dump:
0.    Program arguments: /opt/llvm/latest/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
bug.cl -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file
/home/kraiskil/opencl/pocl/llvm32/lib/kernel/x86_64/bug.o -resource-dir
/opt/llvm/latest/bin/../lib/clang/3.2 -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/local/include
-internal-isystem /opt/llvm/latest/bin/../lib/clang/3.2/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdebug-compilation-dir /home/kraiskil/opencl/pocl/llvm32/lib/kernel/x86_64
-ferror-limit 19 -fmessage-length 126 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o bug.o -x cl bug.cl 
1.    <eof> parser at end of file
2.    Per-function optimization
3.    Running pass 'SROA' on function '@abs'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
clang version 3.2 (http://llvm.org/git/clang.git
0d1e645bbfd3727b0dd758bdb685c6e5c7592fec) (http://llvm.org/git/llvm.git
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: 

Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/bug-ynpsK0.cl
clang: note: diagnostic msg: /tmp/bug-ynpsK0.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