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-7279] User-friendly expectations reporting instead of relying on assert #4895

Closed
swift-ci opened this issue Mar 26, 2018 · 2 comments
Closed
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-7279
Radar rdar://problem/38877133
Original Reporter lwalkin (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug, StarterBug
Assignee None
Priority Medium

md5: 38670600674c2fcd6d5ed37f0b0e31db

Issue Description:

Swift (on Linux) complains about certain unmet expectations too loudly. Maybe make a proper message and exit instead of just asserting?

Assertion failed: Executable products should have exactly one executable target.: file …/Sources/PackageModel/Product.swift, line 77
Current stack trace:
0 libswiftCore.so 0x00007f1d0eb95ebb + 3792571
1 libswiftCore.so 0x00007f1d0ebd76d0 swift_stdlib_reportFatalErrorInFile + 221
2 libswiftCore.so 0x00007f1d0e9463dc + 1369052
3 libswiftCore.so 0x00007f1d0eb80342 + 3703618
4 libswiftCore.so 0x00007f1d0eb817a9 + 3708841
5 libswiftCore.so 0x00007f1d0e945ad6 + 1366742
6 libswiftCore.so 0x00007f1d0eb8010b + 3703051
7 libswiftCore.so 0x00007f1d0e945ad6 + 1366742
8 libswiftCore.so 0x00007f1d0eab3119 + 2863385
9 libswiftCore.so 0x00007f1d0e945440 assertionFailure(::file:line:flags🙂 + 44
10 swift-test 0x0000556e1de0a06f + 3530863
11 swift-test 0x0000556e1de09afa + 3529466
12 swift-test 0x0000556e1ddaf507 + 3159303
13 swift-test 0x0000556e1ddaa7eb + 3139563
14 swift-test 0x0000556e1dd530bd + 2781373
15 swift-test 0x0000556e1dd5939e + 2806686
16 swift-test 0x0000556e1deba996 + 4254102
17 swift-test 0x0000556e1dd50ab1 + 2771633
18 swift-test 0x0000556e1df710d1 + 5001425
19 swift-test 0x0000556e1dc9f21d + 2044445
20 swift-test 0x0000556e1dc6fb3d + 1850173
21 swift-test 0x0000556e1dc9e528 + 2041128
22 swift-test 0x0000556e1de79ef9 + 3989241
23 libc.so.6 0x00007f1d0c860740 __libc_start_main + 240
24 swift-test 0x0000556e1daf8c49 + 314441
Illegal instruction (core dumped)

@ankitspd
Copy link
Member

@swift-ci create

@ankitspd
Copy link
Member

Resolved by #1669

@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