You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/05/27 03:28:56 UTC

[GitHub] [incubator-teaclave-sgx-sdk] dingelish commented on issue #240: TLS -> TCS policy must be bound

dingelish commented on issue #240:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/240#issuecomment-633824518


   > I recently upgraded to sdk 1.1.2, and I'm getting this error with a TLS client similar to the example provided.
   > 
   > ```
   > thread '<unnamed>' panicked at 'Can not access a Thread Local Storage value: AccessError { msg: "If TLS data needs to be destructed, TCS policy must be Bound." }', /root/.cargo/git/checkouts/teaclave-sgx-sdk-be25c2ad2f03718d/253b3ac/sgx_tstd/src/thread/local.rs:148:9
   > note: Call backtrace::enable_backtrace with 'PrintFormat::Short/Full' for a backtrace.
   > fatal runtime error: failed to initiate panic, error 5
   > ```
   > 
   > Any clues on how to investigate would be appreciated.
   
   The reason is that something is relying on thread local storage, while your enclave is configured as `TCSPOLICY = UNBOUND` which means your enclave does not support thread local storage.
   
   The most frequent case is using `rand::thread_rng`, which depends on thread local storage.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org