-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/6l: Go 1.4.2 version of 6l causes malloc assertion failure #12738
Comments
@bha123 can you please share a code sample that others can use to reproduce this issue. |
Please tell us the results of type go |
Also go test -x 1.go |
I just verified that the Go installation works for me on Ubuntu 14.04. |
Hi iamlancetaylor The following are the results i got vcap@ip-10-32-58-8:~$ sudo go env vcap@ip-10-32-58-8:~$ sudo go test -x 1.go command-line-arguments6l: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed. regards |
Why are you running "sudo go"? What happens if you omit the "sudo"? What is the output of "printenv"? What is the contents of the file 1.go? |
@bha123, can you please answer Ian's questions? Also if you run
It may be interesting to see what the stack trace is at the failure. Another possibility would be to run Thanks. |
(Normally we would deprioritize bugs in old Go releases, but if there is an actual memory corruption bug in 6l we need to fix it to keep Go 1.4 being a valid bootstrap toolchain.) |
Like Ian, I cannot reproduce this on Ubuntu 14.04. I even changed the go command to invoke 'valgrind -q 6l' instead of '6l' and was able to run all.bash successfully. Given the lack of further information, I don't think there's more we can do here. |
Hi all
We are installing golang 1.4.2 on ubuntu14.04 . After using the instructions https://golang.org/doc/install?download=go1.4.2.linux-amd64.tar.gz
when i am running simple helloworld program . It is giving the below error
regards
Bharath
The text was updated successfully, but these errors were encountered: