<p>...and it's driving me insane. What am I doing wrong?</p>
<p>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.</p>
<p>Thanks in advance!</p>
<hr/>**评论:**<br/><br/>Ainar-G: <pre><p>Exact command and stack trace would be nice.</p></pre>Dont_Reddit_Me: <pre><p>Ok, this is getting more weird. I was trying to find out how to get a stack trace and this happened:</p>
<pre><code>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
</code></pre>
<p>...so it then decided to work. How can I get some logging or stack trace to report this?</p></pre>Ainar-G: <pre><p>You can <a href="http://stackoverflow.com/a/2067406/1892060" rel="nofollow">try to get the core dump</a> 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.</p></pre>bmurphy1976: <pre><p>Try running strace on it. Sometimes it's worthless but sometimes it leads you right to the source of the problem.</p></pre>
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 · · 1817 次点击这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传