[LLVMbugs] [Bug 9412] New: clang crashes when compiling webkit

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 5 23:09:24 PST 2011


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

           Summary: clang crashes when compiling webkit
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


thakis-macbookpro:WebCore.gyp thakis$ 
/Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++  --version
clang version 2.9 (trunk 127064)
Target: x86_64-apple-darwin10
Thread model: posix



thakis-macbookpro:WebCore.gyp thakis$ gdb --args
/Users/thakis/src/llvm-rw/Debug+Asserts/bin/clang++ -cc1  ~/ImageDecoder.ii 
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Wed Sep 22 02:45:02 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared
libraries ... done

(gdb) run
Starting program: /Users/thakis/src/llvm-rw/Debug+Asserts/bin/clang++ -cc1
/Users/thakis/ImageDecoder.ii
Reading symbols for shared libraries ++. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000018
0x000000010060beae in clang::CFGBlock::getLabel (this=0x0) at CFG.h:472
472      const Stmt* getLabel() const { return Label; }
(gdb) bt
#0  0x000000010060beae in clang::CFGBlock::getLabel (this=0x0) at CFG.h:472
#1  0x00000001006c1f29 in clang::CFGBlock::FilterEdge (F=@0x7fff5fbfcda0,
From=0x105fec318, To=0x0) at CFG.cpp:2936
#2  0x00000001006e87c7 in
clang::CFGBlock::FilteredCFGBlockIterator<clang::CFGBlock* const*,
false>::Filter (this=0x7fff5fbfcd90, To=0x0) at CFG.h:434
#3  0x00000001006e880d in
clang::CFGBlock::FilteredCFGBlockIterator<clang::CFGBlock* const*,
false>::operator++ (this=0x7fff5fbfcd90) at CFG.h:427
#4  0x00000001006e70ab in clang::reachable_code::ScanReachableFromBlock
(Start=@0x106055750, Reachable=@0x7fff5fbfce80) at ReachableCode.cpp:210
#5  0x00000001002f7ba3 in CheckFallThrough (AC=@0x7fff5fbfd1a0) at
AnalysisBasedWarnings.cpp:89
#6  0x00000001002f8303 in CheckFallThroughForBody (S=@0x105829e00,
D=0x10600b980, Body=0x10605ea90, blkExpr=0x0, CD=@0x7fff5fbfd2a0,
AC=@0x7fff5fbfd1a0) at AnalysisBasedWarnings.cpp:345
#7  0x00000001002f8861 in clang::sema::AnalysisBasedWarnings::IssueWarnings
(this=0x10582a9b0, P={enableCheckFallThrough = 1, enableCheckUnreachable = 0},
fscope=0x1052163e0, D=0x10600b980, blkExpr=0x0) at
AnalysisBasedWarnings.cpp:579
#8  0x0000000100308b91 in clang::Sema::PopFunctionOrBlockScope
(this=0x105829e00, WP=0x7fff5fbfd440, D=0x10600b980, blkExpr=0x0) at
Sema.cpp:644
#9  0x0000000100366b52 in clang::Sema::ActOnFinishFunctionBody
(this=0x105829e00, dcl=0x10600b980, Body=0x10605ea90, IsInstantiation=true) at
SemaDecl.cpp:5715
#10 0x000000010055d1e4 in clang::Sema::InstantiateFunctionDefinition
(this=0x105829e00, PointOfInstantiation={ID = 735250}, Function=0x10600b980,
Recursive=true, DefinitionRequired=false) at
SemaTemplateInstantiateDecl.cpp:2344
#11 0x000000010055c9ac in clang::Sema::PerformPendingInstantiations
(this=0x105829e00, LocalOnly=false) at SemaTemplateInstantiateDecl.cpp:3068
#12 0x000000010030957b in clang::Sema::ActOnEndOfTranslationUnit
(this=0x105829e00) at Sema.cpp:370
#13 0x00000001002f1796 in clang::Parser::ParseTopLevelDecl
(this=0x7fff5fbfdd10, Result=@0x7fff5fbfdf90) at Parser.cpp:436
#14 0x00000001002af823 in clang::ParseAST (S=@0x105829e00, PrintStats=false) at
ParseAST.cpp:63
#15 0x000000010008c72b in clang::ASTFrontendAction::ExecuteAction
(this=0x10520f150) at FrontendAction.cpp:367
#16 0x000000010008c832 in clang::FrontendAction::Execute (this=0x10520f150) at
FrontendAction.cpp:287
#17 0x000000010006d85e in clang::CompilerInstance::ExecuteAction
(this=0x10520ec50, Act=@0x10520f150) at CompilerInstance.cpp:562
#18 0x000000010002cd1f in clang::ExecuteCompilerInvocation (Clang=0x10520ec50)
at ExecuteCompilerInvocation.cpp:154
#19 0x0000000100022044 in cc1_main (ArgBegin=0x7fff5fbfe7a0,
ArgEnd=0x7fff5fbfe7a8, Argv0=0x10520eb08
"/Users/thakis/src/llvm-rw/Debug+Asserts/bin/clang++", MainAddr=0x1000294dc) at
cc1_main.cpp:158
#20 0x0000000100029707 in main (argc_=3, argv_=0x7fff5fbff798) at
driver.cpp:270
(gdb) 


The ii file is attached.

-- 
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