Your message dated Fri, 03 Jan 2025 11:21:55 +0000 with message-id <E1tTfkZ-003D1J-SL@fasolo.debian.org> and subject line Bug#1088964: fixed in glibc 2.40-5 has caused the Debian Bug report #1088964, regarding libc6: system() shall return -1 if a child process cannot be created 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 owner@bugs.debian.org immediately.) -- 1088964: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088964 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: libc6: system() shall return -1 if a child process cannot be created
- From: Arnaud Giersch <arnaud.giersch@univ-fcomte.fr>
- Date: Tue, 03 Dec 2024 15:38:16 +0100
- Message-id: <173323669667.2719961.3788052232739165625.reportbug@powwow.iut-bm.univ-fcomte.fr>
Package: libc6 Version: 2.36-9+deb12u9 Severity: normal Dear Maintainer, The system() library function gives the wrong result when a child process cannot be created. According to the man page system(3posix): "If a child process cannot be created, [...], system() shall return -1 and set errno to indicate the error." Actually (libc6 2.36), it returns 32512 instead of -1. The following code can be used as a test case: /*=== cut here ===*/ #include <stdio.h> #include <stdlib.h> #include <sys/resource.h> int main(void) { int a = system("true"); // force failure for the next call const struct rlimit zerorl = {0, 0}; if (setrlimit(RLIMIT_NPROC, &zerorl) == -1) perror("setrlimit(RLIMIT_CORE)"); int b = system("true"); printf("> success:%d failure:%d (%#x)\n", a, b, b); } /*=== cut here ===*/ Returns: > success:0 failure:32512 (0x7f00) Expected result: > success:0 failure:-1 (0xffffffff) Regards, Arnaud Giersch -- System Information: Debian Release: 12.8 APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'stable'), (50, 'unstable'), (40, 'experimental'), (1, 'experimental-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.1.0-27-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libc6 depends on: ii libgcc-s1 12.2.0-14 Versions of packages libc6 recommends: ii libidn2-0 2.3.3-1+b1 Versions of packages libc6 suggests: ii debconf [debconf-2.0] 1.5.82 ii glibc-doc 2.36-9+deb12u9 ii libc-l10n 2.36-9+deb12u9 ii libnss-nis 3.1-4 ii libnss-nisplus 1.3-4 ii locales 2.36-9+deb12u9 -- debconf-show failed
--- End Message ---
--- Begin Message ---
- To: 1088964-close@bugs.debian.org
- Subject: Bug#1088964: fixed in glibc 2.40-5
- From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
- Date: Fri, 03 Jan 2025 11:21:55 +0000
- Message-id: <E1tTfkZ-003D1J-SL@fasolo.debian.org>
- Reply-to: Aurelien Jarno <aurel32@debian.org>
Source: glibc Source-Version: 2.40-5 Done: Aurelien Jarno <aurel32@debian.org> We believe that the bug you reported is fixed in the latest version of glibc, 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 1088964@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Aurelien Jarno <aurel32@debian.org> (supplier of updated glibc 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 ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Fri, 03 Jan 2025 11:56:38 +0100 Source: glibc Architecture: source Version: 2.40-5 Distribution: unstable Urgency: medium Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Changed-By: Aurelien Jarno <aurel32@debian.org> Closes: 1087670 1088003 1088166 1088964 1091473 1091705 Changes: glibc (2.40-5) unstable; urgency=medium . [ Samuel Thibault ] * debian/patches/hurd-i386/git-MAP_NORESERVE.diff: Add MAP_NORESERVE flag. * debian/patches/hurd-i386/git-signal-reply-port.diff: Fix hurd build against gcc 14. . [ Bjarni Ingi Gislason ] * debian/local/manpages/update-locale.8: fix issues reported by troff. Closes: #1088003. . [ Aurelien Jarno ] * debian/patches/any/git-iconv-do-not-report-*.patch: backport iconv return code with transliteration fix from upstream. Closes: #1087670. * debian/debhelper.in/locales.templates: add a note to clarify that the C, C.UTF-8 and POSIX locales do not need to be generated. Closes: #1091473. * debian/patches/git-updates.diff: update from upstream stable branch. * patches/any/git-posix-fix-system-when-a-child-cannot-be-created-BZ-3.patch: backport patch from upstream to fix return value of system() when a child process cannot be created. Closes: #1088964. * debian/rules.d/debhelper.mk: explicitly pass the library path to dh_shlibdeps for multilib packages, to fix a FTBFS with rebootstrap which does not install the g++-XX-multilib build-dependency. Closes: #1088166. . [ Carles Pina i Estany ] * Update Catalan debconf translation. Closes: #1091705. Checksums-Sha1: 2e59a6bd088306fda97a4dc2430fe4e36517b54f 7550 glibc_2.40-5.dsc fe2c602b78f0bb88f3fd05f5f9ec061264491c5f 453708 glibc_2.40-5.debian.tar.xz fc175cddd87ff54ff439dff23e2e195facfd590a 11182 glibc_2.40-5_source.buildinfo Checksums-Sha256: 721e79c087b0b907e7e098a6b84d654891012a7aa2b7626bf73d2485d6976f49 7550 glibc_2.40-5.dsc 05aa4df25ff502a1d8ab4902f800805daa3b86c986627b0fd6d44b5409878862 453708 glibc_2.40-5.debian.tar.xz fc54149d984c8c9461b80e7c112f8d6a8881c443a5350b3f395996a26e1eeb6b 11182 glibc_2.40-5_source.buildinfo Files: fa5650ca4562760ee82bce10cd105510 7550 libs required glibc_2.40-5.dsc cc64bb13bfa93c6cbcd640a12408ada5 453708 libs required glibc_2.40-5.debian.tar.xz a4cb2f0d9e5c6aadcadd20ac69f2e08e 11182 libs required glibc_2.40-5_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAmd3wtcACgkQE4jA+Jno M2ur7w/9Fsk8q/hSNIHtl+x7tCxDhvBHaQE6iupbFsu/Uq21o3j/CCqduGD/lANF ZuAwpa24Lfy14Xv4NykLR6BH/yBFqPfb6yHffV2YnfY9YxYzoXPOWWK+/GNGiRWu H/QQ8uPGVed0xfdA5BEsDT/LDyfWzLj7hCq5S7qTZAfAZITtA0DMBO517xBaMqWW HKV3GKy5wQ/Amowpt4K/tMKSUvH8COuVd70B4HlEAzTkh847UijP9IzhyeRZ4KHI wJRUMpEt3VlNtrsWgbW+qlQpphxSNLi2XXht8lLlpVd7cB56sJ39dWP1+zAJCHwc Pf6/pdJqTYSwUSqnJKrT6fcoEr/v1H2p0nqFsRzD7XZYksRVX52qyaU8VG3Lqt6e e6HHY2DpiNjfOoJMiGZlcKqU8xKm0Matt8G+LQw8wIYMHBkiCG3cTqghN2AKFzE1 Puq4JMLJzkHKzMn5A3wFabkbH0y1G0zqu2NmycDBExLl0hS1gftv51Jei5FggmYI KczHQQfNrOU5AP6DdClPx6b3XhvKxBJhh7wojL/29xXw7Cd+P4F8OI5siT/p47QV vEoTisX38TRqPtSNUB77OBb1QmBzBH/Ovo8ym/JZEA81IhxeQBUAGciJhwTohRz4 4x+pIoUYMGYA9VZ0m/HCtNHgIkr5S0cQw26tIpnkvfqzoZg/Mok= =AQ0b -----END PGP SIGNATURE-----Attachment: pgptYOKwbU4k2.pgp
Description: PGP signature
--- End Message ---