<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to reproduce the bug.
-->

I tried to build, execute, deploy, and use Teaclave like this:

```
python3 wasm_tvm_mnist.py
```

I expected to see this happen: example succeed

Instead, this happened (got from 
https://github.com/apache/incubator-teaclave/actions/runs/4781599186/jobs/8500213290):
 
```
[INFO  teaclave_execution_service_enclave::service] Executor 
9743b589-53cf-4198-8ae9-0701f09d6072 accepted a new task, executing...
[+] login
[+] user_mnist registering function
[+] user_mnist creating task
[+] user_mnist registering input file
[+] user_mnist assigning data to task
[+] user_mnist approving task
[+] user_mnist invoking task
[+] user_mnist getting task result
[+] User result: Exception: unreachable
/__w/incubator-teaclave/incubator-teaclave/build
[2023-04-24T02:15:50Z ERROR teaclave_binder::ipc::app] ecall_ipc_entry_point, 
app sgx_error:EnclaveLost
[2023-04-24T02:15:50Z ERROR teaclave_binder::ipc::app] ecall_ipc_entry_point, 
app sgx_error:InvalidEcnalveId
[2023-04-24T02:15:50Z ERROR teaclave_binder::binder] 
IpcError(SgxError(InvalidEcnalveId))
```
### Meta
<!--
Include logs in the code block by setting `TEACLAV_LOG=debug` in your 
environment.
E.g. `TEACLAVE_LOG=debug docker-compose -f docker-compose-ubuntu-1804-isgx.yml 
up --build`.
-->
<p>

I also execute the compiled mnist.wasm in the unit test `test_wamr_tvm_mnist`. 
The result is `failed`. The log is (got from 
https://github.com/henrysun007/incubator-teaclave/actions/runs/4784274928/jobs/8505556632):

```
start running tests
   0:     0x7f6738f6efec - 
<std::sys_common::backtrace::_print::DisplayBacktrace as 
core::fmt::Display>::fmt::hbd9cc9b56b58936d
   1:     0x7f6738fba29e - core::fmt::write::hb16e423f59ee98d6
   2:     0x7f6738f79635 - std::io::Write::write_fmt::hac851a30a4f70a76
   3:     0x7f6738f6ee3d - std::sys_common::backtrace::print::he991c9a6fb47481b
   4:     0x7f6738f7e184 - 
std::panicking::default_hook::{{closure}}::h496b5b005061bc78
   5:     0x7f6738f7de7d - std::panicking::default_hook::h44b4fd858a2a1810
   6:     0x7f6738f7e7a1 - 
std::panicking::rust_panic_with_hook::h3cdeac32c7f00123
   7:     0x7f6738f6f1f7 - 
std::panicking::begin_panic_handler::{{closure}}::hc91f39e6c82d93a6
   8:     0x7f6738f6f12c - 
std::sys_common::backtrace::__rust_end_short_backtrace::h25e297996564608f
   9:     0x7f6738f7e312 - rust_begin_unwind
  10:     0x7f67387ab423 - core::panicking::panic_fmt::h6a139aaa307f7e56
  11:     0x7f67387ab6f3 - core::result::unwrap_failed::h4771d01640dff1ba
  12:     0x7f6738df01d4 - 
teaclave_executor::wamr::tests::test_wamr_tvm_mnist::h276dd61[552](https://github.com/henrysun007/incubator-teaclave/actions/runs/4784274928/jobs/8505556632#step:5:553)d39cbe
  13:     0x7f6738df1bbb - teaclave_test_utils::test::hdd0d6cc3f50db8cc
  14:     0x7f6738defadd - 
teaclave_executor::wamr::tests::run_tests::h90c58ed5ee74d753
  15:     0x7f6738ded778 - 
teaclave_executor::tests::run_tests::h2b27d562fc87ca9a
  16:     0x7f6738dc197c - 
teaclave_unit_tests_enclave::handle_run_test::hae284ed7dcd93635
  17:     0x7f6738dc1b71 - <teaclave_unit_tests_enclave::ServeInstance<U,V> as 
teaclave_binder::ipc::IpcService<U,V>>::handle_invoke::he248472f73d0fa82
  18:     0x7f6738dc2103 - <teaclave_binder::ipc::enclave::ECallReceiver as 
teaclave_binder::ipc::IpcReceiver>::dispatch::h9b3f223f92f15fe4
  19:     0x7f6738dc1c55 - ecall_ipc_entry_point
  20:     0x7f67387bc4e2 - sgx_ecall_ipc_entry_point
  21:     0x7f6738f89d18 - sgx_trts::call::ecall::ecall::hb034e29c732150a2
  22:     0x7f67391750cb - enter_enclave
  23:     0x7f6739174c9b - enclave_entry
testing test_wamr_tvm_mnist ... failed!
```


</p>
</details>


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

Message ID: <apache/incubator-teaclave/issues/6...@github.com>

Reply via email to