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

cmd/compile: ssa/debug_test.go very regressed on Linux (but not OSX) #25497

Closed
dr2chase opened this issue May 22, 2018 · 1 comment
Closed

cmd/compile: ssa/debug_test.go very regressed on Linux (but not OSX) #25497

dr2chase opened this issue May 22, 2018 · 1 comment
Labels
FrozenDueToAge OS-Linux Soon This needs to be done soon. (regressions, serious bugs, outages)
Milestone

Comments

@dr2chase
Copy link
Contributor

I noticed this last night while trying to throughly test the changes to prologue end and DWARF version.
It appears to be some interaction with some other change, and no idea yet why it works on OSX.

Everything after a call to Fprintf or println is missing; if done by hand, the debugger races to the end.

    --- FAIL: TestNexting/gdb-opt-hist (1.63s)
    	debug_test.go:234: step/next histories differ, diff=
    		--- testdata/hist.gdb-opt.nexts	2018-05-22 06:09:57.601443878 -0400
    		+++ /tmp/debug_test255923597/test-hist.gdb-opt.nexts	2018-05-22 06:12:09.156909059 -0400
    		@@ -123,39 +123,3 @@
    		 91:			n += a
    		 90:			t += i * a
    		 92:			fmt.Fprintf(os.Stderr, "%d\t%d\t%d\t%d\t%d\n", i, a, n, i*a, t) //gdb-dbg=(n,i,t)
    		-86:		for i, a := range hist {
...
    		-86:		for i, a := range hist {
    		-98:	}
@gopherbot
Copy link

Change https://golang.org/cl/114080 mentions this issue: cmd/compile: grow stack before test() to avoid gdb misbehavior

@odeke-em odeke-em changed the title ssa/debug_test.go very regressed on Linux (but not OSX) cmd/compile: ssa/debug_test.go very regressed on Linux (but not OSX) May 22, 2018
@odeke-em odeke-em added OS-Linux Soon This needs to be done soon. (regressions, serious bugs, outages) labels May 22, 2018
@odeke-em odeke-em added this to the Go1.11 milestone May 22, 2018
@golang golang locked and limited conversation to collaborators May 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge OS-Linux Soon This needs to be done soon. (regressions, serious bugs, outages)
Projects
None yet
Development

No branches or pull requests

3 participants