-
Bug
-
Resolution: Not a Bug
-
Undefined
-
rhel-9.7.z
-
None
-
None
-
None
-
rhel-pt-go
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
Latest rhel-9.7.z delve-1.25.2-1.el9_7 fails to debug binaries built with golang-1.25.5-1.el9_7 with the following error:
[root@86fb4c61-7c9b-419d-b46f-a9427d94bf59 ~]# rpm -qa golang delve
delve-1.25.2-1.el9_7.x86_64
golang-1.25.5-1.el9_7.x86_64
[root@86fb4c61-7c9b-419d-b46f-a9427d94bf59 tmp]# cat > hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
[root@86fb4c61-7c9b-419d-b46f-a9427d94bf59 tmp]# dlv debug hello.go
To debug executables using DWARFv5 or later Delve must be built with Go version 1.25.0 or later
Latest delve-1.25.2-1.el9_7 was in fact built with go1.24.6:
[root@86fb4c61-7c9b-419d-b46f-a9427d94bf59 tmp]# go version -m $(which dlv) /usr/bin/dlv: go1.24.6 (Red Hat 1.24.6-1.el9) path github.com/go-delve/delve/cmd/dlv build -buildmode=pie build -compiler=gc build -ldflags="-linkmode=external -compressdwarf=false -B 0x0a857945f35f85e49e08f1b0c6180ef6bc035bb6 -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 '" build -tags=rpm_crashtraceback,libtrust_openssl build DefaultGODEBUG=asynctimerchan=1,gotestjsonbuildtext=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,multipathtcp=0,netedns0=0,panicnil=1,randseednop=0,rsa1024min=0,tls10server=1,tls3des=1,tlsmlkem=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1,x509rsacrt=0,x509usepolicies=0 build CGO_ENABLED=1 build CGO_CFLAGS= build CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" build CGO_CXXFLAGS= build CGO_LDFLAGS= build GOARCH=amd64 build GOOS=linux build GOAMD64=v2 [root@86fb4c61-7c9b-419d-b46f-a9427d94bf59 tmp]#
Also, it is not reproducible when using previous golang-1.25.3-1.el9_7.