The process never terminates and shows high CPU usage, most of which is spent in syscalls.. strace -ff shows a rapid and endless stream of
[pid 701400] openat(AT_FDCWD, "/home/dominikh/.config/go/telemetry/local/compile@devel-devel-linux-amd64-2024-07-04.v1.count", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 6
[pid 701400] fcntl(6, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE <unfinished ...>
[pid 701405] nanosleep({tv_sec=0, tv_nsec=20000}, <unfinished ...>
[pid 701400] <... fcntl resumed>) = 0
[pid 701400] epoll_ctl(4, EPOLL_CTL_ADD, 6, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=1507866546, u64=9223363117715568562}}) = -1 EPERM (Operation not permitted)
[pid 701400] fcntl(6, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
[pid 701400] fcntl(6, F_SETFL, O_RDWR|O_LARGEFILE) = 0
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] fstat(6, <unfinished ...>
[pid 701405] nanosleep({tv_sec=0, tv_nsec=20000}, <unfinished ...>
[pid 701400] <... fstat resumed>{st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
[pid 701400] fstat(6, {st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
[pid 701400] mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_SHARED, 6, 0) = 0x7ffff7e20000
[pid 701400] munmap(0x7fffb121c000, 16384 <unfinished ...>
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] <... munmap resumed>) = 0
[pid 701405] nanosleep({tv_sec=0, tv_nsec=20000}, <unfinished ...>
[pid 701400] close(7) = 0
[pid 701400] openat(AT_FDCWD, "/home/dominikh/.config/go/telemetry/local/compile@devel-devel-linux-amd64-2024-07-04.v1.count", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 7
[pid 701400] fcntl(7, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE <unfinished ...>
[pid 701405] nanosleep({tv_sec=0, tv_nsec=20000}, <unfinished ...>
[pid 701400] <... fcntl resumed>) = 0
[pid 701400] epoll_ctl(4, EPOLL_CTL_ADD, 7, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=1507866547, u64=9223363117715568563}}) = -1 EPERM (Operation not permitted)
[pid 701400] fcntl(7, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
[pid 701400] fcntl(7, F_SETFL, O_RDWR|O_LARGEFILE) = 0
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] fstat(7, <unfinished ...>
[pid 701405] nanosleep({tv_sec=0, tv_nsec=20000}, <unfinished ...>
[pid 701400] <... fstat resumed>{st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
[pid 701400] fstat(7, {st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
[pid 701400] mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_SHARED, 7, 0) = 0x7fffb121c000
[pid 701400] munmap(0x7ffff7e20000, 16384 <unfinished ...>
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] <... munmap resumed>) = 0
[pid 701405] nanosleep({tv_sec=0, tv_nsec=20000}, <unfinished ...>
[pid 701400] close(6) = 0
[pid 701400] openat(AT_FDCWD, "/home/dominikh/.config/go/telemetry/local/compile@devel-devel-linux-amd64-2024-07-04.v1.count", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 6
[pid 701400] fcntl(6, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE <unfinished ...>
[pid 701405] nanosleep({tv_sec=0, tv_nsec=20000}, <unfinished ...>
[pid 701400] <... fcntl resumed>) = 0
[pid 701400] epoll_ctl(4, EPOLL_CTL_ADD, 6, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=1507866548, u64=9223363117715568564}}) = -1 EPERM (Operation not permitted)
[pid 701400] fcntl(6, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
[pid 701400] fcntl(6, F_SETFL, O_RDWR|O_LARGEFILE) = 0
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] fstat(6, <unfinished ...>
[pid 701405] nanosleep({tv_sec=0, tv_nsec=40000}, <unfinished ...>
[pid 701400] <... fstat resumed>{st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
[pid 701400] fstat(6, {st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
[pid 701400] mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_SHARED, 6, 0) = 0x7ffff7e20000
[pid 701400] munmap(0x7fffb121c000, 16384) = 0
[pid 701400] close(7 <unfinished ...>
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] <... close resumed>) = 0
[pid 701405] nanosleep({tv_sec=0, tv_nsec=80000}, <unfinished ...>
[pid 701400] openat(AT_FDCWD, "/home/dominikh/.config/go/telemetry/local/compile@devel-devel-linux-amd64-2024-07-04.v1.count", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 7
[pid 701400] fcntl(7, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
[pid 701400] fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
[pid 701400] epoll_ctl(4, EPOLL_CTL_ADD, 7, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=1507866549, u64=9223363117715568565}}) = -1 EPERM (Operation not permitted)
[pid 701400] fcntl(7, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
[pid 701400] fcntl(7, F_SETFL, O_RDWR|O_LARGEFILE <unfinished ...>
[pid 701405] <... nanosleep resumed>NULL) = 0
[pid 701400] <... fcntl resumed>) = 0
[pid 701405] nanosleep({tv_sec=0, tv_nsec=160000}, <unfinished ...>
[pid 701400] fstat(7, {st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
[pid 701400] fstat(7, {st_mode=S_IFREG|0644, st_size=16384, ...}) = 0
[pid 701400] mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_SHARED, 7, 0) = 0x7fffb121c000
[pid 701400] munmap(0x7ffff7e20000, 16384) = 0
[pid 701400] close(6) = 0
Not that.
Go version
go version devel go1.23-82c371a307 Fri Jun 28 19:59:35 2024 +0000 linux/amd64
Output of
go envin your module/workspace:What did you do?
Run
go tool compile -helpWhat did you see happen?
The process never terminates and shows high CPU usage, most of which is spent in syscalls..
strace -ffshows a rapid and endless stream ofWhat did you expect to see?
Not that.