[llvm-bugs] [Bug 42141] New: Syntax error in the source caused abnormal termination

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 5 08:43:54 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42141

            Bug ID: 42141
           Summary: Syntax error in the source caused abnormal termination
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ntpower7000 at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

error: reference to non-static member function must be called; did you mean to
call it with no arguments?
          handleBoarderCollision(superFrog.getPos()[xIndex],
superFrog.getPos()[yIndex], superFrog.getPos[zIndex],
                                                                               
         ~~~~~~~~~~^~~~~~
                                                                               
                         ()
#0 0x00007fbe370663c8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/llvm-4.0/bin/../lib/libLLVM-4.0.so.1+0x6d43c8)
#1 0x00007fbe37064586 llvm::sys::RunSignalHandlers()
(/usr/lib/llvm-4.0/bin/../lib/libLLVM-4.0.so.1+0x6d2586)
#2 0x00007fbe370646bb (/usr/lib/llvm-4.0/bin/../lib/libLLVM-4.0.so.1+0x6d26bb)
#3 0x00007fbe39933150 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x13150)
#4 0x000055cd91bdc698 clang::Lexer::getRawToken(clang::SourceLocation,
clang::Token&, clang::SourceManager const&, clang::LangOptions const&, bool)
(/usr/lib/llvm-4.0/bin/clang+0x17a7698)
#5 0x000055cd91bdcba8 clang::Lexer::MeasureTokenLength(clang::SourceLocation,
clang::SourceManager const&, clang::LangOptions const&)
(/usr/lib/llvm-4.0/bin/clang+0x17a7ba8)
#6 0x000055cd91bdcce7 clang::Lexer::getLocForEndOfToken(clang::SourceLocation,
unsigned int, clang::SourceManager const&, clang::LangOptions const&)
(/usr/lib/llvm-4.0/bin/clang+0x17a7ce7)
#7 0x000055cd9135558b (/usr/lib/llvm-4.0/bin/clang+0xf2058b)
#8 0x000055cd91353086 (/usr/lib/llvm-4.0/bin/clang+0xf1e086)
#9 0x000055cd91346ec9 (/usr/lib/llvm-4.0/bin/clang+0xf11ec9)
#10 0x000055cd9135063b (/usr/lib/llvm-4.0/bin/clang+0xf1b63b)
#11 0x000055cd913508cc (/usr/lib/llvm-4.0/bin/clang+0xf1b8cc)
#12 0x000055cd9135310f (/usr/lib/llvm-4.0/bin/clang+0xf1e10f)
#13 0x000055cd91342354 clang::Sema::CorrectDelayedTyposInExpr(clang::Expr*,
clang::VarDecl*, llvm::function_ref<clang::ActionResult<clang::Expr*, true>
(clang::Expr*)>) (/usr/lib/llvm-4.0/bin/clang+0xf0d354)
#14 0x000055cd913457e4 clang::Sema::ActOnFinishFullExpr(clang::Expr*,
clang::SourceLocation, bool, bool, bool) (/usr/lib/llvm-4.0/bin/clang+0xf107e4)
#15 0x000055cd9146f670
clang::Sema::ActOnExprStmt(clang::ActionResult<clang::Expr*, true>)
(/usr/lib/llvm-4.0/bin/clang+0x103a670)
#16 0x000055cd90fdbc89 clang::Parser::ParseExprStatement()
(/usr/lib/llvm-4.0/bin/clang+0xba6c89)
#17 0x000055cd90fdc6bc
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/usr/lib/llvm-4.0/bin/clang+0xba76bc)
#18 0x000055cd90fdcee0
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*)
(/usr/lib/llvm-4.0/bin/clang+0xba7ee0)
#19 0x000055cd90fe0a00 clang::Parser::ParseCompoundStatementBody(bool)
(/usr/lib/llvm-4.0/bin/clang+0xbaba00)
#20 0x000055cd90fe108e clang::Parser::ParseCompoundStatement(bool, unsigned
int) (/usr/lib/llvm-4.0/bin/clang+0xbac08e)
#21 0x000055cd90fdc4b2
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/usr/lib/llvm-4.0/bin/clang+0xba74b2)
#22 0x000055cd90fdcee0
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*)
(/usr/lib/llvm-4.0/bin/clang+0xba7ee0)
#23 0x000055cd90fdd066 clang::Parser::ParseStatement(clang::SourceLocation*,
bool) (/usr/lib/llvm-4.0/bin/clang+0xba8066)
#24 0x000055cd90fdf4bc clang::Parser::ParseIfStatement(clang::SourceLocation*)
(/usr/lib/llvm-4.0/bin/clang+0xbaa4bc)
#25 0x000055cd90fdc37b
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/usr/lib/llvm-4.0/bin/clang+0xba737b)
#26 0x000055cd90fdcee0
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*)
(/usr/lib/llvm-4.0/bin/clang+0xba7ee0)
#27 0x000055cd90fe0a00 clang::Parser::ParseCompoundStatementBody(bool)
(/usr/lib/llvm-4.0/bin/clang+0xbaba00)
#28 0x000055cd90fe108e clang::Parser::ParseCompoundStatement(bool, unsigned
int) (/usr/lib/llvm-4.0/bin/clang+0xbac08e)
#29 0x000055cd90fdc4b2
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/usr/lib/llvm-4.0/bin/clang+0xba74b2)
#30 0x000055cd90fdcee0
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*)
(/usr/lib/llvm-4.0/bin/clang+0xba7ee0)
#31 0x000055cd90fdd066 clang::Parser::ParseStatement(clang::SourceLocation*,
bool) (/usr/lib/llvm-4.0/bin/clang+0xba8066)
#32 0x000055cd90fdf4bc clang::Parser::ParseIfStatement(clang::SourceLocation*)
(/usr/lib/llvm-4.0/bin/clang+0xbaa4bc)
#33 0x000055cd90fdc37b
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/usr/lib/llvm-4.0/bin/clang+0xba737b)
#34 0x000055cd90fdcee0
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*)
(/usr/lib/llvm-4.0/bin/clang+0xba7ee0)
#35 0x000055cd90fe0a00 clang::Parser::ParseCompoundStatementBody(bool)
(/usr/lib/llvm-4.0/bin/clang+0xbaba00)
#36 0x000055cd90fe30bb clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) (/usr/lib/llvm-4.0/bin/clang+0xbae0bb)
#37 0x000055cd90f59f73
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*)
(/usr/lib/llvm-4.0/bin/clang+0xb24f73)
#38 0x000055cd90f79063 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&,
unsigned int, clang::SourceLocation*, clang::Parser::ForRangeInit*)
(/usr/lib/llvm-4.0/bin/clang+0xb44063)
#39 0x000055cd90f54c41
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier)
(/usr/lib/llvm-4.0/bin/clang+0xb1fc41)
#40 0x000055cd90f55299 (/usr/lib/llvm-4.0/bin/clang+0xb20299)
#41 0x000055cd90f5b3a0
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) (/usr/lib/llvm-4.0/bin/clang+0xb263a0)
#42 0x000055cd90f5c287
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&)
(/usr/lib/llvm-4.0/bin/clang+0xb27287)
#43 0x000055cd90f51762 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/llvm-4.0/bin/clang+0xb1c762)
#44 0x000055cd90bd5916 clang::FrontendAction::Execute()
(/usr/lib/llvm-4.0/bin/clang+0x7a0916)
#45 0x000055cd90ba36fc
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/llvm-4.0/bin/clang+0x76e6fc)
#46 0x000055cd90c6ba13
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/llvm-4.0/bin/clang+0x836a13)
#47 0x000055cd9082d748 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-4.0/bin/clang+0x3f8748)
#48 0x000055cd9081fadb main (/usr/lib/llvm-4.0/bin/clang+0x3eaadb)
#49 0x00007fbe35aae1c1 __libc_start_main
/build/glibc-itYbWN/glibc-2.26/csu/../csu/libc-start.c:342:0
#50 0x000055cd9082bb7a _start (/usr/lib/llvm-4.0/bin/clang+0x3f6b7a)
Stack dump:
0. Program arguments: /usr/lib/llvm-4.0/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name s3545852.cpp -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-dwarf-column-info -debugger-tuning=gdb -resource-dir
/usr/lib/llvm-4.0/bin/../lib/clang/4.0.1 -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/x86_64-linux-gnu/c++/7.2.0
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/x86_64-linux-gnu/c++/7.2.0
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/backward
-internal-isystem /usr/include/clang/4.0.1/include/ -internal-isystem
/usr/local/include -internal-isystem
/usr/lib/llvm-4.0/bin/../lib/clang/4.0.1/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wall -std=c++14 -fdeprecated-macro
-fdebug-compilation-dir /home/cayn/UNI/Sem4_2019/Interative 3D Graphics and
Animation/Assignments/2 -ferror-limit 19 -fmessage-length 363
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/s3545852-1f6ec2.o -x c++ s3545852.cpp
1. s3545852.cpp:1174:4: current parser token '  updateFrogTrajecto'
2. s3545852.cpp:1146:1: parsing function body 'update'
3. s3545852.cpp:1146:1: in compound statement ('{}')
4. s3545852.cpp:1151:5: in compound statement ('{}')
5. s3545852.cpp:1158:2: in compound statement ('{}')
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.1-6 (tags/RELEASE_401/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s).

-- 
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/20190605/4d704e63/attachment-0001.html>


More information about the llvm-bugs mailing list