[LLVMbugs] [Bug 6647] New: SIGSEGV in clang::TokenLexer::Lex ()

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 18 06:04:07 PDT 2010


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

           Summary: SIGSEGV in clang::TokenLexer::Lex ()
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: josephwinston at mac.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4544)
 --> (http://llvm.org/bugs/attachment.cgi?id=4544)
sample code

/scratch/jody/src/Languages/LLVM/llvm-read-only/x86_64-unknown-linux-gnu-INSTALL/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name
DataManager.cpp -pic-level 2 -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -g -resource-dir
/scratch/jody/src/Languages/LLVM/llvm-read-only/x86_64-unknown-linux-gnu-INSTALL/lib/clang/1.5
-Wall -Wno-deprecated -fmessage-length 144 -fexceptions -fgnu-runtime -x c++
/tmp/example1.cpp

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2a95893e00 (LWP 10471)]
0x0000000000ea67dc in clang::TokenLexer::Lex ()
(gdb) where
#0  0x0000000000ea67dc in clang::TokenLexer::Lex ()
#1  0x0000000000e84913 in clang::Preprocessor::PeekAhead ()
#2  0x0000000000e62a10 in clang::Parser::ParseOptionalCXXScopeSpecifier ()
#3  0x0000000000e3337e in clang::Parser::TryAnnotateTypeOrScopeToken ()
#4  0x0000000000e55e81 in clang::Parser::ParseCastExpression ()
#5  0x0000000000e596f9 in clang::Parser::ParseCastExpression ()
#6  0x0000000000e599ac in clang::Parser::ParseRHSOfBinaryExpression ()
#7  0x0000000000e5402c in clang::Parser::ParseAssignmentExpression ()
#8  0x0000000000e7277a in clang::Parser::ParseLexedMethodDeclarations ()
#9  0x0000000000e4fc7c in clang::Parser::ParseCXXMemberSpecification ()
#10 0x0000000000e50990 in clang::Parser::ParseClassSpecifier ()
#11 0x0000000000e40572 in clang::Parser::ParseDeclarationSpecifiers ()
#12 0x0000000000e34353 in clang::Parser::ParseDeclarationOrFunctionDefinition
()
#13 0x0000000000e348a1 in clang::Parser::ParseDeclarationOrFunctionDefinition
()
#14 0x0000000000e34a15 in clang::Parser::ParseExternalDeclaration ()
#15 0x0000000000e3524a in clang::Parser::ParseTopLevelDecl ()
#16 0x0000000000a53e0f in clang::ParseAST ()
#17 0x00000000007f1fdf in clang::CompilerInstance::ExecuteAction ()
#18 0x00000000007e6a1e in cc1_main ()
#19 0x00000000007e40a6 in main ()
(gdb)

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