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

error: attempted to communicate with a crashed background worker #97067

Closed
tobymurray opened this issue May 16, 2022 · 2 comments
Closed

error: attempted to communicate with a crashed background worker #97067

tobymurray opened this issue May 16, 2022 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@tobymurray
Copy link

tobymurray commented May 16, 2022

Code

invoking:

cargo sqlx prepare --database-url sqlite://sqlite/production.db

This is using the query_as! macro from SQLx, if this ends up being a real bug I can share the code but it's effectively a giant hard coded SQL query that is specific to my schema.

Meta

rustc --version --verbose:

rustc 1.60.0 (7737e0b5c 2022-04-04)
binary: rustc
commit-hash: 7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c
commit-date: 2022-04-04
host: x86_64-unknown-linux-gnu
release: 1.60.0
LLVM version: 14.0.0

Error output

query stack during panic:
end of query stack
error: attempted to communicate with a crashed background worker
  --> src/database/shopify_pack_list.rs:33:13
   |
33 |       let rows = sqlx::query_as!(
   |  ________________^
34 | |         RawPackedShopifyOrderWithLineItemRow,
35 | |         "
36 | | SELECT
...  |
58 | |         store_id
59 | |     )
   | |_____^
   |
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `rust-shopify-picklist` due to previous error
error: `cargo check` failed with status: exit status: 101
Backtrace

0: rust_begin_unwind
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14
   2: core::panicking::panic_display
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:73:5
   3: core::panicking::panic_str
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:56:5
   4: core::option::expect_failed
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/option.rs:1852:5
   5: core::option::Option<T>::expect
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/option.rs:715:21
   6: <std::collections::hash::map::HashMap<K,V,S> as core::ops::index::Index<&Q>>::index
             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/collections/hash/map.rs:1175:9
   7: <ahash::hash_map::AHashMap<K,V,S> as core::ops::index::Index<&Q>>::index
             at /home/toby/.cargo/registry/src/github.com-1ecc6299db9ec823/ahash-0.7.6/src/hash_map.rs:249:9
   8: sqlx_core::sqlite::connection::explain::explain
             at /home/toby/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.13/src/sqlite/connection/explain.rs:279:34
   9: sqlx_core::sqlite::connection::describe::describe
             at /home/toby/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.13/src/sqlite/connection/describe.rs:41:51
  10: sqlx_core::sqlite::connection::worker::ConnectionWorker::establish::{{closure}}::{{closure}}
             at /home/toby/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.13/src/sqlite/connection/worker.rs:132:37
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

@tobymurray tobymurray added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 16, 2022
@ehuss
Copy link
Contributor

ehuss commented May 16, 2022

This error originates from sqlx. Perhaps this should be filed on their issue tracker? https://github.com/launchbadge/sqlx

@tobymurray
Copy link
Author

tobymurray commented May 16, 2022

Moved to SQLx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants