[llvm-bugs] [Bug 37241] New: Crash in sema::FunctionScopeInfo::markSafeWeakUse

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 25 13:05:20 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37241

            Bug ID: 37241
           Summary: Crash in sema::FunctionScopeInfo::markSafeWeakUse
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tjw at me.com
                CC: llvm-bugs at lists.llvm.org

With a build of trunk (r330865), I'm getting a crash attempting to build some
simple ObjC (see the attached files requested in the crash report).

0  clang-7                  0x0000000109c7a3cc
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 60
1  clang-7                  0x0000000109c7a9c9
PrintStackTraceSignalHandler(void*) + 25
2  clang-7                  0x0000000109c762d9 llvm::sys::RunSignalHandlers() +
425
3  clang-7                  0x0000000109c7ad42 SignalHandler(int) + 354
4  libsystem_platform.dylib 0x00007fff7742bf5a _sigtramp + 26
5  libsystem_platform.dylib 0x00007fe533003468 _sigtramp + 3149755688
6  clang-7                  0x000000010d2e7375
llvm::SmallDenseMap<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u>, 8u,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy::DenseMapInfo,
llvm::detail::DenseMapPair<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u> >
>::getBuckets() + 21
7  clang-7                  0x000000010d2e6f45
llvm::DenseMapBase<llvm::SmallDenseMap<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u>, 8u,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy::DenseMapInfo,
llvm::detail::DenseMapPair<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u> > >,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u>,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy::DenseMapInfo,
llvm::detail::DenseMapPair<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u> >
>::getBuckets() + 21
8  clang-7                  0x000000010d2e6f69
llvm::DenseMapBase<llvm::SmallDenseMap<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u>, 8u,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy::DenseMapInfo,
llvm::detail::DenseMapPair<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u> > >,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u>,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy::DenseMapInfo,
llvm::detail::DenseMapPair<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u> >
>::getBucketsEnd() + 25
9  clang-7                  0x000000010d2c6f77
llvm::DenseMapBase<llvm::SmallDenseMap<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u>, 8u,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy::DenseMapInfo,
llvm::detail::DenseMapPair<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u> > >,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u>,
clang::sema::FunctionScopeInfo::WeakObjectProfileTy::DenseMapInfo,
llvm::detail::DenseMapPair<clang::sema::FunctionScopeInfo::WeakObjectProfileTy,
llvm::SmallVector<clang::sema::FunctionScopeInfo::WeakUseTy, 4u> > >::end() +
39
10 clang-7                  0x000000010d2c6a56
clang::sema::FunctionScopeInfo::markSafeWeakUse(clang::Expr const*) + 278
11 clang-7                  0x000000010d44722c
clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) + 4412
12 clang-7                  0x000000010cd41c42
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) + 3106
13 clang-7                  0x000000010cd3f838
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&,
clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*)
+ 2296
14 clang-7                  0x000000010ce2e583
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 1555
15 clang-7                  0x000000010ce2db12
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 194
16 clang-7                  0x000000010ce2c90d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3837
17 clang-7                  0x000000010ce2b3b6
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 1126
18 clang-7                  0x000000010cd19891 clang::ParseAST(clang::Sema&,
bool, bool) + 961
19 clang-7                  0x000000010ad82b79
clang::ASTFrontendAction::ExecuteAction() + 489
20 clang-7                  0x000000010a5b775f
clang::CodeGenAction::ExecuteAction() + 5663
21 clang-7                  0x000000010ad81a40 clang::FrontendAction::Execute()
+ 112
22 clang-7                  0x000000010ac81f85
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 2293
23 clang-7                  0x000000010ae52cd5
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 5893
24 clang-7                  0x00000001067c16bb cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 4635
25 clang-7                  0x00000001067b072e
ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef) + 622
26 clang-7                  0x00000001067ae038 main + 3880
27 libdyld.dylib            0x00007fff7711d015 start + 1
28 libdyld.dylib            0x00000000000000b8 start + 2297311396

-- 
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/20180425/ba7476fe/attachment.html>


More information about the llvm-bugs mailing list