You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by Baltasar Dinis <no...@github.com.INVALID> on 2021/04/28 07:39:24 UTC

[apache/incubator-teaclave-sgx-sdk] Assertion failure on `sgx_tstd/hashbrown` (#339)

Hi,

For some reason, I keep getting a panic from an assertion in `sgx_tstd/hashbrown/src/raw/sse2.rs`.
This is on the current `master` (`c2698dc2685f8dcd9550086c62077bceff15ded0`).

The error is the following:
```
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `8`,
 right: `0`', /<redacted>/sgx-sdk/sgx_tstd/hashbrown/src/raw/mod.rs:1388:9
fatal runtime error: failed to initiate panic, error 5
```

This seems to be checking some alignment, and, by the looks of it, it enforces that pointers should be aligned to a 16B boundary. However, AFAIK rust only requires 8B aligned pointers and I don't know how to force them to be 16B aligned.

Is there something I'm doing wrong?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/339

Re: [apache/incubator-teaclave-sgx-sdk] Assertion failure on `sgx_tstd/hashbrown` (#339)

Posted by Baltasar Dinis <no...@github.com.INVALID>.
Update: manually overriding the `cfg_if` to use the implementation in `generic.rs` instead of the `sse2.rs` seems to work. 

However, looking at my `/proc/cpuinfo` file it seems that my machine has sse2 support.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/339#issuecomment-828233536