[LLVMbugs] [Bug 13697] New: crash in clang/lib/CodeGen/CGBuiltin.cpp:1478: std::pair<llvm::Value*, unsigned int>

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 25 06:49:47 PDT 2012


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

             Bug #: 13697
           Summary: crash in clang/lib/CodeGen/CGBuiltin.cpp:1478:
                    std::pair<llvm::Value*, unsigned int>
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: andreas at fink.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9108
  --> http://llvm.org/bugs/attachment.cgi?id=9108
NSZone-402M2k.m

clang:
/Users/afink/development/svn/llvm/tools/clang/lib/CodeGen/CGBuiltin.cpp:1478:
std::pair<llvm::Value*, unsigned int>
clang::CodeGen::CodeGenFunction::EmitPointerWithAlignment(const clang::Expr*):
Assertion `Addr->getType()->isPointerType()' failed.
0  clang           0x0000000002a82fcc
1  clang           0x0000000002a82ca1
2  libpthread.so.0 0x0000003c7820f500
3  libc.so.6       0x0000003c77e328a5 gsignal + 53
4  libc.so.6       0x0000003c77e34085 abort + 373
5  libc.so.6       0x0000003c77e2ba1e
6  libc.so.6       0x0000003c77e2bae0 __assert_perror_fail + 0
7  clang           0x0000000000fc33f0
clang::CodeGen::CodeGenFunction::EmitPointerWithAlignment(clang::Expr const*) +
106
8  clang           0x0000000000fc347b
clang::CodeGen::CodeGenFunction::EmitPointerWithAlignment(clang::Expr const*) +
245
9  clang           0x0000000000fbd962
clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(clang::FunctionDecl const*,
unsigned int, clang::CallExpr const*) + 13196
10 clang           0x0000000000eea6a9
clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*,
clang::CodeGen::ReturnValueSlot) + 565
11 clang           0x0000000000f22b63
12 clang           0x0000000000f30d0b
13 clang           0x0000000000f221e5
14 clang           0x0000000000f2fac0
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 156
15 clang           0x0000000000ede197
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 99
16 clang           0x0000000000ede0e0
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 154
17 clang           0x0000000000f8d0c9
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 399
18 clang           0x0000000000f8d6d4
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 248
19 clang           0x0000000000f8d49f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 243
20 clang           0x0000000000f8cf85
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 75
21 clang           0x0000000000fa6da6
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 154
22 clang           0x0000000000fa72c4
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 990
23 clang           0x0000000000e28d71
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 865
24 clang           0x0000000000e25b0e
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 450
25 clang           0x0000000000e253f3
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 753
26 clang           0x0000000000e2bec5
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 321
27 clang           0x0000000000e1e9a9
28 clang           0x0000000000e1d3df
29 clang           0x0000000000fce04e clang::ParseAST(clang::Sema&, bool, bool)
+ 568
30 clang           0x0000000000c26bac clang::ASTFrontendAction::ExecuteAction()
+ 298
31 clang           0x0000000000e1c82f clang::CodeGenAction::ExecuteAction() +
1223
32 clang           0x0000000000c267e0 clang::FrontendAction::Execute() + 252
33 clang           0x0000000000bfe7a7
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 717
34 clang           0x0000000000bcfabf
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1001
35 clang           0x0000000000bbdea9 cc1_main(char const**, char const**, char
const*, void*) + 990
36 clang           0x0000000000bcac31 main + 484
37 libc.so.6       0x0000003c77e1ecdd __libc_start_main + 253
38 clang           0x0000000000bbd0f9
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name NSZone.m
-pic-level 2 -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer
-g -coverage-file build/NSZone.o -resource-dir /usr/local/bin/../lib/clang/3.2
-D OBJC_EXPORT= -D LINUX -D _GNU_SOURCE -D __LITTLE_ENDIAN__ -D GCC_RUNTIME_3
-D _FORTIFY_SOURCE=1 -I include -fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.2/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -Wall -Wno-unknown-pragmas
-std=gnu99 -fdebug-compilation-dir
/Users/afink/development/svn/cocotron-linux/linux/Foundation
-fconstant-string-class NSConstantString -ferror-limit 19 -fmessage-length 143
-mstackrealign -fblocks -fobjc-runtime=gcc -fobjc-exceptions
-fdiagnostics-show-option -fcolor-diagnostics -o build/NSZone.o -x objective-c
src/NSZone.m 
1.    <eof> parser at end of file
2.    src/NSZone.m:259:4: LLVM IR generation of declaration 'NSCopyObject'
3.    src/NSZone.m:259:4: Generating code for declaration 'NSCopyObject'
4.    src/NSZone.m:260:1: LLVM IR generation of compound statement ('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 162438)
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: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/NSZone-40aM2k.m
clang: note: diagnostic msg: /tmp/NSZone-40aM2k.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