[LLVMbugs] [Bug 17394] New: Clang crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 28 09:59:25 PDT 2013


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

            Bug ID: 17394
           Summary: Clang crash
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: corey at octayn.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

As clang asked: 

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.

The backtrace, also attached, is:

clang: SemaAccess.cpp:1397: AccessResult IsAccessible(clang::Sema&, const
{anonymous}::EffectiveContext&, {anonymous}::AccessTarget&): Assertion
`Path->Access <= UnprivilegedAccess && "access along best path worse than
direct?"' failed.
0  libLLVM-3.4svn.so 0x00007ff01f6a5892 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.4svn.so 0x00007ff01f6a5559
2  libpthread.so.0   0x00007ff01e63d870
3  libc.so.6         0x00007ff01dd9e3d9 gsignal + 57
4  libc.so.6         0x00007ff01dd9f7d8 abort + 328
5  libc.so.6         0x00007ff01dd97506
6  libc.so.6         0x00007ff01dd975b2
7  clang             0x0000000000a248a5
8  clang             0x0000000000a25a5d
9  clang             0x0000000000a26b1d
10 clang             0x0000000000a28b0d
clang::Sema::CheckMemberAccess(clang::SourceLocation, clang::CXXRecordDecl*,
clang::NamedDecl*) + 221
11 clang             0x0000000000bed4a1
clang::Sema::CorrectTypo(clang::DeclarationNameInfo const&,
clang::Sema::LookupNameKind, clang::Scope*, clang::CXXScopeSpec*,
clang::CorrectionCandidateCallback&, clang::DeclContext*, bool,
clang::ObjCObjectPointerType const*, bool) + 5505
12 clang             0x0000000000b58513
clang::Sema::DiagnoseEmptyLookup(clang::Scope*, clang::CXXScopeSpec&,
clang::LookupResult&, clang::CorrectionCandidateCallback&,
clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>) + 563
13 clang             0x0000000000c18946
14 clang             0x0000000000c25c8b
15 clang             0x0000000000c25eea
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 602
16 clang             0x0000000000b6cc87
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 1383
17 clang             0x00000000009c2b40
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) + 3440
18 clang             0x00000000009be69b
clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) + 123
19 clang             0x00000000009bfefd
clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) +
29
20 clang             0x00000000009bff8f
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
21 clang             0x00000000009c0190
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*,
true>, clang::prec::Level) + 368
22 clang             0x00000000009bff9f
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 47
23 clang             0x00000000009c1ae1
clang::Parser::ParseExpressionList(llvm::SmallVectorImpl<clang::Expr*>&,
llvm::SmallVectorImpl<clang::SourceLocation>&, void
(clang::Sema::*)(clang::Scope*, clang::Expr*, llvm::ArrayRef<clang::Expr*>),
clang::Expr*) + 193
24 clang             0x00000000009c2a3d
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) + 3181
25 clang             0x00000000009be69b
clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) + 123
26 clang             0x00000000009bfefd
clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) +
29
27 clang             0x00000000009bff8f
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
28 clang             0x00000000009c0009
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
29 clang             0x00000000009ed0c6 clang::Parser::ParseExprStatement() +
54
30 clang             0x00000000009ec2af
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2751
31 clang             0x00000000009ec405
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 117
32 clang             0x00000000009f2957
33 clang             0x00000000009ed5b5
clang::Parser::ParseIfStatement(clang::SourceLocation*) + 485
34 clang             0x00000000009ec0ab
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2235
35 clang             0x00000000009ec405
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 117
36 clang             0x00000000009ef365
clang::Parser::ParseCompoundStatementBody(bool) + 1685
37 clang             0x00000000009ef6a5
clang::Parser::ParseCompoundStatement(bool, unsigned int) + 37
38 clang             0x00000000009ef6f2
clang::Parser::ParseCompoundStatement(bool) + 18
39 clang             0x00000000009ebce2
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 1266
40 clang             0x00000000009ec405
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 117
41 clang             0x00000000009f2957
42 clang             0x00000000009edd43
clang::Parser::ParseWhileStatement(clang::SourceLocation*) + 531
43 clang             0x00000000009ebb09
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 793
44 clang             0x00000000009ec405
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 117
45 clang             0x00000000009ef365
clang::Parser::ParseCompoundStatementBody(bool) + 1685
46 clang             0x00000000009f1476
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 198
47 clang             0x00000000009944b1
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
1249
48 clang             0x00000000009ac107
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1383
49 clang             0x00000000009912a5
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 229
50 clang             0x00000000009918e6
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 1014
51 clang             0x0000000000995d4a
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 330
52 clang             0x00000000009962d2
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 194
53 clang             0x000000000098f01b clang::ParseAST(clang::Sema&, bool,
bool) + 283
54 clang             0x000000000081b0ff clang::CodeGenAction::ExecuteAction() +
79
55 clang             0x00000000006a9459 clang::FrontendAction::Execute() + 249
56 clang             0x0000000000689e3a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 346
57 clang             0x0000000000672e10
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1776
58 clang             0x000000000066e598 cc1_main(char const**, char const**,
char const*, void*) + 1240
59 clang             0x000000000066aef5 main + 1589
60 libc.so.6         0x00007ff01dd8abc5 __libc_start_main + 245
61 clang             0x000000000066d311
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name TCPServer.cpp
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-linker-version 2.23.2 -coverage-file
/home/cmr/arke/util/Utilities/build/CMakeFiles/UtilitiesObjects.dir/TCPServer.cpp.o
-resource-dir /usr/bin/../lib/clang/3.4 -I /usr/include/postgresql/server
-I/usr/local/include -internal-isystem /usr/include/c++/v1 -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-cast-align
-Wno-exit-time-destructors -Wno-global-constructors -std=c++11
-fdeprecated-macro -fdebug-compilation-dir /home/cmr/arke/util/Utilities/build
-ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-slp -o
CMakeFiles/UtilitiesObjects.dir/TCPServer.cpp.o -x c++
/home/cmr/arke/util/Utilities/TCPServer.cpp 
1.    /home/cmr/arke/util/Utilities/TCPServer.cpp:32:135: current parser token
')'
2.    /home/cmr/arke/util/Utilities/TCPServer.cpp:28:35: parsing function body
'acceptWorkerRun'
3.    /home/cmr/arke/util/Utilities/TCPServer.cpp:28:35: in compound statement
('{}')
4.    /home/cmr/arke/util/Utilities/TCPServer.cpp:29:23: in compound statement
('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (trunk 191612)
Target: x86_64-unknown-linux-gnu
Thread model: posix
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: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/TCPServer-4aa368.cpp
clang: note: diagnostic msg: /tmp/TCPServer-4aa368.sh
clang: note: diagnostic msg: 

********************

-- 
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/20130928/5d29510c/attachment.html>


More information about the llvm-bugs mailing list