Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2019 05:11:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 237190] cc drops core in configure test
Message-ID:  <bug-237190-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237190

            Bug ID: 237190
           Summary: cc drops core in configure test
           Product: Base System
           Version: 12.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: andrew@tao11.riddles.org.uk

Created attachment 203574
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D203574&action=
=3Dedit
reproducer source

Running 12-stable at revision=3D346019

./configure test in sysutils/cdrtools makes cc drop a core (this is cc itse=
lf
that crashes, NOT the generated conftest program).

Reproducer files attached.

Backtrace:

* thread #1, name =3D 'cc', stop reason =3D signal SIGSEGV
  * frame #0: 0x00000000015fdeb1 cc`::AddOverloadCandidate() [inlined]
getNumParams at Type.h:3668
    frame #1: 0x00000000015fdeaa cc`::AddOverloadCandidate() at
SemaOverload.cpp:6043
    frame #2: 0x000000000155b2df cc`::DiagnoseEmptyLookup() at
SemaExpr.cpp:1899
    frame #3: 0x00000000016246d1 cc`::BuildRecoveryCallExpr() at
SemaOverload.cpp:11889
    frame #4: 0x000000000161270a cc`::FinishOverloadedCallExpr() at
SemaOverload.cpp:12007
    frame #5: 0x00000000016125c4 cc`::BuildOverloadedCallExpr() at
SemaOverload.cpp:12122
    frame #6: 0x0000000001555501 cc`::ActOnCallExpr() at SemaExpr.cpp:5387
    frame #7: 0x0000000001b90a9a cc`::ParsePostfixExpressionSuffix() at
ParseExpr.cpp:1681
    frame #8: 0x0000000001b92fbb cc`::ParseCastExpression() at
ParseExpr.cpp:1448
    frame #9: 0x0000000001b8e785 cc`::ParseAssignmentExpression() [inlined]
ParseCastExpression at ParseExpr.cpp:525
    frame #10: 0x0000000001b8e773 cc`::ParseAssignmentExpression() at
ParseExpr.cpp:172
    frame #11: 0x0000000001b8e68e
cc`clang::Parser::ParseExpression(clang::Parser::TypeCastState) at
ParseExpr.cpp:124
    frame #12: 0x0000000001bb9567 cc`::ParseReturnStatement() at
ParseStmt.cpp:1905
    frame #13: 0x0000000001bb45b0
cc`::ParseStatementOrDeclarationAfterAttributes() at ParseStmt.cpp:0
    frame #14: 0x0000000001bb3ddf cc`::ParseStatementOrDeclaration() at
ParseStmt.cpp:110
    frame #15: 0x0000000001bbae99 cc`::ParseCompoundStatementBody() at
ParseStmt.cpp:989
    frame #16: 0x0000000001bbb7c0 cc`::ParseFunctionStatementBody() at
ParseStmt.cpp:1962
    frame #17: 0x0000000001b0b428 cc`::ParseFunctionDefinition() at
Parser.cpp:1243
    frame #18: 0x0000000001b6f443 cc`::ParseDeclGroup() at ParseDecl.cpp:19=
68
    frame #19: 0x0000000001b0a6f9 cc`::ParseDeclOrFunctionDefInternal() at
Parser.cpp:1012
    frame #20: 0x0000000001b0a177 cc`::ParseDeclarationOrFunctionDefinition=
()
at Parser.cpp:1028
    frame #21: 0x0000000001b08dcf cc`::ParseExternalDeclaration() at
Parser.cpp:853
    frame #22: 0x0000000001b07f0b cc`::ParseTopLevelDecl() at Parser.cpp:610
    frame #23: 0x0000000001b037a5 cc`::ParseAST() at ParseAST.cpp:158
    frame #24: 0x000000000151d755 cc`::Execute() at FrontendAction.cpp:910
    frame #25: 0x0000000002326d28 cc`::ExecuteAction() at
CompilerInstance.cpp:961
    frame #26: 0x00000000010d51f4 cc`::ExecuteCompilerInvocation() at
ExecuteCompilerInvocation.cpp:257
    frame #27: 0x00000000010c68af cc`::cc1_main() at cc1_main.cpp:218
    frame #28: 0x00000000010d2db1 cc`main [inlined] ExecuteCC1Tool at
driver.cpp:310
    frame #29: 0x00000000010d2d84 cc`main at driver.cpp:382
    frame #30: 0x00000000010c610b cc`_start(ap=3D<unavailable>,
cleanup=3D<unavailable>) at crt1.c:76

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237190-227>