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/19 04:18:05 UTC

[GitHub] [incubator-teaclave-sgx-sdk] fredfortier opened a new issue #238: v1.1.2: `InternalBacktrace` in the backtrace feature of tstd

fredfortier opened a new issue #238:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/238


   I'm trying adapt the `error-chain` crate. It relies on the `backtrace` crate which I replaced by the backtrace feature of tstd. I don't know what to do with the hidden `InternalBacktrace` here: https://github.com/rust-lang-nursery/error-chain/blob/44c9240940e974695386cb7b9ab020df1147dbfe/src/lib.rs#L558
   
   ```
   error[E0432]: unresolved import `std::backtrace::InternalBacktrace`
      --> /root/.cargo/git/checkouts/error-chain-cd67bb92899312ae/0503635/src/lib.rs:560:9
       |
   560 | pub use std::backtrace::InternalBacktrace;
       |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `InternalBacktrace` in `backtrace`
   ```


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


[GitHub] [incubator-teaclave-sgx-sdk] fredfortier commented on issue #238: v1.1.2: `InternalBacktrace` in the backtrace feature of tstd

Posted by GitBox <gi...@apache.org>.
fredfortier commented on issue #238:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/238#issuecomment-633793786


   I was able port this crate, at least according to my needs.


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


[GitHub] [incubator-teaclave-sgx-sdk] dingelish commented on issue #238: v1.1.2: `InternalBacktrace` in the backtrace feature of tstd

Posted by GitBox <gi...@apache.org>.
dingelish commented on issue #238:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/238#issuecomment-630599384


   It seems error-chain needs porting. @fredfortier do you need help with the porting?


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


[GitHub] [incubator-teaclave-sgx-sdk] mssun commented on issue #238: v1.1.2: `InternalBacktrace` in the backtrace feature of tstd

Posted by GitBox <gi...@apache.org>.
mssun commented on issue #238:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/238#issuecomment-630597122


   I believe there is something wrong.
   
   `InternalBacktrace` is not an std struct, but from here: https://github.com/rust-lang-nursery/error-chain/blob/master/src/backtrace.rs#L16.
   
   I'm not sure what changes did you make to adapt with the SDK. It would be very helpful if you can provide me more details.


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


[GitHub] [incubator-teaclave-sgx-sdk] fredfortier commented on issue #238: v1.1.2: `InternalBacktrace` in the backtrace feature of tstd

Posted by GitBox <gi...@apache.org>.
fredfortier commented on issue #238:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/238#issuecomment-631172587


   @mssun You were right. I confused error-chain backtrace module with the std. I got past this issue but now getting the error below. Like @dingelish suggested, I'm just trying to port the crate.
   ```
   error[E0308]: mismatched types
      --> /root/.cargo/git/checkouts/error-chain-cd67bb92899312ae/f73f94d/src/lib.rs:691:9
       |
   691 |         self.backtrace.as_backtrace()
       |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::backtrace::Backtrace`, found `()`
       |
       = note: expected enum `core::option::Option<&std::backtrace::Backtrace>`
                  found enum `core::option::Option<&()>`
   
   error: aborting due to previous error
   ```


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


[GitHub] [incubator-teaclave-sgx-sdk] fredfortier commented on issue #238: v1.1.2: `InternalBacktrace` in the backtrace feature of tstd

Posted by GitBox <gi...@apache.org>.
fredfortier commented on issue #238:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/238#issuecomment-631166354


   @dingelish Yes, I would appreciate help with the porting. 


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


[GitHub] [incubator-teaclave-sgx-sdk] fredfortier closed issue #238: v1.1.2: `InternalBacktrace` in the backtrace feature of tstd

Posted by GitBox <gi...@apache.org>.
fredfortier closed issue #238:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/238


   


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