I agree.  Ubuntu 22.04 has gdb version 12.1, Ubuntu 24.04 has 15.0.50.

The second bug may be a change by kernel 6.8 in the handling of ambient 
capabilities if the user namespace is changed. The test without changing 
the user namespace is successful.

I have created two issues for the two errors:
* https://github.com/golang/go/issues/67089
* https://github.com/golang/go/issues/67088

On Saturday, April 27, 2024 at 5:05:06 AM UTC+2 Keith Randall wrote:

> The first issue there could very well be an incompatibility with the gdb 
> version.
>
> On Thursday, April 25, 2024 at 11:02:00 PM UTC-7 Uli Kunitz wrote:
>
>> Hi,
>>
>> I have installed Ubuntu 24.04 yesterday and there are two failures 
>> running all.bash compiling go from source. I want to check whether others 
>> experienced the same before creating one or two golang issues.
>>
>> git describe --tags returns go1.22.2.
>>
>> Here are the relevant pieces of the ouput of all.bash.
>>
>> ##### Test execution environment.
>> # GOARCH: amd64
>> # CPU: AMD Ryzen 7 3700X 8-Core Processor             
>> # GOOS: linux
>> # OS Version: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat 
>> Apr 20 00:40:06 UTC 2024 x86_64
>> ...
>> --- FAIL: TestGdbAutotmpTypes (2.78s)
>>     runtime-gdb_test.go:81: gdb version 15.0
>>     runtime-gdb_test.go:590: gdb output:
>>         Loading Go Runtime support.
>>         Target 'exec' cannot support this command.
>>         Breakpoint 1 at 0x465676: file 
>> /tmp/TestGdbAutotmpTypes673135374/001/main.go, line 8.
>>         
>>         This GDB supports auto-downloading debuginfo from the following 
>> URLs:
>>           <https://debuginfod.ubuntu.com>
>>         Enable debuginfod for this session? (y or [n]) [answered N; input 
>> not from terminal]
>>         Debuginfod has been disabled.
>>         To make this setting permanent, add 'set debuginfod enabled off' 
>> to .gdbinit.
>>         [New LWP 203782]
>>         [New LWP 203799]
>>         [New LWP 203800]
>>         
>>         Thread 1 "a.exe" hit Breakpoint 1, main.main () at 
>> /tmp/TestGdbAutotmpTypes673135374/001/main.go:8
>>         8       func main() {
>>         9               var iface interface{} = map[string]astruct{}
>>         All types matching regular expression "astruct":
>>         
>>         File runtime:
>>                 []main.astruct
>>                 bucket<string,main.astruct>
>>                 hash<string,main.astruct>
>>                 main.astruct
>>                 typedef hash<string,main.astruct> * 
>> map[string]main.astruct;
>>                 typedef noalg.[8]main.astruct noalg.[8]main.astruct;
>>                 noalg.map.bucket[string]main.astruct
>>     runtime-gdb_test.go:607: could not find []main.astruct; in 'info 
>> typrs astruct' output
>> FAIL
>> FAIL    runtime 27.315s
>> ...
>> CAP_SYS_TIME unexpectedly not in the effective capability mask
>> --- FAIL: TestAmbientCapsUserns (0.01s)
>>     exec_linux_test.go:752: exit status 2
>> FAIL
>> FAIL    syscall 0.948s
>> ...
>> FAIL
>> go tool dist: Failed: exit status 1
>>
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8bd79c21-efae-4d83-855a-627598f6d02en%40googlegroups.com.

Reply via email to