Skip to content
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

Printing backtrace ip for x86_64-fortanix-unknown-sgx #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jethrogb
Copy link
Contributor

Not sure what happened, this used to work.

cc @VardhanThigle

@@ -196,30 +198,32 @@ impl BacktraceFrameFmt<'_, '_, '_> {
// To reduce TCB size in Sgx enclave, we do not want to implement symbol
// resolution functionality. Rather, we can print the offset of the
// address here, which could be later mapped to correct function.
#[cfg(all(feature = "std", target_env = "sgx", target_vendor = "fortanix"))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the removal of this feature directive will break this building when included into libstd?

write!(self.fmt.fmt, "{:1$}", "", HEX_WIDTH + 3)?;
}
}

// Next up write out the symbol name, using the alternate formatting for
// more information if we're a full backtrace. Here we also handle
// symbols which don't have a name,
#[cfg(not(all(target_env = "sgx", target_vendor = "fortanix")))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this use an if instead of using an attribute?

@jethrogb
Copy link
Contributor Author

I need to take a look at https://github.com/nhynes/backtrace-rs/tree/fix-sgx

@workingjubilee
Copy link
Member

@jethrogb Hello! Do you intend to pick up this PR again? Is this even still needed?

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

Successfully merging this pull request may close these issues.

3 participants