all.bash fails on Ubuntu 24.04?

301 views
Skip to first unread message

Uli Kunitz

unread,
Apr 26, 2024, 2:02:00 AM4/26/24
to golang-nuts
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






Keith Randall

unread,
Apr 26, 2024, 11:05:06 PM4/26/24
to golang-nuts
The first issue there could very well be an incompatibility with the gdb version.

Uli Kunitz

unread,
Apr 27, 2024, 4:57:50 PM4/27/24
to golang-nuts
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:

Ulrich Kunitz

unread,
Apr 28, 2024, 4:19:02 AM4/28/24
to golang-nuts
As mentioned in #67088 TestAmbientCaps is skipped because the execve call returns operation not permitted (EPERM). It is not successful as I wrote.

--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/qrww-FOjWo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@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 all
Reply to author
Forward
0 new messages