Skip to content

Segfault update thread-local panic count on macOS in empty unit test #50867

Closed
@jdm

Description

@jdm

text_util.rs:

#[test]
fn test_transform_compress_none() {
}
$ rustup override set nightly-2018-04-30
info: using existing install for 'nightly-2018-04-30-x86_64-apple-darwin'
info: override toolchain for '/Users/servo/test' set to 'nightly-2018-04-30-x86_64-apple-darwin'
$ rustc text_util.rs --test
$ ./text_util

running 1 test
test test_transform_compress_none ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

$ rustup override set nightly-2018-05-03
info: using existing install for 'nightly-2018-05-03-x86_64-apple-darwin'
info: override toolchain for '/Users/servo/test' set to 'nightly-2018-05-03-x86_64-apple-darwin'

  nightly-2018-05-03-x86_64-apple-darwin unchanged - rustc 1.27.0-nightly (8a37c75a3 2018-05-02)

server:test servo$ rustc text_util.rs --test
server:test servo$ ./text_util

running 1 test
Segmentation fault: 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-bugCategory: This is a bug.O-macosOperating system: macOST-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions