From 30744a8dd551925250fb77382f6bc33925fc2c9e Mon Sep 17 00:00:00 2001 From: strasharo Date: Tue, 1 Oct 2019 23:52:59 +0300 Subject: [PATCH] Fix for the segmentation fault in qemu Without this I'm getting a constant segmentation fault when running go under qemu on Fedora 30: + export GOPATH=/root/go + GOPATH=/root/go + go get -u github.com/bettercap/bettercap qemu: uncaught target signal 11 (Segmentation fault) - core dumped bin/bash: line 52: 23146 Segmentation fault (core dumped) go get -u github.com/bettercap/bettercap https://bugs.launchpad.net/qemu/+bug/1696773 --- scripts/create_sibling.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_sibling.sh b/scripts/create_sibling.sh index c69ff84..3c030c0 100755 --- a/scripts/create_sibling.sh +++ b/scripts/create_sibling.sh @@ -160,7 +160,7 @@ function provision_raspbian() { # install bettercap export GOPATH=/root/go - go get -u github.com/bettercap/bettercap + taskset -c 1 go get -u github.com/bettercap/bettercap mv "\$GOPATH/bin/bettercap" /usr/bin/bettercap # install bettercap caplets (cant run bettercap in chroot)