Skip to content

Deno Panic while testing #37007

Open

Description

@Astisme

Deno v2.9.7 on x86_64-pc-windows-msvc.

A panic occurred in Deno.

stack backtrace:

  • deno_panic::win64::CONTEXT::sp()
  • deno_panic::win64::trace()
  • deno::setup_panic_hook::closure$0()
  • std::panic::PanicHookInfo::new()
  • std::panicking::panic_with_hook()
  • std::panicking::panic_handler::closure$0()
  • std::sys::backtrace::__rust_end_short_backtrace<std::panicking::panic_handler::closure_env$0,never$>()
  • std::panicking::panic_handler()
  • core::panicking::panic_fmt()
  • core::panicking::panic_display()
  • core::option::expect_failed()
  • core::option::Option::expect()
  • deno::tools::coverage::byte_offset()
  • deno::tools::coverage::generate_coverage_report()
  • deno::tools::coverage::cover_files()
  • deno::tools::test::run_tests::async_fn$0()
  • deno::run_subcommand::async_fn$0::async_block$35()
  • futures_util::future::future::map::impl$2::poll<enum2$<deno::run_subcommand::async_fn$0::async_block_env$35>,deno::spawn_subcommand::async_block$0::closure_env$0<enum2$<deno::run_subcommand::async_fn$0::async_block_env$35>,enum2$<core::result::Result<tuple$<>,anyhow::Error> > >,enum2$<core::result::Result<i32,anyhow::Error> > >()
  • futures_util::future::future::impl$15::poll()
  • deno::spawn_subcommand::async_block$0<enum2$<deno::run_subcommand::async_fn$0::async_block_env$35>,enum2$<core::result::Result<tuple$<>,anyhow::Error> > >()
  • deno_unsync::tokio::task::impl$6::poll()
  • tokio::runtime::task::core::impl$6::poll::closure$0()
  • tokio::loom::std::unsafe_cell::UnsafeCell::with_mut()
  • tokio::runtime::task::core::Core::poll()
  • tokio::runtime::task::harness::poll_future::closure$0()
  • core::panic::unwind_safe::impl$25::call_once()
  • std::panicking::catch_unwind::do_call()
  • std::panicking::catch_unwind()
  • std::panic::catch_unwind()
  • tokio::runtime::task::harness::poll_future()
  • tokio::runtime::task::harness::Harness::poll_inner()
  • tokio::runtime::task::harness::Harness::poll()
  • tokio::runtime::task::raw::poll<deno_unsync::tokio::task::MaskFutureAsSend<core::pin::Pin<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<i32,anyhow::Error> > > > >,alloc::alloc::Global> > >,alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle,alloc::alloc::Global> >()
  • core::ptr::non_null::NonNull::as_ref()
  • alloc::sync::Arc::inner()
  • alloc::sync::impl$34::deref()
  • tokio::runtime::scheduler::current_thread::impl$8::block_on::closure$0::closure$1()
  • tokio::task::coop::with_budget()
  • tokio::task::coop::budget()
  • tokio::runtime::scheduler::current_thread::impl$3::run_task::closure$0()
  • tokio::runtime::scheduler::current_thread::Context::enter()
  • tokio::runtime::scheduler::current_thread::Context::run_task()
  • tokio::runtime::scheduler::current_thread::impl$8::block_on::closure$0()
  • tokio::runtime::scheduler::current_thread::impl$8::enter::closure$0()
  • tokio::runtime::context::scoped::Scoped::set()
  • tokio::runtime::context::set_scheduler::closure$0()
  • std::thread::local::LocalKey::try_with()
  • std::thread::local::LocalKey::with()
  • tokio::runtime::context::set_scheduler()
  • tokio::runtime::scheduler::current_thread::CoreGuard::enter()
  • tokio::runtime::scheduler::current_thread::CoreGuard::block_on()
  • tokio::runtime::scheduler::current_thread::impl$0::block_on::closure$0()
  • tokio::runtime::context::runtime::enter_runtime()
  • tokio::runtime::scheduler::current_thread::CurrentThread::block_on()
  • tokio::runtime::runtime::Runtime::block_on_inner()
  • tokio::runtime::runtime::Runtime::block_on()
  • deno_runtime::tokio_util::create_and_run_current_thread_inner()
  • deno_runtime::tokio_util::create_and_run_current_thread_with_maybe_metrics()
  • deno::main()
  • deno::main()
  • core::ops::function::FnOnce::call_once()
  • std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >()
  • main
  • invoke_main()
  • __scrt_common_main_seh()
  • core::num::impl$9::wrapping_mul()
  • core::num::wrapping::impl$269::mul()
  • argon2::block::Block::compress()
  • argon2::impl$2::compress::compress_avx2()
  • regalloc2::cfg::CFGInfo::init<cranelift_codegen::machinst::vcode::VCode<enum2$<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst> > >()

View trace: here

thread 'main' (26040) panicked at cli\tools\coverage\mod.rs:152:6:
a UTF-16 offset within the source has a byte offset
stack backtrace:
0: 0x7ff77b88914c - llhttp_get_error_reason
1: 0x7ff779bca4b1 - uv_mutex_destroy
2: 0x7ff77b888714 - llhttp_get_error_reason
3: 0x7ff77b888989 - llhttp_get_error_reason
4: 0x7ff77a3e22c3 - uv_mutex_unlock
5: 0x7ff77b88853d - llhttp_get_error_reason
6: 0x7ff77b88e5d4 - llhttp_get_error_reason
7: 0x7ff77b88e57f - llhttp_get_error_reason
8: 0x7ff77b88f96e - llhttp_get_error_reason
9: 0x7ff77d9ec34d - aws_lc_0_40_0_jent_entropy_switch_notime_impl
10: 0x7ff77d9ec605 - aws_lc_0_40_0_jent_entropy_switch_notime_impl
11: 0x7ff77a23629b - uv_mutex_unlock
12: 0x7ff77a22950e - uv_mutex_unlock
13: 0x7ff77a21e957 - uv_mutex_unlock
14: 0x7ff77a21d024 - uv_mutex_unlock
15: 0x7ff77a3d2150 - uv_mutex_unlock
16: 0x7ff77a3e1867 - uv_mutex_unlock
17: 0x7ff779b31015 -
18: 0x7ff779b31006 -
19: 0x7ff779b310c4 -
20: 0x7ff77d99696c - aws_lc_0_40_0_jent_entropy_switch_notime_impl
21: 0x7ffc44bacd87 - BaseThreadInitThunk
22: 0x7ffc465ccaec - RtlUserThreadStart

Was run for this repo which includes emojis using deno task test.
Was also failing for v2.9.6

Activity

  1. FOWEPJF255 commented on Oct 16, 2026

    @FOWEPJF255

    I can investigate the Windows coverage panic with AI assistance, focusing on a minimal regression test for the non-BMP source offset. I will disclose the AI assistance in any PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions