-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wego crashes with segmentation fault #6
Comments
Heyho Artem, unfortunately I cannot reproduce this. What is the golang version you're using? Which commit of wego are you using? On master line 441 would be --schachmat |
I'm using go version xgcc (Ubuntu 4.9.1-0ubuntu1) 4.9.1 linux/amd64, commit is 4004fd5 |
I got this same error on Ubuntu 14.04. All I see is "core dumped", however. I'm not familiar with generating go stack traces, but I'd be willing to debug this for you if you have something I can run/test. |
As the mentioned line of failure mainly contains the http.Get function, please make sure you are not using an old version of golang. I am using v1.4.2 and cannot reproduce this issue. As far as I can see, Ubuntu 14.04 still uses v1.2.1. Make sure this version is up to date with |
I just re-installed v1.2.1 and now I just see: Is there an easy way I can debug this, or is it just a requirement to have 1.4.2 of go? If so, oy vey. This is the LTS Ubuntu :( |
See the setup section in the README. Until you have an API key setup, this error message is to be expected. @ArtemZ does reinstalling golang-go also solve the problem for you? |
Very odd, I removed the package gccgo-go and installed the package golang which produced the "Malformed response" output. I grabbed an API key, set it in the ~/.wegorc, and then ran "wego" again from the CLI and I get the weather visual. I run a second time, and I get the core dump! It appears as if it only runs correctly once every few minutes. |
Do you have a special network connection (vpn, tor, some corporate firewall, …)? Does it fail consistently or randomly? Can someone with Ubuntu 14.04 confirm, that it is working consistently? |
Completely randomly. I just ran it 3 times in 3 seconds, then the 4th time it failed. No special network config either. |
Can you uncomment the two debug output lines in |
Okay I think I know what's going on. When I compile this app with Either way, this runs fine on golang1.2.1 on Ubuntu 14.04 with no issues. I could run the segfault tests using gccgo-go for you if you want, but I'd have to do that tonight. I think this is the same as ArtemZ since he was using 4.9.1 (of package gccgo-go). |
Thanks @mikegioia for helping resolve this issue. You don't have to run the segfault tests. They will probably also indicate a failure in the |
Hello,
I'm trying to launch wego under ubuntu 14.04 x64, but it fails each time I try to launch it with the following error:
The text was updated successfully, but these errors were encountered: