Skip to content

Assertion failed: part_content.trim() == part_content in oxc_semantic/src/jsdoc/parser/jsdoc_parts.rs #11992

@qarmin

Description

@qarmin

File content(at the bottom should be attached raw, not formatted file - github removes some non-printable characters, so copying from here may not work):

/**@property [
*/

command

timeout -v 150 oxlint -D all -D nursery --import-plugin --jsdoc-plugin --jest-plugin --vitest-plugin --jsx-a11y-plugin --nextjs-plugin --react-perf-plugin TEST___FILE.js --fix --fix-suggestions --fix-dangerously

cause this

thread '<unnamed>' panicked at crates/oxc_semantic/src/jsdoc/parser/jsdoc_parts.rs:139:9:
assertion failed: part_content.trim() == part_content
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /rustc/35f6036521777bdc0dcea1f980be4c192962a168/library/std/src/panicking.rs:697:5
   1: core::panicking::panic_fmt
             at /rustc/35f6036521777bdc0dcea1f980be4c192962a168/library/core/src/panicking.rs:75:14
   2: core::panicking::panic
             at /rustc/35f6036521777bdc0dcea1f980be4c192962a168/library/core/src/panicking.rs:145:5
   3: oxc_semantic::jsdoc::parser::jsdoc_parts::JSDocTagTypeNamePart::new
             at ./oxc-main/crates/oxc_semantic/src/jsdoc/parser/jsdoc_parts.rs:139:9
   4: oxc_semantic::jsdoc::parser::jsdoc_tag::JSDocTag::type_name_comment
             at ./oxc-main/crates/oxc_semantic/src/jsdoc/parser/jsdoc_tag.rs:157:26
   5: <oxc_linter::rules::jsdoc::check_property_names::CheckPropertyNames as oxc_linter::rule::Rule>::run_once
             at ./oxc-main/crates/oxc_linter/src/rules/jsdoc/check_property_names.rs:80:51
   6: oxc_linter::Linter::run
             at ./oxc-main/crates/oxc_linter/src/lib.rs:170:22
   7: oxc_linter::service::runtime::Runtime::run::{{closure}}::{{closure}}::{{closure}}
             at ./oxc-main/crates/oxc_linter/src/service/runtime.rs:521:60
   8: oxc_linter::service::runtime::ModuleContent::with_dependent_mut
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/self_cell-1.2.0/src/lib.rs:384:13
   9: oxc_linter::service::runtime::Runtime::run::{{closure}}::{{closure}}
             at ./oxc-main/crates/oxc_linter/src/service/runtime.rs:499:40
  10: oxc_linter::service::runtime::Runtime::resolve_modules::{{closure}}
             at ./oxc-main/crates/oxc_linter/src/service/runtime.rs:487:21
  11: rayon_core::scope::Scope::spawn::{{closure}}::{{closure}}
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/scope/mod.rs:526:57
  12: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
  13: std::panicking::catch_unwind::do_call
             at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:589:40
  14: __rust_try
  15: std::panicking::catch_unwind
             at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:552:19
  16: std::panic::catch_unwind
             at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
  17: rayon_core::unwind::halt_unwinding
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/unwind.rs:17:5
  18: rayon_core::scope::ScopeBase::execute_job_closure
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/scope/mod.rs:689:28
  19: rayon_core::scope::ScopeBase::execute_job
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/scope/mod.rs:679:29
  20: rayon_core::scope::Scope::spawn::{{closure}}
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/scope/mod.rs:526:13
  21: <rayon_core::job::HeapJob<BODY> as rayon_core::job::Job>::execute
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/job.rs:169:9
  22: rayon_core::job::JobRef::execute
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/job.rs:64:9
  23: rayon_core::registry::WorkerThread::execute
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/registry.rs:860:13
  24: rayon_core::registry::WorkerThread::wait_until_cold
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/registry.rs:794:26
  25: rayon_core::registry::WorkerThread::wait_until
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/registry.rs:769:18
  26: rayon_core::registry::WorkerThread::wait_until_out_of_work
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/registry.rs:818:14
  27: rayon_core::registry::main_loop
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/registry.rs:923:19
  28: rayon_core::registry::ThreadBuilder::run
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/registry.rs:53:18
  29: <rayon_core::registry::DefaultSpawn as rayon_core::registry::ThreadSpawn>::spawn::{{closure}}
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.12.1/src/registry.rs:98:27
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Rayon: detected unexpected panic; aborting

##### Automatic Fuzzer note, output status "None", output signal "Some(6)"

compressed.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions