Skip to content

Instantly share code, notes, and snippets.

@timokau
Created January 1, 2019 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timokau/7427bf020be17778f008128de0fc9152 to your computer and use it in GitHub Desktop.
Save timokau/7427bf020be17778f008128de0fc9152 to your computer and use it in GitHub Desktop.
mkdir -p /tmp/suitesparse-logs
cd /tmp/suitesparse-logs
for i in {1..10}; do
# change the value of some environment variable to force a rebuild
nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/559916f6480b0cd745e52970dd1167ce7abbc6b1.tar.gz -E "with (import <nixpkgs> {}); python3.pkgs.nose.overrideAttrs (oldAttrs: { REBUILD = $i; })" > $i.log 2>&1
done
grep -l 'Segmentation fault' {1..10}.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment