Probably a rookie question, but can't find anything about this: go get golang.org/x/crypto/bcrypt throws 'Segmentation fault' using go1.4.2-linux-amd64

blov · 2015-06-10 20:05:28 · 1934 次点击    
这是一个分享于 2015-06-10 20:05:28 的资源,其中的信息可能已经有所发展或是发生改变。

...and it's driving me insane. What am I doing wrong?

To whom it may concern: it's a custom go1.4.2-linux-amd64 install on Lubuntu 15.04, go get github.com/anything/anything works like a charm. But I can't get to work golang.org/x/anything/anything. Both Git and Mercurial were installed with apt-get.

Thanks in advance!


评论:

Ainar-G:

Exact command and stack trace would be nice.

Dont_Reddit_Me:

Ok, this is getting more weird. I was trying to find out how to get a stack trace and this happened:

user@yomama:~$ go get -v golang.org/x/crypto/bcrypt
Fetching https://golang.org/x/crypto/bcrypt?go-get=1
Segmentation fault (core dumped)
user@yomama:~$ go help
<help print here>
user@yomama:~$ go help get
<help about 'get' command here>
user@yomama:~$ go get -v golang.org/x/crypto/bcrypt
Fetching https://golang.org/x/crypto/bcrypt?go-get=1
Parsing meta tags from https://golang.org/x/crypto/bcrypt?go-get=1 (status code 200)
get "golang.org/x/crypto/bcrypt": found meta tag    main.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/bcrypt?go-get=1
get "golang.org/x/crypto/bcrypt": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
golang.org/x/crypto/blowfish
golang.org/x/crypto/bcrypt

...so it then decided to work. How can I get some logging or stack trace to report this?

Ainar-G:

You can try to get the core dump which could be useful. If this keeps happening, and the reason is nowhere to be found, it may be worth it to open an issue.

bmurphy1976:

Try running strace on it. Sometimes it's worthless but sometimes it leads you right to the source of the problem.


入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1934 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传