[LLVMbugs] [Bug 17150] New: clang crash (EXC_BAD_ACCESS) with -Wcomsumed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 7 17:03:04 PDT 2013


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

            Bug ID: 17150
           Summary: clang crash (EXC_BAD_ACCESS) with -Wcomsumed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: devlists at shadowlab.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11161
  --> http://llvm.org/bugs/attachment.cgi?id=11161&action=edit
Minimal test case

When building the attached file with -Wcomsumed (and so -Weverything), clang
crashed.

The involved code is simply an empty function with an empty @try/@catch block.

-------------------- WBSerialQueue.m
static
void wb_dispatch_execute() {
  @try {
  } @catch (id) {
  }
}
--------------------

clang "-cc1" "-fsyntax-only" "-disable-free" "-Wconsumed"  "-fobjc-exceptions"
"-x" "objective-c" "WBSerialQueue.m"
0  clang             0x0000000109486298 llvm::sys::PrintStackTrace(__sFILE*) +
40
1  clang             0x0000000109486794 SignalHandler(int) + 548
2  libsystem_c.dylib 0x00007fff8457794a _sigtramp + 26
3  libsystem_c.dylib 0x000000005727a058 _sigtramp + 3536856872
4  clang             0x00000001099e4270
clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy,
clang::sema::FunctionScopeInfo*, clang::Decl const*, clang::BlockExpr const*) +
4688
5  clang             0x0000000109a1e79b
clang::Sema::PopFunctionScopeInfo(clang::sema::AnalysisBasedWarnings::Policy
const*, clang::Decl const*, clang::BlockExpr const*) + 315
6  clang             0x0000000109abc1c1
clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) + 2881
…

-- 
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/20130908/4802dc1e/attachment.html>


More information about the llvm-bugs mailing list