facebookexperimental / facebookexperimental/hermit
intercepted.cpuid(eax).unwrap() panics
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
`hermit` panics while running a test case.
```
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /.../hermit/detcore/src/lib.rs:596:36
stack backtrace:
0: rust_begin_unwind
at /rustc/1eb62b1235fd77200e6bd967d70e83c0f2497233/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/1eb62b1235fd77200e6bd967d70e83c0f2497233/library/core/src/panicking.rs:65:14
2: core::panicking::panic
at /rustc/1eb62b1235fd77200e6bd967d70e83c0f2497233/library/core/src/panicking.rs:114:5
3: detcore::>::handle_cpuid_event::{{closure}}
4: reverie_ptrace::task::TracedTask::handle_signal::{{closure}}
5: reverie_ptrace::task::TracedTask::handle_stop_event::{{closure}}
6: as core::future::future::Future>::poll
7: reverie_ptrace::task::TracedTask::run_loop_internal::{{closure}}::{{closure}}::{{closure}}
8: as core::future::future::Future>::poll
9: reverie_ptrace::task::TracedTask::run::{{closure}}::{{closure}}::{{closure}}
10: tokio::loom::std::unsafe_cell::UnsafeCell::with_mut
11: tokio::runtime::task::core::Core::poll
12: tokio::runtime::task::harness::Harness::poll
13: tokio::task::local::LocalSet::tick
14: as core::future::future::Future>::poll
15: reverie_ptrace::tracer::Tracer::wait::{{closure}}
16: as core::future::future::Future>::poll
17: tokio::runtime::scheduler::current_thread::Context::enter
18: tokio::macros::scoped_tls::ScopedKey::set
19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
20: tokio::runtime::runtime::Runtime::block_on
21: hermit::run
22: hermit::run::RunOpts::run_in_container
23: reverie_process::container::Container::run::{{closure}}
24: clone
at /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
```
Indicate any of these common scenarios that apply:
- [ ] a program hangs under hermit
- [x] hermit panics internally
- [ ] hermit runs the program but divergence (nondeterminism) occurs
**Environment**
```
$ lsb_release -a ; uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
Linux aus-qemu-lab-1 5.4.0-122-generic #138-Ubuntu SMP Wed Jun 22 15:00:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
```
/proc/cpuinfo excerpt [Xeon Silver 4114](https://ark.intel.com/content/www/us/en/ark/products/123550/intel-xeon-silver-4114-processor-13-75m-cache-2-20-ghz.html):
```
...
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 85
model name : Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz
stepping : 4
microcode : 0x2006d05
cpu MHz : 800.098
...
```
**Additional context**
Log file (renamed to .txt but it is really an .xz compressed log file) [run.log.xz.txt](https://github.com/facebookexperimental/hermit/files/10138091/run.log.xz.txt)
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.