go 运行时:GDB测试在freebsd/arm构建器上失败

rkkpypqq  于 7个月前  发布在  Go
关注(0)|答案(5)|浏览(63)

从 #28679 (评论) ...
这仍然无法通过 freebsd-arm-paulzhol 构建。
最近的失败:https://build.golang.org/log/d9278491818714d74a9190557d6107f737d48612
是否可以像 @bradfitz 早些时候建议的那样禁用此测试?或者还有其他可以尝试的方法吗?
暂时禁用。
/cc @paulzhol

fhity93d

fhity93d1#

https://golang.org/cl/155932提到了这个问题:runtime: disable GDB tests on freebsd/arm for now

cwtwac6a

cwtwac6a2#

我已经启动了旧的11.2镜像并运行了测试:

[paulzhol@arm-virt /tmp/go/src/runtime]$ ../../bin/go test -v -run "GdbPython$"                                    
=== RUN   TestGdbPython                                                                                            
=== PAUSE TestGdbPython                                                                                            
=== CONT  TestGdbPython                                                                                            
--- SKIP: TestGdbPython (0.25s)                                                                                    
    runtime-gdb_test.go:68: skipping: gdb version 6.1 too old                                                      
PASS                                                                                                               
ok      runtime 0.373s

这是内嵌的gdb,它真的很旧。

[paulzhol@arm-virt /tmp/go/src/runtime]$ gdb                                                                       
GNU gdb 6.1.1 [FreeBSD]                                                                                            
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "armv6-marcel-freebsd".

似乎它最终被从FreeBSD 12中退休为 intended
如果我修改测试以使用ports集合 gdb81 ,测试将与GDB 8.2构建器日志一样失败。
这引发了几个问题:

  • 我们的所有amd64构建器(除了FreeBSD 12)都有一个古老的GDB,所以它们总是跳过测试。
  • FreeBSD 12镜像需要更新以安装来自ports集合的gdb,因为它根本没有一个。
  • 这将导致测试失败,因此它需要在所有GOARCHes上禁用,而不仅仅是arm。
dldeef67

dldeef673#

首先,将CL发送到始终跳过所有GOARCH值的GOOS freebsd上的测试,然后我们可以更新镜像以包含一个更新的gdb并解决该问题(并删除t.Skip)。

x8goxv8g

x8goxv8g4#

https://golang.org/cl/156717提到了这个问题:runtime: disable GDB tests on freebsd on all GOARCH values

k75qkfdt

k75qkfdt5#

https://golang.org/cl/160800提到了这个问题:[release-branch.go1.11] runtime: disable GDB tests on freebsd on all GOARCH values

相关问题