-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: TestGdbPython* fails on solaris #20821
Comments
Modifying the test to print the contents of blocks at the point of failure produces:
|
The non-cgo variant fails the same way:
|
At first glance it looks like gdb is unable to do a stack backtrace for a thread stopped in |
Marking Go 1.10 but if you want to add a |
So I manually created 'hello.go' using the sample source from the test:
Then built that and tried to run it through gdb roughly the same as the test does:
|
A simple C program:
|
Any idea why the Go program shows |
My guess is the difference is where the breakpoint was set; in Solaris libc, nanosleep is just a stub that almost immediately calls __nanosleep:
|
Here's a minimal Go program that calls nanosleep via a C wrapper:
Built and run in gdb similar to failing test:
|
Thanks. I have no idea what is going on. |
I built and tried gdb 7.11 as well; same problem. As such, I'm going to just add a t.Skip() for the moment until I have time to figure out what's gone wrong. The other test failures are more important at the moment. |
CL https://golang.org/cl/46913 mentions this issue. |
Updates #20821 Change-Id: I77a5b9a3bbb931845ef52a479549d71069af9540 Reviewed-on: https://go-review.googlesource.com/46913 Run-TryBot: Shawn Walker-Salas <shawn.walker@oracle.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This may have been affected by https://golang.org/cl/99617, which is in the 1.11beta1 release. It would be interesting to see whether the test passes now. |
This appears to be true on
|
Change https://golang.org/cl/202357 mentions this issue: |
Updates #20821 Change-Id: I186356a78ac385a15b4604e0ea6110c4c212ebc4 Reviewed-on: https://go-review.googlesource.com/c/go/+/202357 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
On a development build of Solaris, TestGdbPythonCgo fails:
At the moment, it's unclear if this is due to GDB 7.12 or because of something else as all other runtime tests pass. I intend to investigate and root cause if possible soon.
The text was updated successfully, but these errors were encountered: