Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling "explain" panics #283

Closed
ctron opened this issue Jul 14, 2023 · 0 comments
Closed

Enabling "explain" panics #283

ctron opened this issue Jul 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working stack/backend Tasks related to the backend/server-side code

Comments

@ctron
Copy link
Contributor

ctron commented Jul 14, 2023

Searching with "explain=true" panics the server:

Command:

http -v localhost:8082/api/v1/sbom/search q=="ubi" explain==true

Outcome:

thread 'actix-server worker 7' panicked at 'assertion failed: self.doc() <= target', /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tantivy-0.19.2/src/postings/segment_postings.rs:173:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Full stack trace
thread 'actix-server worker 0' panicked at 'assertion failed: self.doc() <= target', /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tantivy-0.19.2/src/postings/segment_postings.rs:173:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:579:5
   1: core::panicking::panic_fmt
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:64:14
   2: core::panicking::panic
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:114:5
   3: <tantivy::postings::segment_postings::SegmentPostings as tantivy::docset::DocSet>::seek
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tantivy-0.19.2/src/postings/segment_postings.rs:173:9
   4: <tantivy::query::term_query::term_scorer::TermScorer as tantivy::docset::DocSet>::seek
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tantivy-0.19.2/src/query/term_query/term_scorer.rs:106:9
   5: <tantivy::query::boolean_query::boolean_weight::BooleanWeight<TScoreCombiner> as tantivy::query::weight::Weight>::explain
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tantivy-0.19.2/src/query/boolean_query/boolean_weight.rs:186:12
   6: <tantivy::query::boolean_query::boolean_weight::BooleanWeight<TScoreCombiner> as tantivy::query::weight::Weight>::explain
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tantivy-0.19.2/src/query/boolean_query/boolean_weight.rs:196:48
   7: tantivy::query::query::Query::explain
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tantivy-0.19.2/src/query/query.rs:86:9
   8: <bombastic_index::Index as trustification_index::Index>::process_hit
             at ./bombastic/index/src/lib.rs:535:19
   9: trustification_index::IndexStore<INDEX>::search
             at ./index/src/lib.rs:312:32
  10: <bombastic_api::server::search_sbom as actix_web::service::HttpServiceFactory>::register::search_sbom::{{closure}}
             at ./bombastic/api/src/server.rs:188:27
  11: actix_web::handler::handler_service::{{closure}}::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-web-4.3.1/src/handler.rs:106:21
  12: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/future/future.rs:125:9
  13: <actix_web::resource::Resource<T> as actix_web::service::HttpServiceFactory>::register::{{closure}}::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-web-4.3.1/src/resource.rs:414:27
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/future/future.rs:125:9
  15: <actix_web::middleware::logger::LoggerResponse<S,B> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-web-4.3.1/src/middleware/logger.rs:358:32
  16: <actix_web::middleware::compress::CompressResponse<S,B> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-web-4.3.1/src/middleware/compress.rs:176:22
  17: <actix_utils::future::either::Either<L,R> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-utils-3.0.1/src/future/either.rs:76:43
  18: <actix_web::scope::Scope<T> as actix_web::service::HttpServiceFactory>::register::{{closure}}::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-web-4.3.1/src/scope.rs:434:27
  19: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/future/future.rs:125:9
  20: <actix_web_prom::LoggerResponse<S> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-web-prom-0.6.0/src/lib.rs:425:32
  21: bombastic_api::Run::run::{{closure}}::{{closure}}::{{closure}}::{{closure}}::{{closure}}::{{closure}}
             at ./bombastic/api/src/lib.rs:93:54
  22: <actix_service::map_err::MapErrFuture<A,Req,F,E> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-service-2.0.2/src/map_err.rs:99:9
  23: actix_http::h1::dispatcher::InnerDispatcher<T,S,B,X,U>::handle_request
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.3.1/src/h1/dispatcher.rs:655:34
  24: actix_http::h1::dispatcher::InnerDispatcher<T,S,B,X,U>::poll_request
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.3.1/src/h1/dispatcher.rs:746:33
  25: <actix_http::h1::dispatcher::Dispatcher<T,S,B,X,U> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.3.1/src/h1/dispatcher.rs:1131:21
  26: <actix_http::service::HttpServiceHandlerResponse<T,S,B,X,U> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.3.1/src/service.rs:780:45
  27: <actix_service::and_then::AndThenServiceResponse<A,B,Req> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-service-2.0.2/src/and_then.rs:114:37
  28: <actix_server::service::StreamService<S,I> as actix_service::Service<(actix_server::worker::WorkerCounterGuard,actix_server::socket::MioStream)>>::call::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.2.0/src/service.rs:75:30
  29: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/core.rs:311:17
  30: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/loom/std/unsafe_cell.rs:14:9
  31: tokio::runtime::task::core::Core<T,S>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/core.rs:300:13
  32: tokio::runtime::task::harness::poll_future::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/harness.rs:476:19
  33: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panic/unwind_safe.rs:271:9
  34: std::panicking::try::do_call
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:487:40
  35: __rust_try
  36: std::panicking::try
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:451:19
  37: std::panic::catch_unwind
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panic.rs:140:14
  38: tokio::runtime::task::harness::poll_future
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/harness.rs:464:18
  39: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/harness.rs:198:27
  40: tokio::runtime::task::harness::Harness<T,S>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/harness.rs:152:15
  41: tokio::runtime::task::raw::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/raw.rs:276:5
  42: tokio::runtime::task::raw::RawTask::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/raw.rs:200:18
  43: tokio::runtime::task::LocalNotified<S>::run
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/task/mod.rs:400:9
  44: tokio::task::local::LocalSet::tick::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/task/local.rs:615:63
  45: tokio::runtime::coop::with_budget
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/coop.rs:107:5
  46: tokio::runtime::coop::budget
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/coop.rs:73:5
  47: tokio::task::local::LocalSet::tick
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/task/local.rs:615:31
  48: <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/task/local.rs:927:16
  49: tokio::task::local::LocalSet::with::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/task/local.rs:684:13
  50: std::thread::local::LocalKey<T>::try_with
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/thread/local.rs:446:16
  51: std::thread::local::LocalKey<T>::with
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/thread/local.rs:422:9
  52: tokio::task::local::LocalSet::with
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/task/local.rs:667:9
  53: <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/task/local.rs:913:9
  54: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/task/local.rs:573:18
  55: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/future/future.rs:125:9
  56: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:651:57
  57: tokio::runtime::coop::with_budget
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/coop.rs:107:5
  58: tokio::runtime::coop::budget
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/coop.rs:73:5
  59: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:651:25
  60: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:410:19
  61: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:650:36
  62: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:729:68
  63: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/context/scoped.rs:40:9
  64: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/context.rs:176:26
  65: std::thread::local::LocalKey<T>::try_with
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/thread/local.rs:446:16
  66: std::thread::local::LocalKey<T>::with
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/thread/local.rs:422:9
  67: tokio::runtime::context::set_scheduler
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/context.rs:176:9
  68: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:729:27
  69: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:638:19
  70: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:175:28
  71: tokio::runtime::context::runtime::enter_runtime
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/context/runtime.rs:65:16
  72: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/scheduler/current_thread.rs:167:9
  73: tokio::runtime::runtime::Runtime::block_on
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.0/src/runtime/runtime.rs:311:47
  74: actix_server::worker::ServerWorker::start::{{closure}}
             at /home/jreimann/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.2.0/src/worker.rs:402:29


JIRA: https://issues.redhat.com/browse/TC-528

@ctron ctron added bug Something isn't working stack/backend Tasks related to the backend/server-side code labels Jul 14, 2023
lulf pushed a commit that referenced this issue Aug 30, 2023
Also workaround for #283 until panic in tantivy is diagnosed
github-merge-queue bot pushed a commit that referenced this issue Aug 30, 2023
Also workaround for #283 until panic in tantivy is diagnosed
@lulf lulf closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stack/backend Tasks related to the backend/server-side code
Projects
Archived in project
Development

No branches or pull requests

2 participants