On Sun, Jan 07, 2024 at 08:21:35PM +0200, Manolis Stamatogiannakis wrote:
> I am trying to get plocate to run on an old ARM-based NAS running Debian
> bookworm. Building the database with updatedb works fine, but plocate
> command itself blocks forever without giving any results back.
> 
> I attached gdb to the process, and the source of the problem appears to
> be related to the use of io_uring.
> 
> Trying to understand what is going on, I ran plocate under strace as
> root. Surprisingly, it ran without blocking.

This is interesting, but fundamentally pretty impossible to debug from my
side. It sounds very much like a timing-related bug, which is probably why
strace affects it (everything goes much slower); another common case is that
one attaches strace to a running process, which causes the io_uring syscall
to return EINTR, which gets things running again.

Is this reproducible every time?

>    * reports an error for not being able to access the database when run
>      under strace as user (which sounds like the expected behaviour)

Yes, this is expected.

> Architecture: armel (armv5tel)
> Kernel: Linux 6.1.0-17-marvell (UP)

Is this even supported by Debian anymore?

/* Steinar */
-- 
Homepage: https://www.sesse.net/

Reply via email to