Skip to content

Backtrace capture on SGX broken after (including) nightly-2023-11-20 #119806

Open
@kostko

Description

@kostko

It looks like that after #117895 (that seems to be the only SGX backtrace-related change between the two versions) enabling backtraces and attempting to capture one on the x86_64-fortanix-unknown-sgx target (sometimes) results in the enclave hanging.

Code

Unfortunately I don't currently have a minimal reproducer example, but roughly:

std::env::set_var("RUST_BACKTRACE", "1");
// ... unspecified logic, multiple nested frames ...
std::backtrace::Backtrace::capture();

I expected to see this happen: backtrace is captured without issues.

Instead, this happened: the Backtrace::capture() method appears to hang.

Version it worked on

It most recently worked on: nightly-2023-11-19

Version with regression

nightly-2023-11-20

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-SGXTarget: SGXP-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions