我在执行二进制文件时随机收到以下错误(有时它可以工作):
fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x47 pc=0x7f07a019b448]
我运行二进制文件的操作系统版本:
我运行二进制文件的操作系统版本:
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
去版本:
go version
go version go1.16.9 linux/amd64
巴泽尔选项:
go_binary(
name = "app-operator",
embed = [":app-operator_lib"],
gc_linkopts = [
"-linkmode",
"external",
"-extldflags",
"-static",
],
static = "on",
visibility = ["//visibility:public"],
)
达令说
相关分类