Skip to content

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

Closed

Description

@dr2chase

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:	}

Activity

  1. gopherbot commented on May 22, 2018

    @gopherbot
    Contributor

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

  2. 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)[/+] on May 22, 2018
  3. added
    SoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)
    on May 22, 2018
  4. added this to the Go1.11 milestone on May 22, 2018
  5. locked and limited conversation to collaborators on May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeOS-LinuxSoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions