Public bug reported: pkexec attempts to close all file descriptors up to sysconf(_SC_OPEN_MAX) before executing any commands. See: https://github.com/polkit-org/polkit/blob/11c4a81f6f732e4b1887a96cab69a1ad6a000e00/src/programs/pkexec.c#L259-L267
As of 24.10, systemd is no longer compile for Ubuntu using the -Dbump-proc-sys-fs-nr-open=false flag. The absence of this flag causes systemd to set file descriptor limits to their maximum. 24.04 LTS: https://git.launchpad.net/ubuntu/+source/systemd/tree/debian/rules?h=ubuntu/noble#n82 24.10: https://git.launchpad.net/ubuntu/+source/systemd/tree/debian/rules?h=ubuntu/oracular This is causing pkexec to sit attempting to close 1073741816 file descriptors which takes several minutes every time it was called to install a lang pack. ** Affects: gnome-initial-setup (Ubuntu) Importance: Undecided Assignee: Matthew Hagemann (matt-hagemann) Status: New ** Changed in: gnome-initial-setup (Ubuntu) Assignee: (unassigned) => Matthew Hagemann (matt-hagemann) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-initial-setup in Ubuntu. https://bugs.launchpad.net/bugs/2101825 Title: pkexec attempts to close all file descriptors up to sysconf(_SC_OPEN_MAX) Status in gnome-initial-setup package in Ubuntu: New Bug description: pkexec attempts to close all file descriptors up to sysconf(_SC_OPEN_MAX) before executing any commands. See: https://github.com/polkit-org/polkit/blob/11c4a81f6f732e4b1887a96cab69a1ad6a000e00/src/programs/pkexec.c#L259-L267 As of 24.10, systemd is no longer compile for Ubuntu using the -Dbump-proc-sys-fs-nr-open=false flag. The absence of this flag causes systemd to set file descriptor limits to their maximum. 24.04 LTS: https://git.launchpad.net/ubuntu/+source/systemd/tree/debian/rules?h=ubuntu/noble#n82 24.10: https://git.launchpad.net/ubuntu/+source/systemd/tree/debian/rules?h=ubuntu/oracular This is causing pkexec to sit attempting to close 1073741816 file descriptors which takes several minutes every time it was called to install a lang pack. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-initial-setup/+bug/2101825/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp