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 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>...and it&#39;s driving me insane. What am I doing wrong?</p> <p>To whom it may concern: it&#39;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&#39;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 &lt;help print here&gt; user@yomama:~$ go help get &lt;help about &#39;get&#39; command here&gt; 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 &#34;golang.org/x/crypto/bcrypt&#34;: found meta tag main.metaImport{Prefix:&#34;golang.org/x/crypto&#34;, VCS:&#34;git&#34;, RepoRoot:&#34;https://go.googlesource.com/crypto&#34;} at https://golang.org/x/crypto/bcrypt?go-get=1 get &#34;golang.org/x/crypto/bcrypt&#34;: 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&#39;s worthless but sometimes it leads you right to the source of the problem.</p></pre>

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

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