Skip to content

Regression: "SIGFPE: erroneous arithmetic operation" while compiling Exa in release mode #98089

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

Closed
aprotyas opened this issue Jun 14, 2022 · 3 comments
Labels
C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression.

Comments

@aprotyas
Copy link

I tried to build and install exa through cargo as such:

cargo install exa

I expected the build/install process to proceed without any hiccups.

Instead, rustc aborted with a SIGFPE signal and the following error message:

Error message

$ cargo install exa
    Updating crates.io index
  Installing exa v0.10.1
   Compiling libc v0.2.126
   Compiling pkg-config v0.3.25
   Compiling tinyvec_macros v0.1.0
   Compiling unicode-width v0.1.9
   Compiling log v0.4.17
   Compiling matches v0.1.9
   Compiling percent-encoding v2.1.0
   Compiling cfg-if v1.0.0
   Compiling unicode-bidi v0.3.8
   Compiling byteorder v1.4.3
   Compiling bitflags v1.3.2
   Compiling scoped_threadpool v0.1.9
   Compiling ansi_term v0.12.1
   Compiling natord v1.0.9
   Compiling lazy_static v1.4.0
   Compiling number_prefix v0.4.0
   Compiling glob v0.3.0
   Compiling tinyvec v1.6.0
   Compiling pad v0.1.6
   Compiling term_grid v0.1.7
   Compiling form_urlencoded v1.0.1
   Compiling unicode-normalization v0.1.19
   Compiling jobserver v0.1.24
   Compiling locale v0.2.2
   Compiling num_cpus v1.13.1
   Compiling term_size v0.3.2
   Compiling users v0.11.0
   Compiling cc v1.0.73
   Compiling datetime v0.5.2
   Compiling zoneinfo_compiled v0.5.1
   Compiling idna v0.2.3
   Compiling exa v0.10.1
   Compiling libz-sys v1.1.8
   Compiling libgit2-sys v0.12.26+1.3.0
   Compiling url v2.2.2
   Compiling git2 v0.13.25
error: could not compile `exa`

Caused by:
  process didn't exit successfully: `rustc --crate-name exa --edition=2018 /home/aprotyas/.cargo/registry/src/github.com-1ecc6299db9ec823/exa-0.10.1/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto --cfg 'feature="default"' --cfg 'feature="git"' --cfg 'feature="git2"' -C metadata=9d6e953812cff01a -C extra-filename=-9d6e953812cff01a --out-dir /tmp/cargo-installMkm7qp/release/deps -L dependency=/tmp/cargo-installMkm7qp/release/deps --extern ansi_term=/tmp/cargo-installMkm7qp/release/deps/libansi_term-7a2f5b24394af86a.rlib --extern datetime=/tmp/cargo-installMkm7qp/release/deps/libdatetime-6916874f0cd40e2f.rlib --extern git2=/tmp/cargo-installMkm7qp/release/deps/libgit2-7dd9992d9948b6ce.rlib --extern glob=/tmp/cargo-installMkm7qp/release/deps/libglob-023a5ddb3e769dc1.rlib --extern lazy_static=/tmp/cargo-installMkm7qp/release/deps/liblazy_static-d41ca21dec8b0771.rlib --extern libc=/tmp/cargo-installMkm7qp/release/deps/liblibc-699b121c119cf89f.rlib --extern locale=/tmp/cargo-installMkm7qp/release/deps/liblocale-d17442f3bd4d293c.rlib --extern log=/tmp/cargo-installMkm7qp/release/deps/liblog-b7e9159025711fc8.rlib --extern natord=/tmp/cargo-installMkm7qp/release/deps/libnatord-f4d9ddd248c87024.rlib --extern num_cpus=/tmp/cargo-installMkm7qp/release/deps/libnum_cpus-324722fbaed9d5db.rlib --extern number_prefix=/tmp/cargo-installMkm7qp/release/deps/libnumber_prefix-7efb1d77d0543926.rlib --extern scoped_threadpool=/tmp/cargo-installMkm7qp/release/deps/libscoped_threadpool-a2cf35eaa1a14f8a.rlib --extern term_grid=/tmp/cargo-installMkm7qp/release/deps/libterm_grid-1ab9843592eac954.rlib --extern term_size=/tmp/cargo-installMkm7qp/release/deps/libterm_size-745601c4cec2b307.rlib --extern unicode_width=/tmp/cargo-installMkm7qp/release/deps/libunicode_width-0096a1d028fe53c1.rlib --extern users=/tmp/cargo-installMkm7qp/release/deps/libusers-b95ed63432d62fd8.rlib --extern zoneinfo_compiled=/tmp/cargo-installMkm7qp/release/deps/libzoneinfo_compiled-29640f2a94be6951.rlib --cap-lints allow -L native=/tmp/cargo-installMkm7qp/release/build/libgit2-sys-60aa40ac719c8084/out/build` (signal: 8, SIGFPE: erroneous arithmetic operation)
error: failed to compile `exa v0.10.1`, intermediate artifacts can be found at `/tmp/cargo-installMkm7qp`

Meta

I'm using a stable version of the compiler, but unfortunately don't have bandwidth to check if the bug exists in the nightly versions too. Here's my compiler version.

rustc --version --verbose:

rustc 1.61.0 (fe5b13d68 2022-05-18)
binary: rustc
commit-hash: fe5b13d681f25ee6474be29d748c65adcd91f69e
commit-date: 2022-05-18
host: x86_64-unknown-linux-gnu
release: 1.61.0
LLVM version: 14.0.0
@aprotyas aprotyas added the C-bug Category: This is a bug. label Jun 14, 2022
@eggyal
Copy link
Contributor

eggyal commented Jun 14, 2022

@rustbot label: +regression-untriaged

@rustbot rustbot added regression-untriaged Untriaged performance or correctness regression. I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels Jun 14, 2022
@eggyal
Copy link
Contributor

eggyal commented Jun 14, 2022

Apologies, looks like a dupe of #97255

@apiraino
Copy link
Contributor

no worries :) and yes, looks like a duplicate

@rustbot label -I-prioritize

@apiraino apiraino closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2022
@rustbot rustbot removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jun 14, 2022
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. regression-untriaged Untriaged performance or correctness regression.
Projects
None yet
Development

No branches or pull requests

4 participants