Your message dated Sat, 15 Nov 2025 00:04:54 +0000
with message-id <[email protected]>
and subject line Bug#1043201: fixed in slirp 1:1.0.17-12
has caused the Debian Bug report #1043201,
regarding slirp: immediate exit at startup
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1043201: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043201
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: slirp
Severity: important
Tags: patch upstream

Dear Maintainer,

When trying to use slirp with user-mode-linux (eth0=slirp) under Debian
bookworm (amd64), I noticed that as soon as I up the virtual interface,
slirp prints its usual banner and immediately exits with status 1.  The
slirp process started by UML becomes a zombie and there's no network
connectivity.  Some debugging led me to believe that the cause is
signedness difference at src/main.c:955 in the

if (timeout.tv_usec == -1) { ... }

comparison, which makes the condition always false, thus reaching the
select() call with timeout.tv_usec (of unsiged type) set to 0xffffffff
(that is -1 converted to unsigned) and thus hitting EINVAL.  Adding an
explicit cast via the below patch helped.  This problem might affect
64-bit architectures only; I tested on amd64.  Please consider fixing
this one way or another.

Thanks,
Feri.

$ cat slirp-1.0.17/debian/patches/018-tv_usec-is-unsigned.patch 
Index: slirp-1.0.17/src/main.c
===================================================================
--- slirp-1.0.17.orig/src/main.c        2023-08-07 11:49:03.000000000 +0200
+++ slirp-1.0.17/src/main.c     2023-08-07 11:57:06.850518113 +0200
@@ -859,7 +859,7 @@
         * First, see the timeout needed by *timo
         */
        timeout.tv_sec = 0;
-       timeout.tv_usec = -1;
+       timeout.tv_usec = (unsigned)-1;
        /*
         * If a slowtimo is needed, set timeout to 500ms from the last
         * slow timeout. If a fast timeout is needed, set timeout within
@@ -952,7 +952,7 @@
         * This will make timings (like idle timer and "wait" timer)
         * up to 10 seconds late, but will be more system friendly
         */
-       if (timeout.tv_usec == -1) {
+       if (timeout.tv_usec == (unsigned)-1) {
                timeout.tv_usec = 0;
                timeout.tv_sec = 5; /* XXX */
        }

--- End Message ---
--- Begin Message ---
Source: slirp
Source-Version: 1:1.0.17-12
Done: Roberto Lumbreras <[email protected]>

We believe that the bug you reported is fixed in the latest version of
slirp, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roberto Lumbreras <[email protected]> (supplier of updated slirp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 15 Nov 2025 00:37:02 +0100
Source: slirp
Architecture: source
Version: 1:1.0.17-12
Distribution: unstable
Urgency: low
Maintainer: Roberto Lumbreras <[email protected]>
Changed-By: Roberto Lumbreras <[email protected]>
Closes: 1043201 1105592 1107023 1115159
Changes:
 slirp (1:1.0.17-12) unstable; urgency=low
 .
   * New starndards. dep5-copyright file.
   * Add libcrypt-dev to Build-Depends (Closes: #1107023).
   * Fix immediate exit at startup and debug fixes (Closes: #1043201).
   * Convert CDBS build to debhelper. (Closes: #1115159).
   * Fix FTBFS with make --shuffle=reverse (Closes: #1105592).
   * Fix compiler warnings.
Checksums-Sha1:
 1ed57c6d68e6cd6676e898bf12f684996871c7d6 1787 slirp_1.0.17-12.dsc
 d37c7b8a35d24a238e83c81de38f13b139e4951a 26812 slirp_1.0.17-12.debian.tar.xz
 271c354c1f07b360ec73b0a6bca1cebeef00be3c 5913 slirp_1.0.17-12_amd64.buildinfo
Checksums-Sha256:
 73ebbc3af50cfc4b1b6b938379681d73b839cef3dc105775f48e8af2abcc9ce4 1787 
slirp_1.0.17-12.dsc
 8240c42f4caff68989934ef081055d52f614397e4e856861462fd3a8efbc073c 26812 
slirp_1.0.17-12.debian.tar.xz
 66ae3bbd1140f2ea89c123ef0770c7b7ec3218fbbc06eeb6f06890c71fe8fb2b 5913 
slirp_1.0.17-12_amd64.buildinfo
Files:
 885889eff97917393fe57c2946e17bed 1787 net optional slirp_1.0.17-12.dsc
 a21a0d77e973d53bb9c2f3daa26c4250 26812 net optional 
slirp_1.0.17-12.debian.tar.xz
 842a39f2a35dd88a2f96a6dfe3235889 5913 net optional 
slirp_1.0.17-12_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE0P8TF3YtXzyApcdAtn7iEBIpC00FAmkXvi4RHHJvdmVyQGRl
Ymlhbi5vcmcACgkQtn7iEBIpC01obA/9HZLmAoW/aNncaJ1TaWwgE0MZpYV0PjAh
teTpktc4iWyl634mFAkqAXj0RmcQVocHqg/gBVNK5F473I4PEyQAUEzQMxSHnGss
UhhHVFHUqWET3crBw6B8Jw3+VqCOCiBcEiDN3JMV9OV2oqLdfbTH1qoCUuVHpDfD
uv/mLBzxfLlJxgxtTxLfYqycjq/Rgtmuw/OS5syZqfsj+OaHWp3j522qN/wSu962
lMgq+IHYh4Qu5iFsxzerZjJ1ubKzXkBfdsu8COgnL5ayZA8oZos55o04TuwjZpPh
lhnwUoiFSJNd+y54qWxdrlfcji/xGfA85dCfyDTZaKxWErpFkMkzONgsKDnRK8uj
qjJQ/FyVUJYFAukvBCzYkloEaTsZIk5xFvPiTyvEp5huZEQua4mhCfhNVFW0/tIS
d/7gloHLjwzOl+ccQqZQ3WlRh0SBtxjr0T2l2/psq0xnSfT+SsFojq8OG0VRFWyB
+JfrBienbGaCQdahzayApbPi2fQAzRh50tmj1n9265fBAAgA9f4ySghwk0iSElFc
XWrllFMzfDPGn/XigU2q6ph61FlFhgzopiZOCF59XSwAKZomPyayBI78AsVxtmqM
nS/qcCVDBSVq2doFWfuMdvyBQ57wYXMJIsFlHOlDLVjYXPFHU7zZ4vh6vNrU5T35
k/BhE4lfIEk=
=Q0K9
-----END PGP SIGNATURE-----

Attachment: pgp5CojI_BQzt.pgp
Description: PGP signature


--- End Message ---

Reply via email to