out of c-slots during initialisation

Open
#626 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
43/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start by reproducing the failure with the supplied files.zip and trace the CapDL initializer panic at initialize.rs:1257, where OutOfSlots is unwrapped. Check how the unusual large aarch64 memory allocation affects slot use during initialization; the issue does not identify the relevant Microkit source file. Done means initialization completes for the supplied reproduction without running out of slots.

Written by the indexing model from the issue text.

Description

I am not sure whether this is a microkit issue or a rust-sel4 issue, but with some unusual large memory allocation for aarch64, the initialisation failed, saying that

Booting all finished, dropped to user space
INFO  [sel4_capdl_initializer::initialize] Starting CapDL initializer
panicked at /Users/ertos/.cargo/git/checkouts/rust-sel4-d7edb8214cac2bde/c819c27/crates/sel4-capdl-initializer/src/initialize.rs:1257:38:
called `Result::unwrap()` on an `Err` value: OutOfSlots
(aborted)
Found thread has no fault handler while trying to handle:
unknown fault
in thread 0x81bfc05800 "rootserver" at address 0x222860
With stack:
0x24dce0: 0x222a50
0x24dce8: 0x24dd38
0x24dcf0: 0x2229d4
0x24dcf8: 0x2229d4
0x24dd00: 0x2229a8
0x24dd08: 0x24dd38
0x24dd10: 0x22ccc8
0x24dd18: 0x69af20
0x24dd20: 0x21bbfc
0x24dd28: 0x2010c5
0x24dd30: 0x24dd80
0x24dd38: 0x24dd28
0x24dd40: 0x205528
0x24dd48: 0x1
0x24dd50: 0x24dda0
0x24dd58: 0x22cb98

It could be reproduced by files in files.zip.

Dominant language
Rust
Stars
224
Forks
90
Avg merge
5d 7h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from seL4/microkit

All issues in seL4/microkit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.