Skip to content

rustc got SIGSEGV on cargo install sqlx-cli #129680

Open

Description

Code

cargo install sqlx-cli

Meta

rustc --version --verbose:

(base) lothrop@helheim:~/src/casinobuddy.app$ rustc --version --verbose
rustc 1.82.0-nightly (91376f416 2024-08-12)
binary: rustc
commit-hash: 91376f416222a238227c84a848d168835ede2cc3
commit-date: 2024-08-12
host: x86_64-unknown-linux-gnu
release: 1.82.0-nightly
LLVM version: 19.1.0

Error output

(base) lothrop@helheim:~/src/casinobuddy.app$ cargo install sqlx-cli
    Updating crates.io index
  Downloaded sqlx-cli v0.8.1
  Downloaded 1 crate (100.3 KB) in 0.19s
  Installing sqlx-cli v0.8.1
    Updating crates.io index
     Locking 244 packages to latest compatible versions
      Adding addr2line v0.22.0 (latest: v0.24.1)
      Adding bitflags v1.3.2 (latest: v2.6.0)
      Adding clipboard-win v4.5.0 (latest: v5.4.0)
      Adding core-foundation v0.9.4 (latest: v0.10.0)
      Adding encode_unicode v0.3.6 (latest: v1.0.0)
      Adding endian-type v0.1.2 (latest: v0.2.0)
      Adding error-code v2.3.1 (latest: v3.2.0)
      Adding fd-lock v3.0.13 (latest: v4.0.2)
      Adding foreign-types v0.3.2 (latest: v0.5.0)
      Adding foreign-types-shared v0.1.1 (latest: v0.3.1)
      Adding generic-array v0.14.7 (latest: v1.1.0)
      Adding gimli v0.29.0 (latest: v0.31.0)
      Adding hermit-abi v0.3.9 (latest: v0.4.0)
      Adding idna v0.5.0 (latest: v1.0.2)
      Adding linux-raw-sys v0.4.14 (latest: v0.6.5)
      Adding memoffset v0.6.5 (latest: v0.9.1)
      Adding miniz_oxide v0.7.4 (latest: v0.8.0)
      Adding nix v0.23.2 (latest: v0.29.0)
      Adding redox_syscall v0.4.1 (latest: v0.5.3)
      Adding rustyline v9.1.2 (latest: v14.0.0)
      Adding str-buf v1.0.6 (latest: v3.0.3)
      Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1)
      Adding windows-core v0.52.0 (latest: v0.58.0)
      Adding windows-sys v0.48.0 (latest: v0.59.0)
      Adding windows-sys v0.52.0 (latest: v0.59.0)
      Adding windows-targets v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_i686_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_i686_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6)
  Downloaded clap_complete v4.5.24
  Downloaded camino v1.1.9
  Downloaded foreign-types v0.3.2
  Downloaded foreign-types-shared v0.1.1
  Downloaded openssl-macros v0.1.1
  Downloaded memoffset v0.6.5
  Downloaded fd-lock v3.0.13
  Downloaded dirs-sys-next v0.1.2
  Downloaded dirs-next v2.0.0
  Downloaded filetime v0.2.25
  Downloaded promptly v0.3.1
  Downloaded clap v4.5.16
  Downloaded native-tls v0.2.12
  Downloaded console v0.15.8
  Downloaded openssl-sys v0.9.103
  Downloaded rustyline v9.1.2
  Downloaded clap_builder v4.5.15
  Downloaded nix v0.23.2
  Downloaded openssl v0.10.66
  Downloaded 19 crates (1.2 MB) in 0.58s
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
   Compiling autocfg v1.3.0
   Compiling libc v0.2.158
   Compiling cfg-if v1.0.0
   Compiling serde v1.0.209
   Compiling version_check v0.9.5
   Compiling typenum v1.17.0
   Compiling const-oid v0.9.6
   Compiling shlex v1.3.0
   Compiling byteorder v1.5.0
   Compiling pkg-config v0.3.30
   Compiling vcpkg v0.2.15
   Compiling scopeguard v1.2.0
   Compiling libm v0.2.8
   Compiling memchr v2.7.4
   Compiling futures-core v0.3.30
   Compiling once_cell v1.19.0
   Compiling pin-project-lite v0.2.14
   Compiling subtle v2.6.1
   Compiling tinyvec_macros v0.1.1
   Compiling futures-sink v0.3.30
   Compiling crossbeam-utils v0.8.20
   Compiling tinyvec v1.8.0
   Compiling log v0.4.22
   Compiling cc v1.1.15
   Compiling parking_lot_core v0.9.10
   Compiling futures-channel v0.3.30
   Compiling futures-io v0.3.30
   Compiling base64ct v1.6.0
   Compiling futures-task v0.3.30
   Compiling itoa v1.0.11
   Compiling bytes v1.7.1
   Compiling serde_json v1.0.127
   Compiling openssl v0.10.66
   Compiling generic-array v0.14.7
   Compiling ahash v0.8.11
   Compiling lock_api v0.4.12
   Compiling num-traits v0.2.19
   Compiling slab v0.4.9
   Compiling percent-encoding v2.3.1
   Compiling unicode-bidi v0.3.15
   Compiling thiserror v1.0.63
   Compiling pin-utils v0.1.0
   Compiling foreign-types-shared v0.1.1
   Compiling allocator-api2 v0.2.18
   Compiling ryu v1.0.18
   Compiling zeroize v1.8.1
   Compiling foreign-types v0.3.2
   Compiling pem-rfc7468 v0.7.0
   Compiling form_urlencoded v1.2.1
   Compiling utf8parse v0.2.2
   Compiling quote v1.0.37
   Compiling minimal-lexical v0.2.1
   Compiling native-tls v0.2.12
   Compiling spin v0.9.8
   Compiling paste v1.0.15
   Compiling cpufeatures v0.2.13
   Compiling concurrent-queue v2.5.0
   Compiling der v0.7.9
   Compiling syn v2.0.76
   Compiling tracing-core v0.1.32
   Compiling nom v7.1.3
   Compiling unicode_categories v0.1.1
   Compiling parking v2.2.0
   Compiling equivalent v1.0.1
   Compiling openssl-probe v0.1.5
   Compiling crc-catalog v2.4.0
   Compiling unicode-normalization v0.1.23
   Compiling event-listener v5.3.1
   Compiling crc v3.2.1
   Compiling lazy_static v1.5.0
   Compiling crossbeam-queue v0.3.11
   Compiling memoffset v0.6.5
   Compiling rustix v0.38.35
   Compiling hex v0.4.3
   Compiling num-bigint-dig v0.8.4
   Compiling anstyle-parse v0.2.5
   Compiling unicode-properties v0.1.2
   Compiling colorchoice v1.0.2
   Compiling anstyle-query v1.1.1
   Compiling anstyle v1.0.8
   Compiling is_terminal_polyfill v1.70.1
   Compiling linux-raw-sys v0.4.14
   Compiling idna v0.5.0
   Compiling semver v1.0.23
   Compiling bitflags v1.3.2
   Compiling clap_lex v0.7.2
   Compiling num-integer v0.1.46
   Compiling atoi v2.0.0
   Compiling getrandom v0.2.15
   Compiling mio v1.0.2
   Compiling openssl-sys v0.9.103
   Compiling socket2 v0.5.7
   Compiling libsqlite3-sys v0.30.1
   Compiling dirs-sys-next v0.1.2
   Compiling anstream v0.6.15
   Compiling rand_core v0.6.4
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling num-iter v0.1.45
   Compiling stringprep v0.1.5
   Compiling digest v0.10.7
   Compiling base64 v0.22.1
   Compiling camino v1.1.9
   Compiling strsim v0.11.1
   Compiling url v2.5.2
   Compiling unicode-width v0.1.13
   Compiling spki v0.7.3
   Compiling dotenvy v0.15.7
   Compiling heck v0.5.0
   Compiling sha2 v0.10.8
   Compiling hmac v0.12.1
   Compiling pkcs8 v0.10.2
   Compiling signature v2.2.0
   Compiling md-5 v0.10.6
   Compiling hkdf v0.12.4
   Compiling whoami v1.5.1
   Compiling endian-type v0.1.2
   Compiling pkcs1 v0.7.5
   Compiling sha1 v0.10.6
   Compiling clap_builder v4.5.15
   Compiling dirs-next v2.0.0
   Compiling nix v0.23.2
   Compiling flume v0.11.0
   Compiling unicode-segmentation v1.11.0
   Compiling home v0.5.9
   Compiling anyhow v1.0.86
   Compiling instant v0.1.13
   Compiling sqlformat v0.2.4
   Compiling iana-time-zone v0.1.60
   Compiling console v0.15.8
   Compiling filetime v0.2.25
   Compiling chrono v0.4.38
   Compiling glob v0.3.1
   Compiling serde_derive v1.0.209
   Compiling zerocopy-derive v0.7.35
   Compiling tokio-macros v2.4.0
   Compiling futures-macro v0.3.30
   Compiling thiserror-impl v1.0.63
   Compiling openssl-macros v0.1.1
   Compiling tracing-attributes v0.1.27
   Compiling clap_derive v4.5.13
   Compiling async-trait v0.1.81
   Compiling tokio v1.39.3
   Compiling zerocopy v0.7.35
   Compiling futures-util v0.3.30
   Compiling tracing v0.1.40
   Compiling ppv-lite86 v0.2.20
   Compiling hashbrown v0.14.5
   Compiling clap v4.5.16
   Compiling clap_complete v4.5.24
   Compiling rand_chacha v0.3.1
   Compiling rand v0.8.5
   Compiling hashlink v0.9.1
   Compiling indexmap v2.4.0
   Compiling futures-executor v0.3.30
   Compiling futures v0.3.30
   Compiling tokio-stream v0.1.15
   Compiling backoff v0.4.0
error: rustc interrupted by SIGSEGV, printing backtrace

/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-9694e87df53074e6.so(+0x3560663)[0x797a08960663]
/lib/x86_64-linux-gnu/libc.so.6(+0x45320)[0x797a05045320]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.19.1-rust-1.82.0-nightly(_ZN4llvm15LowerDbgDeclareERNS_8FunctionE+0x11e)[0x797a03025da4]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.19.1-rust-1.82.0-nightly(_ZN4llvm15InstCombinePass3runERNS_8FunctionERNS_15AnalysisManagerIS1_JEEE+0x80f)[0x797a03023c0f]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.19.1-rust-1.82.0-nightly(+0x60233e7)[0x797a030233e7]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.19.1-rust-1.82.0-nightly(_ZN4llvm11PassManagerINS_8FunctionENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0xb7e)[0x797a0301e398]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.19.1-rust-1.82.0-nightly(_ZN4llvm27ModuleToFunctionPassAdaptor3runERNS_6ModuleERNS_15AnalysisManagerIS1_JEEE+0x374)[0x797a03015eb4]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.19.1-rust-1.82.0-nightly(+0x6015b31)[0x797a03015b31]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.19.1-rust-1.82.0-nightly(_ZN4llvm11PassManagerINS_6ModuleENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0x229)[0x797a03785b69]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-9694e87df53074e6.so(LLVMRustOptimize+0x83c)[0x797a0ae87e48]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-9694e87df53074e6.so(+0x5a83be4)[0x797a0ae83be4]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-9694e87df53074e6.so(+0x5a83717)[0x797a0ae83717]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-9694e87df53074e6.so(_RNvXs1_Cs1ZUgZgSYsyZ_18rustc_codegen_llvmNtB5_18LlvmCodegenBackendNtNtNtCsjBMixsTToLf_17rustc_codegen_ssa6traits5write19WriteBackendMethods13optimize_thin+0x61d)[0x797a0aceba33]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-9694e87df53074e6.so(+0x59b02b6)[0x797a0adb02b6]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-9694e87df53074e6.so(+0x59af8a1)[0x797a0adaf8a1]
/home/lothrop/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-9694e87df53074e6.so(+0x59aedab)[0x797a0adaedab]
/lib/x86_64-linux-gnu/libc.so.6(+0x9ca94)[0x797a0509ca94]
/lib/x86_64-linux-gnu/libc.so.6(+0x129c3c)[0x797a05129c3c]

note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216
Backtrace

Couldn't recreate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions