Pt-diskstats hangs

Hello!

I’m trying to execute pt-diskstats and it just hangs. A quick check using strace shows that a read is failing with -1 (Resource temporarily unavailable). Any idea on what might be going wrong here?

System Details:

# Percona Toolkit System Summary Report ######################
...
    Platform | Linux
     Release | Debian GNU/Linux 11 (bullseye) (bullseye)
      Kernel | 5.10.0-22-amd64
Architecture | CPU = 64-bit, OS = 64-bit
   Threading | NPTL 2.31
     SELinux | No SELinux detected
 Virtualized | No virtualization detected

Strace output:

....
geteuid()                               = 0
stat("/etc/percona-toolkit/percona-version-check", {st_mode=S_IFREG|0644, st_size=13, ...}) = 0
openat(AT_FDCWD, "/etc/percona-toolkit/percona-version-check", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, TCGETS, 0x7ffd155abd80)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR)                   = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=13, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=13, ...}) = 0
read(3, "0,1684438926\n", 8192)         = 13
read(3, "", 8192)                       = 0
close(3)                                = 0
pipe2([3, 5], O_CLOEXEC)                = 0
fcntl(3, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f2c316bb550) = 454825
close(5)                                = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
ioctl(3, TCGETS, 0x7ffd155abcf0)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
fcntl(3, F_GETFL)                       = 0 (flags O_RDONLY)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=500000000}, NULL) = 0
rt_sigaction(SIGCHLD, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_NOCLDWAIT, sa_restorer=0x7f2c318de140}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [PIPE], [], 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2c318de140}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
fcntl(0, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
select(8, [0], NULL, NULL, {tv_sec=1, tv_usec=32423}) = 0 (Timeout)
read(3, "TS 1684439788.000178000 2023-05-"..., 8192) = 1314
read(3, 0x55f94e29fd00, 8192)           = -1 EAGAIN (Resource temporarily unavailable)
read(3, 0x55f94e29fd00, 8192)           = -1 EAGAIN (Resource temporarily unavailable)
....

Hi, can you report this in our jira.percona.com ?
Many thanks