-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
What version of Go are you using (go version
)?
go version devel +6e2a13535f Wed Oct 31 11:36:39 2018 +0700 linux/amd64
What operating system and processor architecture are you using (go env
)?
GOARCH="amd64"
GOBIN="/home/ms/bin"
GOCACHE="/home/ms/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ms/go"
GOPROXY=""
GORACE="history_size=7"
GOROOT="/home/ms/Programs/go"
GOTMPDIR=""
GOTOOLDIR="/home/ms/Programs/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build877907951=/tmp/go-build -gno-record-gcc-switches"
What did you do?
Build the Go compiler from source.
What did you expect to see?
New Go compiler successfully build.
What did you see instead?
ok regexp/syntax 0.618s
--- FAIL: TestGdbPython (1.71s)
runtime-gdb_test.go:64: gdb version 8.2
runtime-gdb_test.go:213: gdb output: Loading Go Runtime support.
Loaded Script
Yes /home/ms/git/go/src/runtime/runtime-gdb.py
Breakpoint 1 at 0x47f770: file /home/ms/git/go/src/fmt/print.go, line 274.
[New LWP 1749]
[New LWP 1750]
[New LWP 1751]
[New LWP 1752]
Thread 1 "a.exe" hit Breakpoint 1, fmt.Println (a=..., n=<optimized out>, err=...) at /home/ms/git/go/src/fmt/print.go:274
274 func Println(a ...interface{}) (n int, err error) {
BEGIN info goroutines
* 1 running runtime.systemstack_switch
2 waiting runtime.gopark
3 waiting runtime.gopark
4 waiting runtime.gopark
END
#1 0x0000000000485c47 in main.main () at /tmp/go-build133295970/main.go:14
14 fmt.Println("hi")
BEGIN print mapvar
$1 = map[string]string = {[0x4b658d "abc"] = 0x4b6599 "def", [0x4b65a5 "ghi"] = 0x4b65ae "jkl"}
END
BEGIN print strvar
$2 = 0x4b658d "abc"
END
BEGIN info locals
mapvar = map[string]string = {[0x4b658d "abc"] = 0x4b6599 "def", [0x4b65a5 "ghi"] = 0x4b65ae "jkl"}
strvar = 0x4b658d "abc"
slicevar = {array = 0xc000096000, len = 4941197, cap = 3}
END
#0 fmt.Println (a=..., n=<optimized out>, err=...) at /home/ms/git/go/src/fmt/print.go:274
274 func Println(a ...interface{}) (n int, err error) {
BEGIN goroutine 1 bt
#0 fmt.Println (a=..., n=<optimized out>, err=...) at /home/ms/git/go/src/fmt/print.go:274
#1 0x0000000000485c47 in main.main () at /tmp/go-build133295970/main.go:14
END
BEGIN goroutine 2 bt
#0 runtime.gopark (unlockf=<optimized out>, lock=0x551b50 <runtime.forcegc>, reason=16 '\020', traceEv=20 '\024', traceskip=1) at /home/ms/git/go/src/runtime/proc.go:303
#1 0x0000000000428f03 in runtime.goparkunlock (lock=0x551b50 <runtime.forcegc>, reason=16 '\020', traceEv=20 '\024', traceskip=1) at /home/ms/git/go/src/runtime/proc.go:308
#2 0x0000000000428cca in runtime.forcegchelper () at /home/ms/git/go/src/runtime/proc.go:251
#3 0x000000000044fd41 in runtime.goexit () at /home/ms/git/go/src/runtime/asm_amd64.s:1340
#4 0x0000000000000000 in ?? ()
END
Breakpoint 2 at 0x485c72: file /tmp/go-build133295970/main.go, line 19.
hi
Thread 1 "a.exe" hit Breakpoint 2, main.main () at /tmp/go-build133295970/main.go:19
19 } // END_OF_PROGRAM
BEGIN goroutine 1 bt at the end
#0 main.main () at /tmp/go-build133295970/main.go:19
END
runtime-gdb_test.go:274: info locals failed: mapvar = map[string]string = {[0x4b658d "abc"] = 0x4b6599 "def", [0x4b65a5 "ghi"] = 0x4b65ae "jkl"}
strvar = 0x4b658d "abc"
slicevar = {array = 0xc000096000, len = 4941197, cap = 3}
--- FAIL: TestGdbPythonCgo (2.25s)
runtime-gdb_test.go:64: gdb version 8.2
runtime-gdb_test.go:213: gdb output: Loading Go Runtime support.
Loading Go Runtime support.
Breakpoint 1 at 0x481180: file /home/ms/git/go/src/fmt/print.go, line 274.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff5b62700 (LWP 1959)]
[New Thread 0x7fffeffff700 (LWP 1962)]
[New Thread 0x7ffff5361700 (LWP 1964)]
[New Thread 0x7ffff4b60700 (LWP 1965)]
[New Thread 0x7fffef7fe700 (LWP 1966)]
Thread 1 "a.exe" hit Breakpoint 1, fmt.Println (a=..., n=<optimized out>, err=...) at /home/ms/git/go/src/fmt/print.go:274
274 func Println(a ...interface{}) (n int, err error) {
BEGIN info goroutines
* 1 running runtime.systemstack_switch
2 waiting runtime.gopark
3 waiting runtime.gopark
4 waiting runtime.gopark
END
#1 0x0000000000487657 in main.main () at /tmp/go-build772824409/main.go:15
15 fmt.Println("hi")
BEGIN print mapvar
$1 = map[string]string = {[0x4b95ad "abc"] = 0x4b95b9 "def", [0x4b95c5 "ghi"] = 0x4b95ce "jkl"}
END
BEGIN print strvar
$2 = 0x4b95ad "abc"
END
BEGIN info locals
mapvar = map[string]string = {[0x4b95ad "abc"] = 0x4b95b9 "def", [0x4b95c5 "ghi"] = 0x4b95ce "jkl"}
strvar = 0x4b95ad "abc"
slicevar = {array = 0xc0000a4000, len = 4953517, cap = 3}
END
#0 fmt.Println (a=..., n=<optimized out>, err=...) at /home/ms/git/go/src/fmt/print.go:274
274 func Println(a ...interface{}) (n int, err error) {
BEGIN goroutine 1 bt
#0 fmt.Println (a=..., n=<optimized out>, err=...) at /home/ms/git/go/src/fmt/print.go:274
#1 0x0000000000487657 in main.main () at /tmp/go-build772824409/main.go:15
END
BEGIN goroutine 2 bt
#0 runtime.gopark (unlockf=<optimized out>, lock=0x556ca0 <runtime.forcegc>, reason=16 '\020', traceEv=20 '\024', traceskip=1) at /home/ms/git/go/src/runtime/proc.go:303
#1 0x000000000042a843 in runtime.goparkunlock (lock=0x556ca0 <runtime.forcegc>, reason=16 '\020', traceEv=20 '\024', traceskip=1) at /home/ms/git/go/src/runtime/proc.go:308
#2 0x000000000042a60a in runtime.forcegchelper () at /home/ms/git/go/src/runtime/proc.go:251
#3 0x0000000000451811 in runtime.goexit () at /home/ms/git/go/src/runtime/asm_amd64.s:1340
#4 0x0000000000000000 in ?? ()
END
Breakpoint 2 at 0x487682: file /tmp/go-build772824409/main.go, line 20.
hi
Thread 1 "a.exe" hit Breakpoint 2, main.main () at /tmp/go-build772824409/main.go:20
20 } // END_OF_PROGRAM
BEGIN goroutine 1 bt at the end
#0 main.main () at /tmp/go-build772824409/main.go:20
END
runtime-gdb_test.go:274: info locals failed: mapvar = map[string]string = {[0x4b95ad "abc"] = 0x4b95b9 "def", [0x4b95c5 "ghi"] = 0x4b95ce "jkl"}
strvar = 0x4b95ad "abc"
slicevar = {array = 0xc0000a4000, len = 4953517, cap = 3}
FAIL
FAIL runtime 39.656s
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.