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
runtime/race: ERROR: ThreadSanitizer failed to allocate 0x2710000 (40960000) bytes at address 1795557750080 (errno: 12) #28088
Comments
It looks like one of the race detector tests has failed. Is this issue reproducible for you? What happens if you try |
@dmitshur Yes.Please wait for a moment,I try ./all.bash. |
run command:
Last few lines of output: ok _/home/hello/git-my/go/misc/cgo/nocgo 0.032s PASS ok _/home/hello/git-my/go/misc/cgo/test 2.014s PASS ok _/home/hello/git-my/go/misc/cgo/testtls 0.025s PASS ok _/home/hello/git-my/go/misc/cgo/nocgo 0.027s ##### Testing race detector ok runtime/race 6.892s ok flag 1.049s ok os/exec 2.057s ==27924==ERROR: ThreadSanitizer failed to allocate 0x2710000 (40960000) bytes at address 1795557750080 (errno: 12) unexpected fault address 0x0 fatal error: fault [signal 0x7 code=0x80 addr=0x0 pc=0x56555598f285] goroutine 1 [running, locked to thread]: runtime.throw(0x0, 0x5655557baec8) /home/hello/git-my/go/src/runtime/panic.go:547 +0x90 fp=0x7ffbffffaa60 sp=0x7ffbffffaa48 goroutine 17 [syscall, locked to thread]: runtime.goexit() /home/hello/git-my/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc82003cfb8 sp=0xc82003cfb0 exit status 2 FAIL _/home/hello/git-my/go/misc/cgo/test 0.017s 2018/10/09 11:59:35 Failed: exit status 1 ==27061==ERROR: ThreadSanitizer failed to allocate 0x26e8000 (40796160) bytes at address 1795556d9c080 (errno: 12) unexpected fault address 0x0 fatal error: fault [signal 0x7 code=0x80 addr=0x0 pc=0x565555803125] goroutine 1 [running, locked to thread]: runtime.throw(0x0, 0x5655556d73b8) /home/hello/git-my/go/src/runtime/panic.go:547 +0x90 fp=0x7ffbffffaaa0 sp=0x7ffbffffaa88 goroutine 17 [syscall, locked to thread]: runtime.goexit() /home/hello/git-my/go/src/runtime/asm_amd64.s:1998 +0x1 FAIL flag 0.042s ==27234==ERROR: ThreadSanitizer failed to allocate 0x2720000 (41025536) bytes at address 1795558694080 (errno: 12) unexpected fault address 0x0 fatal error: fault [signal 0x7 code=0x80 addr=0x0 pc=0x565555c41305] goroutine 1 [running, locked to thread]: runtime.throw(0x0, 0x565555891538) /home/hello/git-my/go/src/runtime/panic.go:547 +0x90 fp=0x7ffbffffaa90 sp=0x7ffbffffaa78 goroutine 17 [syscall, locked to thread]: runtime.goexit() /home/hello/git-my/go/src/runtime/asm_amd64.s:1998 +0x1 FAIL os/exec 0.018s 2018/10/09 11:59:35 Failed: exit status 1 ##### ../misc/cgo/testgodefs 2018/10/09 11:59:35 FAILED hello@hello:~/git-my/go/src$ What should I do? |
You are trying to compile 1.4. Any reason for that ? Usually, one compiles the master branch. 1.4 branch is several years old and we are not maintaining that any more. I would request you to try with master. |
I seem have installed go1.4.
I want to compile go1.11.1 with go1.4. |
You should check out the
Where |
I need to run applications with go.Because there is missing a variable in the official go standard library.,so I download go with command:
Want to with the way install go1.11.1. |
It looks like you are testing Go 1.4. Don't do that. When building 1.4, run make.bash, not all.bash, as described at https://golang.org/doc/install-source.html. Do you want to build Go from source, or do you want to download Go binaries? |
@ianlancetaylor build Go from source code.
|
To build Go from source please follow the instructions at https://golang.org/doc/install-source.html. As described there, please do not run the all.bash script in the Go 1.4 sources. I'm going to close this issue now. Thanks. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: