Skip to content

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

@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

Activity

added
C-bugCategory: This is a bug.
regression-untriagedUntriaged performance or correctness regression.
on Jan 10, 2024
added
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Jan 10, 2024
Noratrieb

Noratrieb commented on Jan 10, 2024

@Noratrieb
Member
added
O-SGXTarget: SGX
and removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Jan 10, 2024
Noratrieb

Noratrieb commented on Jan 15, 2024

@Noratrieb
Member

also @raoulstrackx @jethrogb as the other SGX maintainers

apiraino

apiraino commented on Feb 1, 2024

@apiraino
Contributor

WG-prioritization assigning priority (Zulip discussion).

@rustbot label -I-prioritize +P-medium

added and removed
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Feb 1, 2024
added
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Feb 1, 2024
BelalH

BelalH commented on Feb 9, 2024

@BelalH

Hello,
I am Belal Haikal an engineering manager at Fortanix, also colleague of Raoul and Jethro who were mentioned in a previous comment.
my team tried to reproduce the issue however we couldn't trigger the expected fault
is there a test service we can run to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @kostko@apiraino@BelalH@rustbot@Noratrieb

        Issue actions

          Backtrace capture on SGX broken after (including) nightly-2023-11-20 · Issue #119806 · rust-lang/rust