Fuzzing Crash: VortexError in file_scan_expr

Aperta
#12,557 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
74/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start with vortex-array/src/stream/adapter.rs, where poll_next asserts that the scanned array type matches the expected decimal type, and inspect fuzz/scan_expr.rs for the failing input path. Download the crash artifact and run the provided cargo +nightly fuzz run file_scan_expr command to reproduce it. The change is done when the crash no longer occurs and a regression test or fuzz case covers the nullable decimal mismatch.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug fuzzer

Target crashed at vortex-array/src/stream/adapter.rs:55:poll_next:

assertion `left == right` failed: ArrayStreamAdapter expected array with type {=decimal(71,70)?}?, actual {=decimal(71,70)}?
  left: Struct(StructFields { names: FieldNames([FieldName("")]), dtypes: [FieldDType { inner: Owned(Decimal(DecimalDType { precision: 71, scale: 70 }, NonNullable)) }] }, Nullable)
 right: Struct(StructFields { names: FieldNames([FieldName("")]), dtypes: [FieldDType { inner: Owned(Decimal(DecimalDType { precision: 71, scale: 70 }, Nullable)) }] }, Nullable)
Stack trace
stack backtrace:
   1: core::panicking::panic_fmt
             at /rustc/8eb778d04094d3af4b26580cab327e0413eb1e02/library/core/src/panicking.rs:80:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed::<&vortex_array::dtype::DType, &mut vortex_array::dtype::DType>
             at /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:407:5
   4: poll_next<vortex_layout::scan::scan_builder::LazyScanStream<vortex_array::array::erased::ArrayRef>>
             at ./vortex-array/src/stream/adapter.rs:55:13
   5: poll_next<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-core-0.3.34/src/stream.rs:130:33
   6: poll_next_unpin<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.34/src/stream/stream/mod.rs:1637:24
   7: poll<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.34/src/stream/stream/next.rs:32:21
   8: poll<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>
             at /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:133:9
   9: poll<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::pin::Pin<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>, async_executor::{impl#13}::run::{async_fn#0}::{async_block_env#0}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::pin::Pin<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>>>
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-lite-2.6.1/src/future.rs:451:46
  10: {async_fn#0}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::pin::Pin<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>>
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-executor-1.14.1/src/lib.rs:761:32
  11: {async_fn#0}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::pin::Pin<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>>
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-executor-1.14.1/src/lib.rs:348:34
  12: {closure#1}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, async_executor::{impl#5}::run::{async_fn_env#0}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::pin::Pin<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>>>
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-io-2.6.0/src/driver.rs:204:53
  13: try_with<core::cell::RefCell<(parking::Parker, core::task::wake::Waker, alloc::rcs::arc::Arc<core::sync::atomic::Atomic<bool>, alloc::alloc::Global>)>, async_io::driver::block_on::{closure_env#1}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, async_executor::{impl#5}::run::{async_fn_env#0}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::pin::Pin<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>>>, core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>>
             at /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:470:12
  14: with<core::cell::RefCell<(parking::Parker, core::task::wake::Waker, alloc::rcs::arc::Arc<core::sync::atomic::Atomic<bool>, alloc::alloc::Global>)>, async_io::driver::block_on::{closure_env#1}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, async_executor::{impl#5}::run::{async_fn_env#0}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::pin::Pin<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>>>, core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>>
             at /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:434:20
  15: block_on<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, async_executor::{impl#5}::run::{async_fn_env#0}<core::option::Option<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::pin::Pin<&mut futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>>>
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-io-2.6.0/src/driver.rs:180:11
  16: drive<futures_util::stream::stream::next::Next<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>>>
             at ./vortex-io/src/runtime/current.rs:162:5
  17: next<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>
             at ./vortex-io/src/runtime/current.rs:175:9
  18: next<vortex_io::runtime::current::CurrentThreadIterator<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>>
             at ./vortex-array/src/iter.rs:55:20
  19: {closure#0}<vortex_array::iter::ArrayIteratorAdapter<vortex_io::runtime::current::CurrentThreadIterator<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>>, file_scan_expr::_::__libfuzzer_sys_run::{closure_env#0}>
             at ./fuzz/scan_expr.rs:88:26
  20: run<vortex_array::iter::ArrayIteratorAdapter<vortex_io::runtime::current::CurrentThreadIterator<core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>>, file_scan_expr::_::__libfuzzer_sys_run::{closure_env#0}>
             at ./fuzz/scan_expr.rs:93:9
... (30 more frames truncated)

To reproduce, download the crash artifact to ~/Downloads and run these
commands from the repository root:

unzip ~/Downloads/file_scan_expr-crash-artifacts.zip -d fuzz-artifacts
RUST_BACKTRACE=1 cargo +nightly fuzz run -D --sanitizer=none \
  file_scan_expr \
  fuzz-artifacts/file_scan_expr/crash-3b8b11f047fd49534761259d26f20177ef735cf5 \
  -- -rss_limit_mb=0

Auto-created by fuzzing workflow

Lingua principale
Rust
Stelle
3.2k
Fork
239
Merge medio
1g 4h
PR unite (30g)
684

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vortex-data/vortex

Tutte le issue di vortex-data/vortex

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.