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-10035] Use of Date class causes core dump #52438

Open
swift-ci opened this issue Mar 2, 2019 · 1 comment
Open

[SR-10035] Use of Date class causes core dump #52438

swift-ci opened this issue Mar 2, 2019 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software JIT Linux Platform: Linux

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Mar 2, 2019

Previous ID SR-10035
Radar None
Original Reporter tigerpilot (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, JIT, Linux
Assignee tigerpilot (JIRA)
Priority Medium

md5: ce5d0031d8882b828f4421301cb0bff1

Issue Description:

james@james-Inspiron-580:~$ uname -a
Linux james-Inspiron-580 4.18.0-15-generic #16~18.04.1-Ubuntu SMP Thu Feb 7 14:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


james@james-Inspiron-580:~$ swift --version
Swift version 4.2.2 (swift-4.2.2-RELEASE)
Target: x86_64-unknown-linux-gnu

//

import Foundation

let date = Date()

james@james-Inspiron-580:~$ swift xdate.sw
<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: Program used external function '$S10Foundation4DateVACycfC' which could not be resolved!
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x3defe74]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x3dedc8c]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x3df0032]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f1746a01890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f1744e64e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f1744e66801]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x4b4f46]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x3d9049c]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0xffba8f]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0xffa655]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0xfe832d]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x4cd1e8]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x4b408a]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x4afdc0]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x46ae38]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f1744e47b97]
/swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift[0x46904a]
Stack dump:
0. Program arguments: /swift/swift-4.2.2-RELEASE-ubuntu18.04/usr/bin/swift -frontend -interpret xdate.sw -disable-objc-interop -color-diagnostics -module-name xdate
Aborted (core dumped)
james@james-Inspiron-580:~$ uname -r

Discovered Foundation uses libcurl. After installation of libcurl3, the problem got worse. Then replaced with libcurl4, problem was fixed. Note that while the Date class functions, the compiler shouldn't abort.

Leaving the bug for now.

@belkadan
Copy link
Contributor

belkadan commented Mar 4, 2019

@millenomi, do you know if corelibs Foundation is compiled with autolinking? It has to be, right?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software JIT Linux Platform: Linux
Projects
None yet
Development

No branches or pull requests

3 participants