[LLVMbugs] [Bug 14132] New: SROA.cpp : Assertion `DL.getTypeStoreSize(Ty) + Offset <= DL.getTypeStoreSize(IntTy) && "Element extends past full value"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 19 14:26:39 PDT 2012


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

             Bug #: 14132
           Summary: SROA.cpp : Assertion `DL.getTypeStoreSize(Ty) + Offset
                    <= DL.getTypeStoreSize(IntTy) && "Element extends past
                    full value"' failed.
           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 166293 :

$ cat sroa.c
typedef unsigned long long int u64;

void f(u64 p)
{
    u64 *a = &p, **b = &a;
    char i, **c = b;

    if(i)
        *c = &i;
    *a;
}

$ clang -O1 -w sroa.c
clang: /home/merkil/git/clang/llvm/lib/Transforms/Scalar/SROA.cpp:2216:
llvm::Value *extractInteger(const llvm::DataLayout &, IRBuilder<> &,
llvm::Value *, llvm::IntegerType *, uint64_t, const llvm::Twine &): Assertion
`DL.getTypeStoreSize(Ty) + Offset <= DL.getTypeStoreSize(IntTy) && "Element
extends past full value"' failed.
0  clang           0x0000000001a7ce5f
1  clang           0x0000000001a7d343
2  libpthread.so.0 0x00007f3493c8c970
3  libc.so.6       0x00007f3492ef8c75 gsignal + 53
4  libc.so.6       0x00007f3492ef9f87 abort + 327
5  libc.so.6       0x00007f3492ef1d82
6  libc.so.6       0x00007f3492ef1e32
7  clang           0x0000000001706dac
8  clang           0x0000000001700860
9  clang           0x00000000016fe8d7
10 clang           0x00000000016fad31
11 clang           0x00000000019e22bb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 443
12 clang           0x00000000019e1838
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 168
13 clang           0x00000000019e171c
llvm::FunctionPassManager::run(llvm::Function&) + 108
14 clang           0x000000000079e3c5
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5173
15 clang           0x000000000079c12a
16 clang           0x00000000008ce294 clang::ParseAST(clang::Sema&, bool, bool)
+ 532
17 clang           0x000000000079b172 clang::CodeGenAction::ExecuteAction() +
178
18 clang           0x0000000000646a25 clang::FrontendAction::Execute() + 101
19 clang           0x0000000000627a6d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
20 clang           0x000000000060ee68
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3768
21 clang           0x000000000060343b cc1_main(char const**, char const**, char
const*, void*) + 603
22 clang           0x000000000060b066 main + 3558
23 libc.so.6       0x00007f3492ee5695 __libc_start_main + 245
24 clang           0x00000000006030fd
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
sroa.c -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22.90.20120727 -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 -O1
-w -fdebug-compilation-dir /home/merkil -ferror-limit 19 -fmessage-length 0
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -o
/tmp/sroa-66KIGW.o -x c sroa.c 
1.    <eof> parser at end of file
2.    Per-function optimization
3.    Running pass 'SROA' on function '@f'
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 166290) (llvm/trunk 166293)
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