Skip to content

[SR-13021] Flaky AutoDiff tests on Linux: "Bus error (core dumped)" #55466

Open
@dan-zheng

Description

@dan-zheng
Previous ID SR-13021
Radar None
Original Reporter @dan-zheng
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 0798650a0cc204bcff960afbbf668fb6

is blocked by:

  • SR-14088 Re-enable SIL verification for differentiable_function and SIL diff witnesses

relates to:

  • TF-1312 Ubuntu 16 Regression: sr12886-sr112887-vjp-emitter-definite-initialization.swift Crashes the Linker

Issue Description:

Some AutoDiff tests occasionally flake on Linux:

12:26:01 ******************** TEST 'Swift(linux-x86_64) :: AutoDiff/compiler_crashers_fixed/sr12493-differentiable-function-extract-subst-function-type.swift' FAILED ********************
12:26:01 Script:
12:26:01 --
12:26:01 : 'RUN: at line 1';   /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-master/buildbot_linux/swift-linux-x86_64/bin/swiftc -target x86_64-unknown-linux-gnu -toolchain-stdlib-rpath  -module-cache-path '/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-master/buildbot_linux/swift-linux-x86_64/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache' -swift-version 4  -Xfrontend -ignore-module-source-info  -O /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-master/swift/test/AutoDiff/compiler_crashers_fixed/sr12493-differentiable-function-extract-subst-function-type.swift
12:26:01 --
12:26:01 Exit Code: 254
12:26:01 
12:26:01 Command Output (stderr):
12:26:01 --
12:26:01 
clang-10: error: unable to execute command: Bus error (core dumped)
12:26:01 clang-10: error: linker command failed due to signal (use -v to see invocation)
12:26:01 <unknown>:0: error: link command failed with exit code 254 (use -v to see invocation)
12:26:01 
12:26:01 --
12:26:01 
12:26:01 ********************

More context: #30817 (comment)

Affected tests:

The RUN lines of flaky tests were simple:

  • %target-build-swift -O %s

  • %target-build-swift -g %s

This issue tracks fixing the flakiness and re-enabling the tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AutoDiffbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions