Skip to content

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

Open
jethrogb wants to merge 1 commit intorust-lang:masterfrom
jethrogb:jb/fix_x86_64-fortanix-unknown-sgx
Open

Printing backtrace ip for x86_64-fortanix-unknown-sgx#268
jethrogb wants to merge 1 commit intorust-lang:masterfrom
jethrogb:jb/fix_x86_64-fortanix-unknown-sgx

Conversation

@jethrogb
Copy link
Contributor

Not sure what happened, this used to work.

cc @VardhanThigle

// 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?

// 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