[LLVMbugs] [Bug 7072] New: Small crashing example: ()(

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 6 08:57:31 PDT 2010


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

           Summary: Small crashing example:   ()(
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4846)
 --> (http://llvm.org/bugs/attachment.cgi?id=4846)
tiny crashing example

clang++ crashes on a file containing the three characters:

()(


()(
 ^
Assertion failed: (!IncludeMacroStack.empty() && "Ran out of stack entries to
load"), function RemoveTopOfLexerStack, file PPLexerChange.cpp, line 286.
0  clang             0x00f57119 PrintStackTrace(void*) + 45
1  clang             0x00f57663 SignalHandler(int) + 374
2  libSystem.B.dylib 0x91cc842b _sigtramp + 43
3  libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4  libSystem.B.dylib 0x91d558e5 raise + 26
5  libSystem.B.dylib 0x91d6b99c abort + 93
6  libSystem.B.dylib 0x91d58544 __pthread_markcancel + 0
7  clang             0x00633430 clang::Preprocessor::RemoveTopOfLexerStack() +
94
8  clang             0x00629b2e clang::Preprocessor::ExitCachingLexMode() + 32
9  clang             0x006293cf clang::Preprocessor::CachingLex(clang::Token&)
+ 123
10 clang             0x00617390 clang::Preprocessor::Lex(clang::Token&) + 192
11 clang             0x005f44f5 clang::Parser::ConsumeParen() + 209
12 clang             0x00610f17 clang::Parser::SkipUntil(clang::tok::TokenKind
const*, unsigned int, bool, bool) + 403
13 clang             0x00617548 clang::Parser::SkipUntil(clang::tok::TokenKind,
bool, bool) + 60
14 clang             0x005d6d6b
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 193
15 clang             0x006124df
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AttributeList*, clang::AccessSpecifier) + 1001
16 clang             0x0061252c
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*,
clang::AccessSpecifier) + 66
17 clang             0x006142a4
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2222
18 clang             0x006143ea
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 268
19 clang             0x0023f3f1 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 426
20 clang             0x0006367f clang::ASTFrontendAction::ExecuteAction() + 269
21 clang             0x0006379c clang::FrontendAction::Execute() + 278
22 clang             0x00047427
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
23 clang             0x0002a11f cc1_main(char const**, char const**, char
const*, void*) + 1979
24 clang             0x0002e039 main + 272
25 clang             0x00028e5d start + 53
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name t.cc -pic-level 1
-mdisable-fp-elim -target-cpu yonah -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -fmacro-backtrace-limit 6 -ftemplate-backtrace-limit 10
-fmessage-length 80 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-TT0otg.s -x c++ t.cc 
1.    t.cc:1:3: current parser token '('
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

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