Skip to content

Segfaults instantly on NixOS #130

@jansol

Description

@jansol

Tried installing cargo-gpu on NixOS from a local checkout as instructed in the readme: cargo install --path cargo-gpu/ and it succeeded (when done in a dev environment with a C compiler: nix shell nixpkgs#gcc). However attempting to run any cargo gpu subcommand would result in an immediate segmentation fault.

Since GDB wasn't showing anything useful either (backtrace was just _start followed by ??????? which was already the crash site) I tried cargo install --path cargo-gpu/ --profile dev, which made it produce a different error message:

$ cargo gpu help
Inconsistency detected by ld.so: ../sysdeps/x86_64/dl-machine.h: 498: elf_machine_rela_relative: Assertion `ELFW(R_TYPE) (reloc->r_info) == R_X86_64_RELATIVE' failed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions