Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modern Linux live CD sometimes produces "panicked at 'called Option::unwrap() on a None value'" #547

Closed
peat-psuwit opened this issue Nov 3, 2021 · 2 comments
Labels

Comments

@peat-psuwit
Copy link

Sometimes, I'll hit this in the beginning of the boot process. Usually it's on the line Waiting for /dev to be fully populated..., or sometimes a bit after. The console produces the following trace:

panicked at 'called `Option::unwrap()` on a `None` value', src/rust/jit.rs:1532:38 v86_all.js:357:385
    console_log_from_wasm https://copy.sh/v86/build/v86_all.js:357
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:488648
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:185244
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:185780
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:185638
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:175688
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:175235
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:172991
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:614506
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:524203
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:1648544
     https://copy.sh/v86/build/v86_all.js line 358 > WebAssembly.instantiate:1648699
    db https://copy.sh/v86/build/v86_all.js:59
    a https://copy.sh/v86/build/v86_all.js:60
Uncaught RuntimeError: unreachable executed
    db https://copy.sh/v86/build/v86_all.js:59
    a https://copy.sh/v86/build/v86_all.js:60

The image is antiX-21_386-base.iso, available from https://antixlinux.com/download/. It's a modern, no-systemd distro based on Debian bullseye.

Interestingly, when booting this same image in the debug mode, it produces a different message at a different point. It produces Assertion failed at src/rust/jit.rs:481:25: '!is_near_end_of_page(current_address)' - 'TODO: Handle STI instruction near end of page' on Trying to unpack rootfs image as initramfs.... The non-debug version never has a problem with that part though.

@copy
Copy link
Owner

copy commented Nov 3, 2021

I can reproduce both issues.

@copy copy added the bug label Nov 3, 2021
copy added a commit that referenced this issue Nov 13, 2021
…r not being valid in fallthroughs, using index_for_addr instead (#547)
@copy
Copy link
Owner

copy commented Nov 14, 2021

The first issue is fixed now, thanks for the report.

The failing assertion likely doesn't matter. I will look at it at some point. For now you can comment it out if necessary.

And antiX is working pretty well!

Screenshot_2021-11-13_19-55-44

@copy copy closed this as completed Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants