Skip to content

Spurious SIGILL (signal 4) when executing git from bootstrap test on x86_64-apple #50483

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

Closed
kennytm opened this issue May 6, 2018 · 1 comment
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@kennytm
Copy link
Member

kennytm commented May 6, 2018

Symptom: on x86_64-apple (macOS), when bootstrap tries to spawn a Command of git, it will crash with signal 4 (SIGILL), which itself will then abort bootstrap.

Sample crash log
[00:53:34] failures:
[00:53:34] 
[00:53:34] ---- builder::__test::dist_with_same_targets_and_hosts stdout ----
[00:53:34]  thread 'builder::__test::dist_with_same_targets_and_hosts' panicked at 'command did not execute successfully: "git" "log" "-1" "--date=short" "--pretty=format:%cd"
[00:53:34] expected success, got: signal: 4', build_helper/lib.rs:122:9
[00:53:34] 
[00:53:34] 
[00:53:34] failures:
[00:53:34]     builder::__test::dist_with_same_targets_and_hosts

...

/Users/travis/Library/Logs/DiagnosticReports/bootstrap-dbf53a170429e672_2018-05-06-124321_Traviss-Mac-1044.crash
Process:               bootstrap-dbf53a170429e672 [31299]
Path:                  /Users/USER/*/bootstrap-dbf53a170429e672
Identifier:            bootstrap-dbf53a170429e672
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bootstrap-dbf53a170429e672 [31128]
Responsible:           bootstrap-dbf53a170429e672 [31299]
User ID:               501
Date/Time:             2018-05-06 12:43:17.691 +0000
OS Version:            Mac OS X 10.13.3 (17D47)
Report Version:        12
Anonymous UUID:        A91A3A70-3ADA-D7A9-5891-C1A67A5778E7
Time Awake Since Boot: 3300 seconds
System Integrity Protection: enabled
Crashed Thread:        0
Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY
Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   exc handler [0]
Application Specific Information:
crashed on child side of fork pre-exec
BUG IN CLIENT OF LIBPLATFORM: os_once_t is corrupt
Thread 0 Crashed:
0   libsystem_platform.dylib       0x00007fff6f9b5ad4 _os_once_gate_corruption_abort + 23
1   libsystem_platform.dylib       0x00007fff6f9b5b6e _os_once_gate_wait_slow + 129
2   libsystem_platform.dylib       0x00007fff6f9b1ed4 _os_alloc_once + 42
3   libsystem_notify.dylib         0x00007fff6f9ac22f _notify_fork_child + 179
4   libSystem.B.dylib              0x00007fff6d4aeb13 libSystem_atfork_child + 49
5   libsystem_c.dylib              0x00007fff6f79083e fork + 47
6   bootstrap-dbf53a170429e672     0x000000010abfd3c0 std::sys::unix::process::process_inner::_$LT$impl$u20$std..sys..unix..process..process_common..Command$GT$::spawn::h6f398f162ba4d9eb + 912 (process_unix.rs:45)
7   bootstrap-dbf53a170429e672     0x000000010ac1bb2c std::process::Command::output::h4459d64179fe8aba + 28 (result.rs:468)
8   bootstrap-dbf53a170429e672     0x000000010abf43e3 build_helper::output::h8dce802bd45620c3 + 131 (lib.rs:114)
9   bootstrap-dbf53a170429e672     0x000000010a821fc7 bootstrap::channel::GitInfo::new::hb7b5bdb1aa6f99de + 887 (channel.rs:57)
10  bootstrap-dbf53a170429e672     0x000000010a73d672 bootstrap::Build::new::h1206ee0cf8c7def9 + 818 (lib.rs:341)

...

First seen on the following PRs:

@kennytm kennytm added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC labels May 6, 2018
@mati865 mati865 mentioned this issue Apr 8, 2019
@Mark-Simulacrum
Copy link
Member

Since we've moved CI systems and seem to have never seen this after the first few times I'm going to claim this has been "fixed" and close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants