Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-7597] Running 'swift build' crashes with segmentation fault when dependency name equals project's name #5360

Closed
swift-ci opened this issue May 3, 2018 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented May 3, 2018

Previous ID SR-7597
Radar rdar://problem/39954169
Original Reporter rubenbaca (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Running:

  • Ubuntu 16.04 LTS

  • Swift version 4.1-dev (LLVM 260a172ffb, Clang cd84be6c42, Swift 05b1b2be7c)

Edit: Also happening in:

  • MacOS High Sierra (10.13.4 (17E199))

  • Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 28e1af0cc4c803ae8f0a03ca7b003f81

Issue Description:

Example:

> mkdir myProject && cd myProject
> swift package init --type executable

Edit Package.swift (added 1 dependency):

// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "myProject",
    dependencies: [
        // Dependencies declare other packages that this package depends on. 
        // .package(url: /* package url */, from: "1.0.0"),
        .package(url: "https://github.com/someone/myProject.git", from: "1.0.0"),
    ],  
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages which this package depends on. 
        .target(
            name: "myProject",
            dependencies: []),
    ]   
)

Build it:

> swift build
Segmentation fault (core dumped)
@ankitspd
Copy link
Member

ankitspd commented May 3, 2018

@swift-ci create

@ankitspd
Copy link
Member

#1715

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants