<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Crash in sema::FunctionScopeInfo::markSafeWeakUse"
href="https://bugs.llvm.org/show_bug.cgi?id=37241">37241</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash in sema::FunctionScopeInfo::markSafeWeakUse
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tjw@me.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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> >
<span class="quote">>::getBuckets() + 21</span >
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> >
<span class="quote">>::getBuckets() + 21</span >
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> >
<span class="quote">>::getBucketsEnd() + 25</span >
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>