Skip to content

Deno panic at deno_core-0.340.0 due to Uncaught RangeError: Maximum call stack size exceeded #28436

@vdata1

Description

@vdata1

Hi,

I would like to report a panic in deno, it can be reproduced by running the following code example:

Platform: macos x86_64
Version: 2.2.3
Args: ["deno", "run", "panic.js"]

function f() {
  try {
    f();
  } catch (e) {
    (async function () {  
      const server = Deno.serve(
        req => {
          return new Response('Server is up!\n');
      });
    })();
    eval("let 1;")
  }
}
f();

For RUST_BACKTRACE, please look at the following details:

stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: deno_core::error::to_v8_error::panic_cold_display
   3: deno_core::error::to_v8_error
   4: deno_net::ops::op_net_listen_tcp::op_net_listen_tcp<NP>::slow_function_impl
   5: deno_net::ops::op_net_listen_tcp::op_net_listen_tcp<NP>::v8_fn_ptr
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions