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-4898] SPM crashes when rebuilding project #5018

Closed
swift-ci opened this issue May 16, 2017 · 3 comments
Closed

[SR-4898] SPM crashes when rebuilding project #5018

swift-ci opened this issue May 16, 2017 · 3 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-4898
Radar None
Original Reporter crspybits (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Swift version 3.1.1 (swift-3.1.1-RELEASE)

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

md5: 9bf69955feab059a1474dcaff5b965bd

cloned from:

  • SR-4367 SPM crashes when the user deletes the package checkouts directory

duplicates:

  • SR-3583 Segregate build products by platform

Issue Description:

My test build fails (with a bug in my testing), and when I immediately try to run the tests again, I get:

fatal error: 'try!' expression unexpectedly raised an error: PackageModel.Package.Error.noManifest(baseURL: "https://github.com/IBM-Swift/Kitura.git", version: Optional("1.7.3")): file /home/buildnode/disk2/workspace/oss-swift-3.1-package-linux-ubuntu-16_04/swift/stdlib/public/core/ErrorType.swift, line 182
Current stack trace:
0    libswiftCore.so                    0x00007f39629861c0 swift_reportError + 120
1    libswiftCore.so                    0x00007f39629a0ad0 _swift_stdlib_reportFatalErrorInFile + 100
2    libswiftCore.so                    0x00007f396279b40c <unavailable> + 1188876
3    libswiftCore.so                    0x00007f396293337d <unavailable> + 2859901
4    libswiftCore.so                    0x00007f396279abe6 <unavailable> + 1186790
5    libswiftCore.so                    0x00007f3962939290 <unavailable> + 2884240
6    libswiftCore.so                    0x00007f396279b01f <unavailable> + 1187871
7    libswiftCore.so                    0x00007f39628f9fa9 <unavailable> + 2625449
8    libswiftCore.so                    0x00007f396279abe6 <unavailable> + 1186790
9    libswiftCore.so                    0x00007f39628b7260 specialized _assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never + 144
10   libswiftCore.so                    0x00007f39627c3d15 <unavailable> + 1355029
11   swift-test                         0x000000000065fcc1 <unavailable> + 2489537
12   swift-test                         0x000000000065fde6 <unavailable> + 2489830
13   swift-test                         0x0000000000641443 <unavailable> + 2364483
14   swift-test                         0x000000000065ce24 <unavailable> + 2477604
15   swift-test                         0x0000000000459051 <unavailable> + 364625
16   swift-test                         0x0000000000641351 <unavailable> + 2364241
17   swift-test                         0x0000000000641cf8 <unavailable> + 2366712
18   swift-test                         0x000000000069b511 <unavailable> + 2733329
19   swift-test                         0x0000000000662474 <unavailable> + 2499700
20   swift-test                         0x000000000066106c <unavailable> + 2494572
21   swift-test                         0x000000000069b3b6 <unavailable> + 2732982
22   swift-test                         0x000000000040ebc6 <unavailable> + 60358
23   libc.so.6                          0x00007f39608f8740 __libc_start_main + 240
24   swift-test                         0x000000000040e9c9 <unavailable> + 59849
./run.sh: line 17:  4812 Illegal instruction     (core dumped) swift "${CMD}" -Xswiftc -DDEBUG -Xswiftc -DSERVER
${CMD} is just `test`

Seems I need to remove .build to rerun my test. Pretty time intensive for downloading packages and building 🙁.

Further info:
I think I have this in hand now. It may at best be indirectly related to SPM. I was using Dropbox to sync files between Linux and MacOS, and my .build files were getting synced. Somehow this caused my reported issue on the Linux side. When I changed the location of .build, the issue has gone away.

My build/test command is now:

swift "${CMD}" -Xswiftc -DDEBUG -Xswiftc -DSERVER --build-path "${buildLocation}"

where

"${buildLocation}" 

is outside of my Dropbox synced files (I'm using a folder in /tmp).

@ankitspd
Copy link
Member

@ankitspd
Copy link
Member

Ah, we have a PR that'll separate the underlying build directories for linux and macOS, so that should help.

@swift-ci
Copy link
Contributor Author

Comment by Christopher Prince (JIRA)

Rock'n! 🙂

@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