[LLVMbugs] [Bug 17840] New: Regression:

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 7 12:55:42 PST 2013


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

            Bug ID: 17840
           Summary: Regression:
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: sean at rogue-research.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11498
  --> http://llvm.org/bugs/attachment.cgi?id=11498&action=edit
requested files

I just rebuilt clang today (r194205) to verify that bug #17724 is indeed fixed,
but now clang asserts somewhere else.  (May or may not be related to #17724. 
I'm building again with -Wno-consumed to see.)


Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file
/Users/builder/llvm/llvm/include/llvm/Support/Casting.h, line 97.
0  clang-3.4         0x000000010ee5c6d8 llvm::sys::PrintStackTrace(__sFILE*) +
40
1  clang-3.4         0x000000010ee5cc34 SignalHandler(int) + 644
2  libsystem_c.dylib 0x00007fff87f4090a _sigtramp + 26
3  libsystem_c.dylib 0x00007fff51b1bc50 _sigtramp + 3384652640
4  clang-3.4         0x000000010ee5c996 abort + 22
5  clang-3.4         0x000000010ee5c971 __assert_rtn + 81
6  clang-3.4         0x000000010f1489db (anonymous
namespace)::CallArrayDelete::Emit(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::EHScopeStack::Cleanup::Flags) + 1339
7  clang-3.4         0x000000010f0f635a
EmitCleanup(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::EHScopeStack::Cleanup*,
clang::CodeGen::EHScopeStack::Cleanup::Flags, llvm::Value*) + 330
8  clang-3.4         0x000000010f0f4aa0
clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 1808
9  clang-3.4         0x000000010f146dec
clang::CodeGen::CodeGenFunction::EmitCXXDeleteExpr(clang::CXXDeleteExpr const*)
+ 1660
10 clang-3.4         0x000000010f150cf4 clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) +
4724
11 clang-3.4         0x000000010f1491d0
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 96
12 clang-3.4         0x000000010f11d16a
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 250
13 clang-3.4         0x000000010f11d06a
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 58
14 clang-3.4         0x000000010f1a0c1e
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 270
15 clang-3.4         0x000000010f1a6a3b
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 91
16 clang-3.4         0x000000010f1a6214
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 324
17 clang-3.4         0x000000010f1a12bb
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 379
18 clang-3.4         0x000000010f1a0b3b
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 43
19 clang-3.4         0x000000010f0ea314
clang::CodeGen::CodeGenFunction::EmitDestructorBody(clang::CodeGen::FunctionArgList&)
+ 660
20 clang-3.4         0x000000010f1b4b26
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 598
21 clang-3.4         0x000000010f0f1188
clang::CodeGen::CodeGenModule::EmitCXXDestructor(clang::CXXDestructorDecl
const*, clang::CXXDtorType) + 392
22 clang-3.4         0x000000010f1bcecc
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 204
23 clang-3.4         0x000000010f1be9c8
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 792
24 clang-3.4         0x000000010f1c114c
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1148
25 clang-3.4         0x000000010f1ee10f (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 111
26 clang-3.4         0x000000010f1b0e25
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 165
27 clang-3.4         0x000000010f352273 clang::ParseAST(clang::Sema&, bool,
bool) + 419
28 clang-3.4         0x000000010f1b0126 clang::CodeGenAction::ExecuteAction() +
534
29 clang-3.4         0x000000010f2c16d7 clang::FrontendAction::Execute() + 119
30 clang-3.4         0x000000010f29c24d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957
31 clang-3.4         0x000000010ee5f78a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3642
32 clang-3.4         0x000000010e0e3deb cc1_main(char const**, char const**,
char const*, void*) + 811
33 clang-3.4         0x000000010e0e2935 main + 8437
34 libdyld.dylib     0x00007fff8b9dd7e1 start + 0
Stack dump:
0.    Program arguments: /Users/builder/llvm/llvm-rel-install/bin/clang-3.4
-cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name
vtkObjectFactory.cxx -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -gdwarf-2 -coverage-file
/Users/builder/external/VTK-torture-clang-dbg-x86_64/Common/Core/CMakeFiles/vtkCommonCore.dir/vtkObjectFactory.cxx.o
-resource-dir /Users/builder/llvm/llvm-rel-install/bin/../lib/clang/3.4
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-D VTK_IN_VTK -D vtkCommonCore_EXPORTS -I
/Users/builder/external/VTK/ThirdParty/utf8/source -I
/Users/builder/external/VTK-torture-clang-dbg-x86_64/Common/DataModel -I
/Users/builder/external/VTK-torture-clang-dbg-x86_64/Utilities/KWSys -I
/Users/builder/external/VTK/Utilities/KWSys -I
/Users/builder/external/VTK-torture-clang-dbg-x86_64/Common/Core -I
/Users/builder/external/VTK/Common/Core -O1 -Weverything -Wno-padded
-Wno-cast-align -Wno-covered-switch-default -Wno-long-long -Wno-float-equal
-Wno-missing-noreturn -Wno-unused-macros -Wno-missing-variable-declarations
-Wno-sign-conversion -Wno-undef -Wno-conversion -Wno-unreachable-code
-Wno-missing-prototypes -Wno-objc-interface-ivars -Wno-direct-ivar-access
-Wno-documentation -Wno-extra-semi -Wno-exit-time-destructors
-Wno-global-constructors -Wno-format-nonliteral -Wno-switch-enum
-Wno-shorten-64-to-32 -Wno-weak-vtables -Wno-weak-template-vtables
-Wno-missing-prototypes -Wno-disabled-macro-expansion
-Wno-unused-member-function -Wno-vla -Wno-vla-extension
-Wno-c++98-compat-pedantic -Wno-implicit-fallthrough -std=c++1y
-fdeprecated-macro -fdebug-compilation-dir
/Users/builder/external/VTK-torture-clang-dbg-x86_64/Common/Core -ferror-limit
19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden
-fsanitize=array-bounds,bool,float-cast-overflow,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable,vla-bound,local-bounds
-fno-sanitize-recover -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.8.0 -fencode-extended-block-signature -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
CMakeFiles/vtkCommonCore.dir/vtkObjectFactory.cxx.o -x c++
/Users/builder/external/VTK/Common/Core/vtkObjectFactory.cxx 
1.    /Users/builder/external/VTK/Common/Core/vtkObjectFactory.cxx:332:1:
current parser token 'void'
2.    /Users/builder/external/VTK/Common/Core/vtkObjectFactory.cxx:312:19: LLVM
IR generation of declaration 'vtkObjectFactory::~vtkObjectFactory'
3.    /Users/builder/external/VTK/Common/Core/vtkObjectFactory.cxx:312:19:
Generating code for declaration 'vtkObjectFactory::~vtkObjectFactory'
4.    /Users/builder/external/VTK/Common/Core/vtkObjectFactory.cxx:313:1: LLVM
IR generation of compound statement ('{}')
clang-3.4: error: unable to execute command: Illegal instruction: 4
clang-3.4: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (194205)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
clang-3.4: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-3.4: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.4: note: diagnostic msg:
/var/folders/_j/yk9_m1js2jq67w2sbxfgrxkr0000gn/T/vtkObjectFactory-0abb0a.cpp
clang-3.4: note: diagnostic msg:
/var/folders/_j/yk9_m1js2jq67w2sbxfgrxkr0000gn/T/vtkObjectFactory-0abb0a.sh
clang-3.4: note: diagnostic msg: 

********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131107/192c4b3e/attachment.html>


More information about the llvm-bugs mailing list