Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: qbittorrent: broken pipe



On Wed, 25 Feb 2026, Thomas Klausner wrote:

qbittorrent dies a lot with 'broken pipe' errors on my system, and I
don't understand why. So I ran ktrace on it and get:

[...]
 2199  13372 qbittorrent CALL  sendmsg(0x86,0x7389dfbb8f30,0)
 2199  13372 qbittorrent MISC  msghdr: [name=0x0, namelen=0, iov=0x7389dfbb8fa0, iovlen=1, control=0x0, controllen=0, flags=4000000]
 2199  13372 qbittorrent RET   sendmsg -1 errno 32 Broken pipe
[...]
and lots more interrupted system calls.

Does anyone have an idea what could be happening here?


In /usr/include/sys/unistd.h:62, `_POSIX_VERSION' is only `200112L', but, in
the Boost library (boost_1_90_0/boost/asio/detail/config.hpp), the check is:

```
1393 // Kernel support for MSG_NOSIGNAL.
1394 #if !defined(BOOST_ASIO_HAS_MSG_NOSIGNAL)
1395 # if defined(__linux__)
1396 #  define BOOST_ASIO_HAS_MSG_NOSIGNAL 1
1397 # elif defined(_POSIX_VERSION)
1398 #  if (_POSIX_VERSION >= 200809L)
1399 #   define BOOST_ASIO_HAS_MSG_NOSIGNAL 1
1400 #  endif // _POSIX_VERSION >= 200809L
1401 # endif // defined(_POSIX_VERSION)
1402 #endif // !defined(BOOST_ASIO_HAS_MSG_NOSIGNAL)
```

Try changing line 1395 to:

```
# if defined(__linux__) || defined(__NetBSD__)
```

-RVP


Home | Main Index | Thread Index | Old Index