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

panic: entered unreachable code: Missing SCM: JustFail #2718

Open
langston-barrett opened this issue Mar 21, 2023 · 2 comments
Open

panic: entered unreachable code: Missing SCM: JustFail #2718

langston-barrett opened this issue Mar 21, 2023 · 2 comments
Labels
bug Something isn't working E-Easy Easy good first issue Good for newcomers

Comments

@langston-barrett
Copy link

Found with tree-crasher on 0e01a74.

/[]*1/u.exec();
thread 'main' panicked at 'internal error: entered unreachable code: Missing SCM: JustFail', /home/langston/.cargo/registry/src/github.com-1ecc6299db9ec823/regress-0.5.0/src/classicalbacktrack.rs:307:17
stack backtrace:
   0: rust_begin_unwind
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:64:14
   2: regress::classicalbacktrack::MatchAttempter<Input>::try_at_pos
   3: boa_engine::builtins::regexp::RegExp::abstract_builtin_exec
   4: boa_engine::builtins::regexp::RegExp::exec
   5: boa_engine::vm::code_block::<impl boa_engine::object::jsobject::JsObject>::call_internal
   6: boa_engine::object::internal_methods::function::function_call{{reify.shim}}
   7: <boa_engine::vm::opcode::call::Call as boa_engine::vm::opcode::Operation>::execute
   8: boa_engine::vm::<impl boa_engine::context::Context>::run
   9: boa_engine::context::Context::execute
  10: boa_engine::context::Context::eval_script
  11: boa::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@langston-barrett langston-barrett added the bug Something isn't working label Mar 21, 2023
@jasonwilliams
Copy link
Member

This one may just be a case of reporting the regex failure to Regress.
Obviously test it outside of Boa context first

@jasonwilliams jasonwilliams added good first issue Good for newcomers E-Easy Easy labels Apr 12, 2023
@postmeback
Copy link
Contributor

Can you give me some context on this? I would love to get started on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working E-Easy Easy good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants