Skip to content
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: TestSetPanicOnFault fails sometimes #8542

Closed
gopherbot opened this issue Aug 17, 2014 · 5 comments
Closed

runtime: TestSetPanicOnFault fails sometimes #8542

gopherbot opened this issue Aug 17, 2014 · 5 comments
Milestone

Comments

@gopherbot
Copy link
Contributor

by cdunn2001:

What does 'go version' print?
  go version go1.3 linux/amd64

  But that's a 64-bit virtual machine, where it passes.
  It fails *sometimes* (with the exact same code-base) on a 32-bit
  virt, which I cannot easily access.

What steps reproduce the problem?
  A test fails while building compiler.

What happened?

…
ok      regexp/syntax    0.809s
0
--- FAIL: TestSetPanicOnFault (0.00 seconds)
    runtime_test.go:203: still here - should have faulted on address 0xff000001
    runtime_test.go:196: did not find error in recover
FAIL
FAIL    runtime    13.519s
[no test files] ?       runtime/cgo    
ok      runtime/debug    0.012s
…


What should have happened instead?
  ok   runtime 14s

Please provide any additional information below.
  RHEL5 (32-bit)
  Definitely go-1.3
  I think it's a many-processor machine, but it shares memory with other jobs. That makes me think it might be related to #7554. It does not seem to be related to #7421.
@adg
Copy link
Contributor

adg commented Aug 18, 2014

Comment 1:

Labels changed: added release-go1.4, repo-main.

@minux
Copy link
Member

minux commented Aug 19, 2014

Comment 2:

I think when running 32-bit programs with a 64-bit kernel,
all first 4GB of address space is usable by the program,
so we probably should remove all entries in faultAddrs
that have maps to 0xf0000000~0xffff0000 in 32-bit systems.
Or we need to find a way to detect 64-bit kernels and
only enable those test caes when actually running on 32-bit
kernels.

@minux
Copy link
Member

minux commented Aug 19, 2014

Comment 3:

Status changed to Accepted.

@gopherbot
Copy link
Contributor Author

Comment 4:

CL https://golang.org/cl/144120043 mentions this issue.

@rsc
Copy link
Contributor

rsc commented Sep 19, 2014

Comment 5:

This issue was closed by revision 5fdea34.

Status changed to Fixed.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
We can't assume all those addresses are unmapped.
But at least one should be.

What we're really testing is that the program doesn't crash.

Fixes golang#8542.

LGTM=iant
R=golang-codereviews, iant, minux
CC=golang-codereviews
https://golang.org/cl/144120043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
We can't assume all those addresses are unmapped.
But at least one should be.

What we're really testing is that the program doesn't crash.

Fixes golang#8542.

LGTM=iant
R=golang-codereviews, iant, minux
CC=golang-codereviews
https://golang.org/cl/144120043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
We can't assume all those addresses are unmapped.
But at least one should be.

What we're really testing is that the program doesn't crash.

Fixes golang#8542.

LGTM=iant
R=golang-codereviews, iant, minux
CC=golang-codereviews
https://golang.org/cl/144120043
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants