Skip to content

[SR-9625] Crash caused by complex typealias  #295

Open
@swift-ci

Description

@swift-ci
Previous ID SR-9625
Radar None
Original Reporter sanch (JIRA User)
Type Bug

Attachment: Download

Environment

swift-4.2.1-RELEASE-ubuntu16.04/

Additional Detail from JIRA
Votes 0
Component/s Compiler, Docker
Labels Bug
Assignee None
Priority Medium

md5: f318ad5fe62fb8288a8400a2f62bf3fa

Issue Description:

Was trying to compile the FirebaseSwift library on swift-4.2.1-RELEASE-ubuntu16.04 environment via the Perfect Assistant when I got this crash:

1. While emitting IR SIL function "@$S4Just10HTTPMethodO13FirebaseSwiftE11justRequestyAA10HTTPResultCAA24URLComponentsConvertible_p_SDySSypGAIypSgSDyS2SGSDySSAA8HTTPFileOGSS_SStSgAKSbSdSgSSSg10Foundation4DataVSgyAA12HTTPProgressVcSgyAGcSgtcvg".1. While emitting IR SIL function "@$S4Just10HTTPMethodO13FirebaseSwiftE11justRequestyAA10HTTPResultCAA24URLComponentsConvertible_p_SDySSypGAIypSgSDyS2SGSDySSAA8HTTPFileOGSS_SStSgAKSbSdSgSSSg10Foundation4DataVSgyAA12HTTPProgressVcSgyAGcSgtcvg". for getter for justRequest at /perfectbuild/.build/checkouts/FirebaseSwift.git-6480259082665391381/Sources/FirebaseSwift/HTTPMethod+justRequest.swift:15:9

Upon investigating the file, this seems like the most likely culprit

typealias JustSendRequestType =     (URLComponentsConvertible, [String: Any], [String: Any],     Any?, [String: String], [String: HTTPFile], (String, String)?,     [String: String], Bool, Double?, String?, Data?,     (TaskProgressHandler)?, ((HTTPResult) -> Void)?) -> HTTPResult

aside: this is my first bug report so I apologize in advance for poor formatting

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions