Skip to content

Deno panic in Terminal #28038

@notroid5

Description

@notroid5

Version: Deno 2.1.4

Running on Ubuntu 24.04

  • open a new terminal window
  • start deno repl with deno
  • enter Date(
  • press Home, then Tab

=> Deno has panicked

Platform: linux x86_64
Version: 2.1.4
Args: ["deno"]

thread 'tokio-runtime-worker' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustyline-13.0.0/src/line_buffer.rs:869:36:
byte index 18446744073709551612 is out of bounds of `Date(`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

backtrace with RUST_BACKTRACE=1:

stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::str::slice_error_fail_rt
   3: core::str::slice_error_fail
   4: core::str::traits::<impl core::slice::index::SliceIndex<str> for core::ops::range::Range<usize>>::index
   5: rustyline::line_buffer::LineBuffer::replace
   6: rustyline::Editor<H,I>::readline_edit
   7: tokio::runtime::task::raw::poll
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

backtrace with RUST_BACKTRACE=full:

stack backtrace:
   0:     0x55b449366cca - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h304520fd6a30aa07
   1:     0x55b449397f7b - core::fmt::write::hf5713710ce10ff22
   2:     0x55b4493604d3 - std::io::Write::write_fmt::hda708db57927dacf
   3:     0x55b4493684d2 - std::panicking::default_hook::{{closure}}::he1ad87607d0c11c5
   4:     0x55b44936813e - std::panicking::default_hook::h81c8cd2e7c59ee33
   5:     0x55b4499b6df4 - deno::setup_panic_hook::{{closure}}::hec8573ef9875d32a
   6:     0x55b449368e02 - std::panicking::rust_panic_with_hook::had2118629c312a4a
   7:     0x55b449368ab7 - std::panicking::begin_panic_handler::{{closure}}::h7fa5985d111bafa2
   8:     0x55b4493671a9 - std::sys::backtrace::__rust_end_short_backtrace::h704d151dbefa09c5
   9:     0x55b449368744 - rust_begin_unwind
  10:     0x55b449394f33 - core::panicking::panic_fmt::h3eea515d05f7a35e
  11:     0x55b44939c158 - core::str::slice_error_fail_rt::h90a0e4345d9b7111
  12:     0x55b44939c01a - core::str::slice_error_fail::ha84bef9a4835ef00
  13:     0x55b44953a3aa - core::str::traits::<impl core::slice::index::SliceIndex<str> for core::ops::range::Range<usize>>::index::h253810e269af89e8
  14:     0x55b449767949 - rustyline::line_buffer::LineBuffer::replace::h232f1dcd843688ca
  15:     0x55b4497696b2 - rustyline::Editor<H,I>::readline_edit::hcb8278b4f458b614
  16:     0x55b4495fe602 - tokio::runtime::task::raw::poll::hbbd91085705ffef5
  17:     0x55b44b79860d - std::sys::backtrace::__rust_begin_short_backtrace::hccac091f6e0b8f08
  18:     0x55b44b79a7b8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h164bcb73f3c4df6b
  19:     0x55b44936f93b - std::sys::pal::unix::thread::Thread::new::thread_start::hcdbd1049068002f4
  20:     0x71eceb09caa4 - start_thread
                               at ./nptl/pthread_create.c:447:8
  21:     0x71eceb129c3c - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
  22:                0x0 - <unknown>

Metadata

Metadata

Assignees

No one assigned

    Labels

    panicreplrelated to the Read-Eval-Print-Loop functionality of Deno

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions