From unknown Sat Jun 21 03:07:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39341 <39341@debbugs.gnu.org> To: bug#39341 <39341@debbugs.gnu.org> Subject: Status: Installer using 100% of a CPU core Reply-To: bug#39341 <39341@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:07:50 +0000 retitle 39341 Installer using 100% of a CPU core reassign 39341 guix submitter 39341 Maxim Cournoyer severity 39341 important thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 00:19:30 2020 Received: (at submit) by debbugs.gnu.org; 29 Jan 2020 05:19:30 +0000 Received: from localhost ([127.0.0.1]:33163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwflC-0002QV-1B for submit@debbugs.gnu.org; Wed, 29 Jan 2020 00:19:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:40263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwflA-0002QN-8n for submit@debbugs.gnu.org; Wed, 29 Jan 2020 00:19:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40093) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwfl9-0006Hs-7U for bug-guix@gnu.org; Wed, 29 Jan 2020 00:19:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwfl8-0001YU-87 for bug-guix@gnu.org; Wed, 29 Jan 2020 00:19:27 -0500 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:35965) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwfl8-0001YB-2l for bug-guix@gnu.org; Wed, 29 Jan 2020 00:19:26 -0500 Received: by mail-qk1-x736.google.com with SMTP id w25so10175611qki.3 for ; Tue, 28 Jan 2020 21:19:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=jkEVxdaj1uQI/2wj8rmuosYDFtvlkKumxC7LfEdyC0k=; b=oqMpBM6ffm++xwOObklgTzkgMNijzcheYKmJLafX5LiydbGOUM3HIShvbd5WZTBHaF ot0EcCgPrfPyXEL8d2cnkvS0BGGjAfiW+82XC5DqIMxkL3Kwpq0AaNkwr7nYQfb8Vikl yTQ7Af7p1HDRdI3ZMKnnwhiUKWPMmel92ecPC8V4EvYP4N+qI6oqwx24LBl6UBB5SH72 G7kP8Kfu+BAW8j66vWFKaltPDpR1Z8Dz3pV2axnz91i7pWGi/JmxkRG3mbzMMphlTHFD bj5ejSIAoUL91hH2YLoSlo1e2Z8Z3SIul0CqYxwnqSAoy6371n4Ig6Rg/jmi2H08vSN5 0UGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=jkEVxdaj1uQI/2wj8rmuosYDFtvlkKumxC7LfEdyC0k=; b=Rdk+G/UotmBlioNnTcI3qwo9V5OHRXUji0jAasRgRu+zE+cBJ1ur9oXKh8NEw2XGQB 3o0I6LCmWGSQhMOduLuOrgxrGCwbUi3E7U9GIs7s8+TSXIXCndF2MjeD4NFwJUs/AeSX Iaw1iRk2tmZ9RHlt5arKRZV61pUaq9+ImRJAnw6SBlMXAh7bWKDiZ4xb8j7OrzXIEhb9 ZNzihXw7nAT65XESvPy/EN8MC+3OyfrsQ6WHkGUAwaLf+H6XIiuCnK4sWbVu2maLQcHA O1Fg0Tr+pMHLhBTHIxkHUjsv2mBJY8ZDUxe98CmZ7XaWMxOGSiNhGVEhyrbZAeWX8QSn 47cg== X-Gm-Message-State: APjAAAUdqpS7fw3HgIP34G+wxxOkHPkKesO3qRHJ3Aca3nYWhneRyiJi PSYx2NPSzrO41ITH7EqFnsZwSevs X-Google-Smtp-Source: APXvYqyMEaaFfsW0QtFugYSk7oH9jyvI8ErIzvKExXsHf2EeoWhVT9h0WF6pjlWohH+Hcd67XnSLHQ== X-Received: by 2002:a05:620a:8cc:: with SMTP id z12mr24471808qkz.48.1580275165074; Tue, 28 Jan 2020 21:19:25 -0800 (PST) Received: from apteryx (dsl-205-236-230-40.b2b2c.ca. [205.236.230.40]) by smtp.gmail.com with ESMTPSA id 135sm463460qkl.68.2020.01.28.21.19.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2020 21:19:24 -0800 (PST) From: Maxim Cournoyer To: bug-guix Subject: Installer using 100% of a CPU core Date: Wed, 29 Jan 2020 00:19:22 -0500 Message-ID: <87a766u9et.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::736 X-Spam-Score: 2.3 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: While using the Guix 1.0.1 installer, I noticed that it was constantly maxing one of the cores on the machine. The guilty process is: --88--- USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 377 99.8 0.3 37268 10328 ? Rs 08:20 377:09 /gnu/store/8asv37pjsq3n4b4hgz9y [...] Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.17 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (maxim.cournoyer[at]gmail.com) 2.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) While using the Guix 1.0.1 installer, I noticed that it was constantly maxing one of the cores on the machine. The guilty process is: --8<---------------cut here---------------start------------->8--- USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 377 99.8 0.3 37268 10328 ? Rs 08:20 377:09 /gnu/store/8asv37pjsq3n4b4hgz9ys840f9j531hk-kmscon-0.0.0-1.01dd0a2/libexec/kmscon/kmscon --login --vt tty1 --no-switchvt --login -- /gnu/store/cb92798ps1xpla3ai14ik81vkl7jbw97-installer -p --8<---------------cut here---------------end--------------->8--- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 11:28:05 2020 Received: (at control) by debbugs.gnu.org; 29 Jan 2020 16:28:05 +0000 Received: from localhost ([127.0.0.1]:34516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwqCD-000638-8P for submit@debbugs.gnu.org; Wed, 29 Jan 2020 11:28:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwqCB-00062c-Hv for control@debbugs.gnu.org; Wed, 29 Jan 2020 11:28:04 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iwqC6-0006Nh-DZ for control@debbugs.gnu.org; Wed, 29 Jan 2020 11:27:58 -0500 Received: from [109.135.3.123] (port=37880 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iwqC5-00086s-2k for control@debbugs.gnu.org; Wed, 29 Jan 2020 11:27:57 -0500 Date: Wed, 29 Jan 2020 17:27:53 +0100 Message-Id: <87d0b26xdi.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #39341 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) severity 39341 important quit From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 25 17:42:12 2021 Received: (at 39341-done) by debbugs.gnu.org; 25 Apr 2021 21:42:12 +0000 Received: from localhost ([127.0.0.1]:43990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lamW4-0000As-59 for submit@debbugs.gnu.org; Sun, 25 Apr 2021 17:42:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lamW2-0000Af-5B for 39341-done@debbugs.gnu.org; Sun, 25 Apr 2021 17:42:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43369) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lamVv-0003Qt-Td; Sun, 25 Apr 2021 17:42:03 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=51412 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lamVt-0007zl-En; Sun, 25 Apr 2021 17:42:02 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> Date: Sun, 25 Apr 2021 23:41:59 +0200 In-Reply-To: <87a766u9et.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 29 Jan 2020 00:19:22 -0500") Message-ID: <87h7juf3dk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, "pelzflorian \(Florian Pelz\)" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi! (Cc: Florian + Mathieu) Maxim Cournoyer skribis: > While using the Guix 1.0.1 installer, I noticed that it was constantly > maxing one of the cores on the machine. > > The guilty process is: > > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > root 377 99.8 0.3 37268 10328 ? Rs 08:20 377:09 /gnu/sto= re/8asv37pjsq3n4b4hgz9ys840f9j531hk-kmscon-0.0.0-1.01dd0a2/libexec/kmscon/k= mscon --login --vt tty1 --no-switchvt --login -- /gnu/store/cb92798ps1xpla3= ai14ik81vkl7jbw97-installer -p Good news! This is finally fixed: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3Dd904abe0768293b23= 22dbf355b6e41d94e769d78 (Mathieu, Florian: let me know if anything looks fishy.) The commit log says it all. With this patch, a new FIFO is opened after each keymap-change request so kmscon no longer polls on a stale file descriptor. I=E2=80=99ve verified that keymap choices in the installer are honored, tha= t you can change anytime via the F1 menu, and that there=E2=80=99s no file descri= ptor leak in the kmscon process. Now people will be less likely to hear the fan of their laptop right from the start of the installation process. :-) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 26 10:32:56 2021 Received: (at 39341-done) by debbugs.gnu.org; 26 Apr 2021 14:32:57 +0000 Received: from localhost ([127.0.0.1]:46691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lb2IC-0004Yk-No for submit@debbugs.gnu.org; Mon, 26 Apr 2021 10:32:56 -0400 Received: from pelzflorian.de ([5.45.111.108]:58896 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lb2IA-0004Yb-9H for 39341-done@debbugs.gnu.org; Mon, 26 Apr 2021 10:32:55 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 1262F36063C; Mon, 26 Apr 2021 16:32:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1619447573; bh=QY0vLz8xCqa0uvua1u2/wHjqY+sKuebEXY37KWQ+HVk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ZJqTeJdcklhIRVcTcx4rMOlDMgqccs1oI/MlH/Eyjj82wG7559X9UEE8bMCN5Zov3 aAGL+l1eZXr26BkgYvOYVXl9JgDJkH5hE33U2/MCKIrhHHyN641IMHEQqMUoqs/Qgf OWg2sz2mJdc0xJBhu3Yvxkbwtj6lDY0jotQwcaOE= Date: Mon, 26 Apr 2021 16:32:45 +0200 From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87h7juf3dk.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, Apr 25, 2021 at 11:41:59PM +0200, Ludovic Courtès wrote: 65;6003;1c> I’ve verified that keymap choices in the installer are honored, that you > can change anytime via the F1 menu, and that there’s no file descriptor > leak in the kmscon process. Keyboard layout selection completely broke for me, I will check again later if the mistake is on my part. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 26 12:07:48 2021 Received: (at 39341-done) by debbugs.gnu.org; 26 Apr 2021 16:07:48 +0000 Received: from localhost ([127.0.0.1]:46869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lb3lz-00073o-PR for submit@debbugs.gnu.org; Mon, 26 Apr 2021 12:07:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lb3ly-00073b-Cu for 39341-done@debbugs.gnu.org; Mon, 26 Apr 2021 12:07:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59254) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lb3lq-0002QO-Lf; Mon, 26 Apr 2021 12:07:39 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58272 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lb3ln-00056V-Qd; Mon, 26 Apr 2021 12:07:36 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 26 Apr 2021 18:07:33 +0200 In-Reply-To: <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Mon, 26 Apr 2021 16:32:45 +0200") Message-ID: <87fszdav22.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, "pelzflorian (Florian Pelz)" skribis: > On Sun, Apr 25, 2021 at 11:41:59PM +0200, Ludovic Court=C3=A8s wrote: > 65;6003;1c> I=E2=80=99ve verified that keymap choices in the installer ar= e honored, that you >> can change anytime via the F1 menu, and that there=E2=80=99s no file des= criptor >> leak in the kmscon process. > > Keyboard layout selection completely broke for me, I will check again > later if the mistake is on my part. How did you test? I made the initial choice in the early menu and later modified it by pressing F1 and =E2=80=9CChange keyboard layout=E2=80=9D. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 26 12:15:13 2021 Received: (at 39341-done) by debbugs.gnu.org; 26 Apr 2021 16:15:13 +0000 Received: from localhost ([127.0.0.1]:46908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lb3tA-0007Ga-PM for submit@debbugs.gnu.org; Mon, 26 Apr 2021 12:15:13 -0400 Received: from pelzflorian.de ([5.45.111.108]:58996 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lb3t8-0007GQ-Fc for 39341-done@debbugs.gnu.org; Mon, 26 Apr 2021 12:15:12 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 17ABC36063C; Mon, 26 Apr 2021 18:15:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1619453709; bh=qvscDHIWb4KeZeeZGavrIB0hBB/+G/fAygo1Qw0mKmg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=YaRoUBCQme2XQb45V/VHqOvU4u7+AYSYd3yPnpNniaJZrJqp9aw6gfOWaZ9Fw2PKQ ksaE64wKbqfSYYvtti5otkVCRZBSIrzvNOldrSNPDkr4uOONUc+MiLJ9WzQ9S8cbXi 8n2f4az0e3EUg8FUsjUQO5RmUlHq0JLyLj4UZ4L0= Date: Mon, 26 Apr 2021 18:14:59 +0200 From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87fszdav22.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, Apr 26, 2021 at 06:07:33PM +0200, Ludovic Courtès wrote: > Hi, > > "pelzflorian (Florian Pelz)" skribis: > > > On Sun, Apr 25, 2021 at 11:41:59PM +0200, Ludovic Courtès wrote: > > 65;6003;1c> I’ve verified that keymap choices in the installer are honored, that you > >> can change anytime via the F1 menu, and that there’s no file descriptor > >> leak in the kmscon process. > > > > Keyboard layout selection completely broke for me, I will check again > > later if the mistake is on my part. > > How did you test? > > I made the initial choice in the early menu and later modified it by > pressing F1 and “Change keyboard layout”. > > Ludo’. I selected the layout to be Amharic (or anything else, even QWERTZ Deutsch/German) both directly and via F1. Keyboard layout of the same image (guix git master, with updated guix package) works on QEMU and fails on real hardware where an old image worked. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 06:38:34 2021 Received: (at 39341-done) by debbugs.gnu.org; 27 Apr 2021 10:38:34 +0000 Received: from localhost ([127.0.0.1]:48140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbL6w-0005y6-F2 for submit@debbugs.gnu.org; Tue, 27 Apr 2021 06:38:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbL6u-0005xu-Un for 39341-done@debbugs.gnu.org; Tue, 27 Apr 2021 06:38:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47410) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbL6p-0003Oi-8L; Tue, 27 Apr 2021 06:38:27 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36316 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lbL6o-0004ID-0r; Tue, 27 Apr 2021 06:38:26 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 27 Apr 2021 12:38:23 +0200 In-Reply-To: <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Mon, 26 Apr 2021 18:14:59 +0200") Message-ID: <878s546mhs.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, "pelzflorian (Florian Pelz)" skribis: > On Mon, Apr 26, 2021 at 06:07:33PM +0200, Ludovic Court=C3=A8s wrote: >> Hi, >>=20 >> "pelzflorian (Florian Pelz)" skribis: >>=20 >> > On Sun, Apr 25, 2021 at 11:41:59PM +0200, Ludovic Court=C3=A8s wrote: >> > 65;6003;1c> I=E2=80=99ve verified that keymap choices in the installer= are honored, that you >> >> can change anytime via the F1 menu, and that there=E2=80=99s no file = descriptor >> >> leak in the kmscon process. >> > >> > Keyboard layout selection completely broke for me, I will check again >> > later if the mistake is on my part. >>=20 >> How did you test? >>=20 >> I made the initial choice in the early menu and later modified it by >> pressing F1 and =E2=80=9CChange keyboard layout=E2=80=9D. >>=20 >> Ludo=E2=80=99. > > I selected the layout to be Amharic (or anything else, even QWERTZ > Deutsch/German) both directly and via F1. Keyboard layout of the same > image (guix git master, with updated guix package) works on QEMU and > fails on real hardware where an old image worked. What do you mean by =E2=80=9Cfails on real hardware=E2=80=9D? That the key= board layout is unchanged? Is there anything in /var/log/messages or wherever kmscon writes its logs? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 08:32:20 2021 Received: (at 39341-done) by debbugs.gnu.org; 27 Apr 2021 12:32:21 +0000 Received: from localhost ([127.0.0.1]:48232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbMt2-0002SA-GX for submit@debbugs.gnu.org; Tue, 27 Apr 2021 08:32:20 -0400 Received: from pelzflorian.de ([5.45.111.108]:60086 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbMt0-0002S1-1W for 39341-done@debbugs.gnu.org; Tue, 27 Apr 2021 08:32:19 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id C420236063C; Tue, 27 Apr 2021 14:32:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1619526736; bh=8FyKrZRAmFRzgGNPKeIHDJ/d4ksIj0qJuaLfBOrhP9Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=iTl0Wl/8V8B4AIDM/YnPu80QtE92RGvRCRPV737PhltsNiBZrv+r4c1UWZYMVafuu +5PFuNxIEUa3txW0sl2AcMPnVJESgf/GME2jsQgmcUufpZSmmJvo2p2xEgmpQCd6sh DXBMZPQ98nqaG5sW/PqA/KblkDym7laKBOh6hHE8= Date: Tue, 27 Apr 2021 14:32:09 +0200 From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878s546mhs.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Apr 27, 2021 at 12:38:23PM +0200, Ludovic Courtès wrote: > What do you mean by “fails on real hardware”? That the keyboard layout > is unchanged? Yes. > Is there anything in /var/log/messages No, nothing out of the ordinary, only the installer pages I went through. > or wherever kmscon > writes its logs? I try with diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 24b3ea785b..0eff24828c 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -2330,6 +2330,7 @@ This service is not part of @var{%base-services}." (define kmscon-command #~(list + #$(file-append strace "/bin/strace") "-o" "/var/log/kmscon-out" "-f" #$(file-append kmscon "/bin/kmscon") "--login" "--vt" #$virtual-terminal "--no-switchvt" ;Prevent a switch to the virtual terminal. I do cat /var/log/kmscon-out | grep keymap-update I see 231 unlink("/tmp/kmscon-231-keymap-update") = -1 ENOENT (No such file or directory) 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 17 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 20 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 23 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 259 stat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 259 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 19 259 lstat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 18 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 21 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 24 Now I checked again; after going back to the installer via Ctrl-Alt-F1, I can actually type Amharic. Maybe it just took a long time? But it does not change back to English. I have more lines in kmscon-out by now 231 unlink("/tmp/kmscon-231-keymap-update") = -1 ENOENT (No such file or directory) 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 17 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 20 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 23 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 259 stat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 259 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 19 259 lstat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 18 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 21 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 24 259 stat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 259 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 19 259 lstat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 24 It has still not gone back to English layout (except when I press Alt+Shift). Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 13:44:10 2021 Received: (at 39341-done) by debbugs.gnu.org; 27 Apr 2021 17:44:10 +0000 Received: from localhost ([127.0.0.1]:50835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbRko-00036v-6t for submit@debbugs.gnu.org; Tue, 27 Apr 2021 13:44:10 -0400 Received: from imta-37.everyone.net ([216.200.145.37]:34068 helo=imta-38.everyone.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbRkm-00036n-8i for 39341-done@debbugs.gnu.org; Tue, 27 Apr 2021 13:44:09 -0400 Received: from pps.filterd (omta004.sj2.proofpoint.com [127.0.0.1]) by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 13RHdc3w027393; Tue, 27 Apr 2021 10:44:07 -0700 X-Eon-Originating-Account: -jCIR0i0Li7fmYgPxqGhaWEeTybDJQ-jDboECXYlVpc X-Eon-Dm: m0116787.ppops.net Received: by m0116787.mta.everyone.net (EON-AUTHRELAY2 - 5a81c4fb) id m0116787.6062203d.2c6bef; Tue, 27 Apr 2021 10:44:05 -0700 X-Eon-Sig: AQMHrIJgiE1ltJztOgIAAAAF,c22b0d223725001ec4a37e177e7746ee X-Eip: 9u2AYjUE-4-2i6xf8CNGqSpM6K-pV_enaHhbK372WvU Date: Tue, 27 Apr 2021 19:43:56 +0200 From: Bengt Richter To: "pelzflorian (Florian Pelz)" Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210427174356.GA5653@LionPure> References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-GUID: 2iht92KktXIeknZmmALDmy0WBvhGfEAf X-Proofpoint-ORIG-GUID: 2iht92KktXIeknZmmALDmy0WBvhGfEAf X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-27_10:2021-04-27, 2021-04-27 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 adultscore=0 malwarescore=0 impostorscore=0 phishscore=0 suspectscore=0 clxscore=1034 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104270120 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8s?= , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bengt Richter Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Hi Florian, On +2021-04-27 14:32:09 +0200, pelzflorian (Florian Pelz) wrote: > On Tue, Apr 27, 2021 at 12:38:23PM +0200, Ludovic Courtès wrote: > > What do you mean by “fails on real hardware”? That the keyboard layout > > is unchanged? > > Yes. > > > > Is there anything in /var/log/messages > > No, nothing out of the ordinary, only the installer pages I went > through. > > > or wherever kmscon > > writes its logs? > > I try with > > diff --git a/gnu/services/base.scm b/gnu/services/base.scm > index 24b3ea785b..0eff24828c 100644 > --- a/gnu/services/base.scm > +++ b/gnu/services/base.scm > @@ -2330,6 +2330,7 @@ This service is not part of @var{%base-services}." > > (define kmscon-command > #~(list > + #$(file-append strace "/bin/strace") "-o" "/var/log/kmscon-out" "-f" > #$(file-append kmscon "/bin/kmscon") "--login" > "--vt" #$virtual-terminal > "--no-switchvt" ;Prevent a switch to the virtual terminal. > > I do > > cat /var/log/kmscon-out | grep keymap-update > > I see > > 231 unlink("/tmp/kmscon-231-keymap-update") = -1 ENOENT (No such file or directory) > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 17 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 20 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 23 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 > 259 stat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 > 259 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 19 > 259 lstat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 18 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 21 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 24 > > > Now I checked again; after going back to the installer via > Ctrl-Alt-F1, I can actually type Amharic. Maybe it just took a long > time? But it does not change back to English. > > I have more lines in kmscon-out by now > > 231 unlink("/tmp/kmscon-231-keymap-update") = -1 ENOENT (No such file or directory) > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 17 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 20 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 23 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 > 259 stat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 > 259 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 19 > 259 lstat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 18 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 21 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 24 > 259 stat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 > 259 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 19 > 259 lstat("/tmp/kmscon-231-keymap-update", {st_mode=S_IFIFO|0700, st_size=0, ...}) = 0 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 24 > > It has still not gone back to English layout (except when I press > Alt+Shift). > > Regards, > Florian > > > Perhaps this old bug in some form? https://bugzilla.gnome.org/show_bug.cgi?id=776570 and solution linked from there might help? http://unix.stackexchange.com/questions/333368 -- Regards, Bengt Richter From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 15:58:39 2021 Received: (at 39341-done) by debbugs.gnu.org; 27 Apr 2021 19:58:39 +0000 Received: from localhost ([127.0.0.1]:50981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbTqw-0006Oq-PM for submit@debbugs.gnu.org; Tue, 27 Apr 2021 15:58:38 -0400 Received: from pelzflorian.de ([5.45.111.108]:60522 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbTqt-0006Oh-JH for 39341-done@debbugs.gnu.org; Tue, 27 Apr 2021 15:58:37 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 28B2136063C; Tue, 27 Apr 2021 21:58:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1619553514; bh=wmmFGig11rZjVeW/T67JyVDyw9VC+optL3iioPl0Xjk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=cbbIIqNhhNkuW5MZlTCRCQmrDPPLClB4rigP48HFhNIQvee6s2Oo/QtwWTAApxKwb MiyVHPRARSkRiSVqy4OKubBMDL0lhB0XFcOZynil2amIr7PPFI6FsZvlTv56UgFi4T KVVFZD2NaHUla/z2t2fu7ENZHizqYDJoRLeYcoa4= Date: Tue, 27 Apr 2021 21:58:25 +0200 From: "pelzflorian (Florian Pelz)" To: Bengt Richter Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210427195825.vjp26nofm3yemf5p@pelzflorian.localdomain> References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <20210427174356.GA5653@LionPure> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210427174356.GA5653@LionPure> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8s?= , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Bengt, On Tue, Apr 27, 2021 at 07:43:56PM +0200, Bengt Richter wrote: > Perhaps this old bug in some form? > https://bugzilla.gnome.org/show_bug.cgi?id=776570 > and solution linked from there might help? > http://unix.stackexchange.com/questions/333368 No, I believe it is unrelated to the old bug when I changed kmscon, since - this affects the layout switch at the start of the installer or when pressing F1 (Alt+Shift is unrelated, I should not have mentioned it), - reverting Ludo’s fix d904abe0768 to the original bug makes layout selection work again (but causes the original bug 100% CPU usage) - German keyboard layout is affected too, even though it does not use Alt+Shift toggleing, and - apparently even with Ludo’s d904abe0768 the layout switch from the start of the installer can still be triggered somehow, since keyboard layout eventually switched to Amharic, but I don’t know how I triggered it last time. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 17:27:08 2021 Received: (at 39341-done) by debbugs.gnu.org; 27 Apr 2021 21:27:08 +0000 Received: from localhost ([127.0.0.1]:51072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbVEZ-0008Vj-QJ for submit@debbugs.gnu.org; Tue, 27 Apr 2021 17:27:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbVEW-0008VC-Dl for 39341-done@debbugs.gnu.org; Tue, 27 Apr 2021 17:27:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59736) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbVER-0003KM-4b; Tue, 27 Apr 2021 17:26:59 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58218 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lbVEB-0001zQ-AX; Tue, 27 Apr 2021 17:26:47 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 27 Apr 2021 23:26:41 +0200 In-Reply-To: <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Tue, 27 Apr 2021 14:32:09 +0200") Message-ID: <8735vbwh9q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, "pelzflorian (Florian Pelz)" skribis: > On Tue, Apr 27, 2021 at 12:38:23PM +0200, Ludovic Court=C3=A8s wrote: >> What do you mean by =E2=80=9Cfails on real hardware=E2=80=9D? That the = keyboard layout >> is unchanged? > > Yes. > > >> Is there anything in /var/log/messages > > No, nothing out of the ordinary, only the installer pages I went > through. > >> or wherever kmscon >> writes its logs? > > I try with > > diff --git a/gnu/services/base.scm b/gnu/services/base.scm > index 24b3ea785b..0eff24828c 100644 > --- a/gnu/services/base.scm > +++ b/gnu/services/base.scm > @@ -2330,6 +2330,7 @@ This service is not part of @var{%base-services}." >=20=20 > (define kmscon-command > #~(list > + #$(file-append strace "/bin/strace") "-o" "/var/log/kmscon-o= ut" "-f" > #$(file-append kmscon "/bin/kmscon") "--login" > "--vt" #$virtual-terminal > "--no-switchvt" ;Prevent a switch to the virtual terminal. I tried this in =E2=80=98guix system vm gnu/system/install.scm=E2=80=99. I= proceed like so: 1. after the installer=E2=80=99s welcome screen I choose French layout; 2. the next dialog is the host name, which is where I confirm I really got French layout; 3. from there I press F1, choose German layout, confirm by typing into the host name dialog that I got German layout; 4. I repeat step #3 with a variety of layouts. Changing layouts there just works and is instantaneous. (Note that this only changes the layout of kmscon, so tty3 & co. are unaffected.) The strace log shows this when changing layouts (FD 17 corresponds to /tmp/kmscon-165-keymap-update, the FIFO node): --8<---------------cut here---------------start------------->8--- 165 epoll_wait(3, [{EPOLLIN, {u32=3D17731792, u64=3D17731792}}, {EPOLLIN|= EPOLLHUP, {u32=3D18285248, u64=3D18285248}}, {EPOLLIN, {u32=3D17639536, u64= =3D17639536}}], 32, -1) =3D 3 165 epoll_wait(12, [{EPOLLIN, {u32=3D17678528, u64=3D17678528}}], 32, 0) = =3D 1 165 read(20, "\33[5;22H\33[44m\33[K\33[6;22H\33[K\33[7;22H"..., 16384) = =3D 1657 165 read(20, 0x10f6c28, 16384) =3D -1 EAGAIN (Resource temporarily= unavailable) 165 read(17, "p", 1) =3D 1 165 read(17, "c", 1) =3D 1 165 read(17, "1", 1) =3D 1 165 read(17, "0", 1) =3D 1 165 read(17, "5", 1) =3D 1 165 read(17, "\0", 1) =3D 1 165 read(17, "f", 1) =3D 1 165 read(17, "r", 1) =3D 1 165 read(17, "\0", 1) =3D 1 165 read(17, "\0", 1) =3D 1 165 read(17, "\0", 1) =3D 1 165 read(17, "", 1) =3D 0 165 stat("/gnu/store/m734r6j7g74x9k74sgjb8835pg7dnqbk-libxkbcommon-1.0.3/= etc/xkb", 0x7fff179314b0) =3D -1 ENOENT (No such file or directory) 165 stat("/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.= 31/share/X11/xkb", {st_mode=3DS_IFDIR|0555, st_size=3D4096, ...}) =3D 0 [...] 165 openat(AT_FDCWD, "/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboa= rd-config-2.31/share/X11/xkb/symbols/inet", O_RDONLY) =3D 22 165 fstat(22, {st_mode=3DS_IFREG|0444, st_size=3D64040, ...}) =3D 0 165 mmap(NULL, 64040, PROT_READ, MAP_SHARED, 22, 0) =3D 0x7f50d23b5000 165 brk(0x12bb000) =3D 0x12bb000 165 munmap(0x7f50d23b5000, 64040) =3D 0 165 close(22) =3D 0 165 epoll_ctl(3, EPOLL_CTL_DEL, 17, NULL) =3D 0 165 close(17) =3D 0 165 getpid() =3D 165 165 unlink("/tmp/kmscon-165-keymap-update") =3D 0 165 mknod("/tmp/kmscon-165-keymap-update", S_IFIFO|0700) =3D 0 165 openat(AT_FDCWD, "/tmp/kmscon-165-keymap-update", O_RDONLY|O_NONBLOCK= ) =3D 17 165 epoll_ctl(3, EPOLL_CTL_ADD, 17, {EPOLLIN, {u32=3D19410896, u64=3D1941= 0896}}) =3D 0 --8<---------------cut here---------------end--------------->8--- The last lines show that we delete the FIFO from the poll set, close the FIFO, recreate it, and re-add it to the poll set. So for me it works exactly as intended. Do you have a scenario I could follow to try to reproduce the problem? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 28 03:02:23 2021 Received: (at 39341-done) by debbugs.gnu.org; 28 Apr 2021 07:02:23 +0000 Received: from localhost ([127.0.0.1]:51588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbeDG-0006F0-Qf for submit@debbugs.gnu.org; Wed, 28 Apr 2021 03:02:23 -0400 Received: from pelzflorian.de ([5.45.111.108]:32870 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbeDE-0006Er-Cg for 39341-done@debbugs.gnu.org; Wed, 28 Apr 2021 03:02:21 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id D826636063C; Wed, 28 Apr 2021 09:02:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1619593339; bh=t/54SDMZblH2Vjw99TB07kPCphgnXv566vATtmLZWeg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=t63QpiVNg6sx4q7Uy2AqcOR7lUVb6q/I9JW1VAnpLCP6V7k6vRKukarHzIAMqRh46 3C6fLOup0Ep7IYolZ3EVf06k2y/uCM1p9jsCY4ZYRg3FLngG6eWGKzFX3u+tqjedCH fqVqvnuSA7wGWuCOv5KNqtQ5AiWLARoPc8Sgzj50= Date: Wed, 28 Apr 2021 09:02:10 +0200 From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8735vbwh9q.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, On Tue, Apr 27, 2021 at 11:26:41PM +0200, Ludovic Courtès wrote: > I tried this in ‘guix system vm gnu/system/install.scm’. I proceed like > so: > > 1. after the installer’s welcome screen I choose French layout; > 2. the next dialog is the host name, which is where I confirm I really > got French layout; At the host name dialog, I still have QWERTY layout, on both my Beebox and my Macbook. I can however switch in QEMU on the same Macbook. Oh and I just noticed now; the same USB drive does switch layouts on my fastest machine. All are UEFI. > 3. from there I press F1, choose German layout, confirm by typing into > the host name dialog that I got German layout; No effect, I still got QWERTY layout. > 4. I repeat step #3 with a variety of layouts. Same. > Changing layouts there just works and is instantaneous. (Note that this > only changes the layout of kmscon, so tty3 & co. are unaffected.) > > The strace log shows this when changing layouts (FD 17 corresponds to > /tmp/kmscon-165-keymap-update, the FIFO node): > > --8<---------------cut here---------------start------------->8--- > 165 epoll_wait(3, [{EPOLLIN, {u32=17731792, u64=17731792}}, {EPOLLIN|EPOLLHUP, {u32=18285248, u64=18285248}}, {EPOLLIN, {u32=17639536, u64=17639536}}], 32, -1) = 3 > 165 epoll_wait(12, [{EPOLLIN, {u32=17678528, u64=17678528}}], 32, 0) = 1 > 165 read(20, "\33[5;22H\33[44m\33[K\33[6;22H\33[K\33[7;22H"..., 16384) = 1657 > 165 read(20, 0x10f6c28, 16384) = -1 EAGAIN (Resource temporarily unavailable) > 165 read(17, "p", 1) = 1 > 165 read(17, "c", 1) = 1 > 165 read(17, "1", 1) = 1 > 165 read(17, "0", 1) = 1 > 165 read(17, "5", 1) = 1 > 165 read(17, "\0", 1) = 1 > 165 read(17, "f", 1) = 1 > 165 read(17, "r", 1) = 1 > 165 read(17, "\0", 1) = 1 > 165 read(17, "\0", 1) = 1 > 165 read(17, "\0", 1) = 1 > 165 read(17, "", 1) = 0 > 165 stat("/gnu/store/m734r6j7g74x9k74sgjb8835pg7dnqbk-libxkbcommon-1.0.3/etc/xkb", 0x7fff179314b0) = -1 ENOENT (No such file or directory) > 165 stat("/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.31/share/X11/xkb", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0 Yes i do have this output too: 231 epoll_wait(3, [{EPOLLIN, {u32=8232720, u64=8232720}}, {EPOLLIN|EPOLLHUP, {u32=8124896, u64=8124896}}], 32, -1) = 2 231 epoll_wait(12, [{EPOLLIN, {u32=8182976, u64=8182976}}], 32, 0) = 1 231 read(29, "\33[5;67H\33[44m\33[K\33[6;67H\33[K\33[7;67H"..., 16384) = 1833 231 read(29, 0x7fc4f8, 16384) = -1 EAGAIN (Resource temporarily unavailable) 231 read(26, "p", 1) = 1 231 read(26, "c", 1) = 1 231 read(26, "1", 1) = 1 231 read(26, "0", 1) = 1 231 read(26, "5", 1) = 1 231 read(26, "\0", 1) = 1 231 read(26, "f", 1) = 1 231 read(26, "r", 1) = 1 231 read(26, "\0", 1) = 1 231 read(26, "\0", 1) = 1 231 read(26, "\0", 1) = 1 231 read(26, "", 1) = 0 231 stat("/gnu/store/m734r6j7g74x9k74sgjb8835pg7dnqbk-libxkbcommon-1.0.3/etc/xkb", 0x7fff282d66b0) = -1 ENOENT (No such file or directory) 231 stat("/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.31/share/X11/xkb", {st_mode=S_IFDIR|0555, st_size=2048, ...}) = 0 231 stat("/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.31/share/X11/xkb", {st_mode=S_IFDIR|0555, st_size=2048, ...}) = 0 > > [...] > > 165 openat(AT_FDCWD, "/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.31/share/X11/xkb/symbols/inet", O_RDONLY) = 22 > 165 fstat(22, {st_mode=S_IFREG|0444, st_size=64040, ...}) = 0 > 165 mmap(NULL, 64040, PROT_READ, MAP_SHARED, 22, 0) = 0x7f50d23b5000 > 165 brk(0x12bb000) = 0x12bb000 > 165 munmap(0x7f50d23b5000, 64040) = 0 > 165 close(22) = 0 > 165 epoll_ctl(3, EPOLL_CTL_DEL, 17, NULL) = 0 > 165 close(17) = 0 > 165 getpid() = 165 > 165 unlink("/tmp/kmscon-165-keymap-update") = 0 > 165 mknod("/tmp/kmscon-165-keymap-update", S_IFIFO|0700) = 0 > 165 openat(AT_FDCWD, "/tmp/kmscon-165-keymap-update", O_RDONLY|O_NONBLOCK) = 17 > 165 epoll_ctl(3, EPOLL_CTL_ADD, 17, {EPOLLIN, {u32=19410896, u64=19410896}}) = 0 > --8<---------------cut here---------------end--------------->8--- > > The last lines show that we delete the FIFO from the poll set, close the > FIFO, recreate it, and re-add it to the poll set. I got: 231 openat(AT_FDCWD, "/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.31/share/X11/xkb/symbols/inet", O_RDONLY) = 31 231 fstat(31, {st_mode=S_IFREG|0444, st_size=64040, ...}) = 0 231 mmap(NULL, 64040, PROT_READ, MAP_SHARED, 31, 0) = 0x7f1b1f5c7000 231 munmap(0x7f1b1f5c7000, 64040) = 0 231 close(31) = 0 231 epoll_ctl(3, EPOLL_CTL_DEL, 26, NULL) = 0 231 close(26) = 0 231 getpid() = 231 231 unlink("/tmp/kmscon-231-keymap-update") = 0 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 231 epoll_ctl(3, EPOLL_CTL_ADD, 26, {EPOLLIN, {u32=9609568, u64=9609568}}) = 0 231 epoll_wait(3, [{EPOLLIN, {u32=8123856, u64=8123856}}], 32, -1) = 1 231 read(14, "\2\0\0\0 \0\0\0000\373{\0\0\0\0\0\326\0\0\0^\335\t\0\347,\0\0]\0\0\0", 1024) = 32 231 ioctl(14, DRM_IOCTL_MODE_PAGE_FLIP, 0x7fff282d6b50) = 0 Slightly different. This is the next occurrence after the pci05\0fr. My layout is still QWERTY after waiting for some time; I do not know how the layout switch was eventually triggered after a while last time. > > So for me it works exactly as intended. > > Do you have a scenario I could follow to try to reproduce the problem? > > Thanks, > Ludo’. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 28 03:06:28 2021 Received: (at 39341-done) by debbugs.gnu.org; 28 Apr 2021 07:06:28 +0000 Received: from localhost ([127.0.0.1]:51595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbeHE-0006L3-J2 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 03:06:28 -0400 Received: from pelzflorian.de ([5.45.111.108]:32882 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbeHD-0006Kw-Pz for 39341-done@debbugs.gnu.org; Wed, 28 Apr 2021 03:06:28 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 0026436063C; Wed, 28 Apr 2021 09:06:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1619593587; bh=2Q00pBtvZT1oqDCKXiCd2EodCvZxcwvQLjQjFcZIL38=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Tnq/6XM8j+UhGouMgVAEntP5tm1uA0iIncyD+NyIA52vcLmHnNnJ8cRfHkOghsZdp VhLwIXbb196lCU9h7Uwd8BgwcfA7H/IvBRFOV3B7eXr77KkBm1zYQrUmbVsxKBOqWA IZfvM/W3wGG2gD0OQutPoOFMRrm5pjx86iLcTZJo= Date: Wed, 28 Apr 2021 09:06:19 +0200 From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210428070619.myzkbfywyjj7i2ld@pelzflorian.localdomain> References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, Apr 28, 2021 at 09:02:10AM +0200, pelzflorian (Florian Pelz) wrote: > On Tue, Apr 27, 2021 at 11:26:41PM +0200, Ludovic Courts wrote: > > 165 openat(AT_FDCWD, "/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.31/share/X11/xkb/symbols/inet", O_RDONLY) = 22 > > 165 fstat(22, {st_mode=S_IFREG|0444, st_size=64040, ...}) = 0 > > 165 mmap(NULL, 64040, PROT_READ, MAP_SHARED, 22, 0) = 0x7f50d23b5000 > > 165 brk(0x12bb000) = 0x12bb000 > > 165 munmap(0x7f50d23b5000, 64040) = 0 > > 165 close(22) = 0 > > 165 epoll_ctl(3, EPOLL_CTL_DEL, 17, NULL) = 0 > > 165 close(17) = 0 > > 165 getpid() = 165 > > 165 unlink("/tmp/kmscon-165-keymap-update") = 0 > > 165 mknod("/tmp/kmscon-165-keymap-update", S_IFIFO|0700) = 0 > > 165 openat(AT_FDCWD, "/tmp/kmscon-165-keymap-update", O_RDONLY|O_NONBLOCK) = 17 > > 165 epoll_ctl(3, EPOLL_CTL_ADD, 17, {EPOLLIN, {u32=19410896, u64=19410896}}) = 0 > > --8<---------------cut here---------------end--------------->8--- > > > > The last lines show that we delete the FIFO from the poll set, close the > > FIFO, recreate it, and re-add it to the poll set. > > I got: > > 231 openat(AT_FDCWD, "/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.31/share/X11/xkb/symbols/inet", O_RDONLY) = 31 > 231 fstat(31, {st_mode=S_IFREG|0444, st_size=64040, ...}) = 0 > 231 mmap(NULL, 64040, PROT_READ, MAP_SHARED, 31, 0) = 0x7f1b1f5c7000 > 231 munmap(0x7f1b1f5c7000, 64040) = 0 > 231 close(31) = 0 > 231 epoll_ctl(3, EPOLL_CTL_DEL, 26, NULL) = 0 > 231 close(26) = 0 > 231 getpid() = 231 > 231 unlink("/tmp/kmscon-231-keymap-update") = 0 > 231 mknod("/tmp/kmscon-231-keymap-update", S_IFIFO|0700) = 0 > 231 openat(AT_FDCWD, "/tmp/kmscon-231-keymap-update", O_RDONLY|O_NONBLOCK) = 26 > 231 epoll_ctl(3, EPOLL_CTL_ADD, 26, {EPOLLIN, {u32=9609568, u64=9609568}}) = 0 > 231 epoll_wait(3, [{EPOLLIN, {u32=8123856, u64=8123856}}], 32, -1) = 1 > 231 read(14, "\2\0\0\0 \0\0\0000\373{\0\0\0\0\0\326\0\0\0^\335\t\0\347,\0\0]\0\0\0", 1024) = 32 > 231 ioctl(14, DRM_IOCTL_MODE_PAGE_FLIP, 0x7fff282d6b50) = 0 > > Slightly different. This is the next occurrence after the pci05\0fr. The brk does happen, just later, if it is important. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 28 09:43:19 2021 Received: (at 39341-done) by debbugs.gnu.org; 28 Apr 2021 13:43:19 +0000 Received: from localhost ([127.0.0.1]:52184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbkTH-0008Jf-3A for submit@debbugs.gnu.org; Wed, 28 Apr 2021 09:43:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbkTD-0008JR-UQ for 39341-done@debbugs.gnu.org; Wed, 28 Apr 2021 09:43:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43839) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbkT8-0008O4-1p; Wed, 28 Apr 2021 09:43:10 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59764 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lbkT7-0004uE-5y; Wed, 28 Apr 2021 09:43:09 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 28 Apr 2021 15:43:06 +0200 In-Reply-To: <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Wed, 28 Apr 2021 09:02:10 +0200") Message-ID: <87sg3asexh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, "pelzflorian (Florian Pelz)" skribis: > On Tue, Apr 27, 2021 at 11:26:41PM +0200, Ludovic Court=C3=A8s wrote: >> I tried this in =E2=80=98guix system vm gnu/system/install.scm=E2=80=99.= I proceed like >> so: >>=20 >> 1. after the installer=E2=80=99s welcome screen I choose French layout; >> 2. the next dialog is the host name, which is where I confirm I really >> got French layout; > > At the host name dialog, I still have QWERTY layout, on both my Beebox > and my Macbook. I can however switch in QEMU on the same Macbook. Oh > and I just noticed now; the same USB drive does switch layouts on my > fastest machine. All are UEFI. > >> 3. from there I press F1, choose German layout, confirm by typing into >> the host name dialog that I got German layout; > > No effect, I still got QWERTY layout. > >> 4. I repeat step #3 with a variety of layouts. > > Same. [...] > My layout is still QWERTY after waiting for some time; I do not know > how the layout switch was eventually triggered after a while last time. Hmm I don=E2=80=99t know what to think. Could you confirm that keyboard switching works if you revert d904abe0768293b2322dbf355b6e41d94e769d78? To anyone reading this: could you please give it a try and report back? You can run the image in a VM from current master: ./pre-inst-env guix system vm gnu/system/install.scm or better yet, build the ISO, copy it to USB, and boot it on bare metal: ./pre-inst-env guix system image -t iso9660 gnu/system/install.scm Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 28 11:21:10 2021 Received: (at 39341-done) by debbugs.gnu.org; 28 Apr 2021 15:21:10 +0000 Received: from localhost ([127.0.0.1]:53807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lblzy-0000YD-Ej for submit@debbugs.gnu.org; Wed, 28 Apr 2021 11:21:10 -0400 Received: from pelzflorian.de ([5.45.111.108]:33310 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lblzu-0000Y1-5q for 39341-done@debbugs.gnu.org; Wed, 28 Apr 2021 11:21:09 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 6488236063D; Wed, 28 Apr 2021 17:21:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1619623264; bh=3KwKCq+ERvPy7gWuMoymQL2iMz49OECqutfrXRb4nEw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ZdxYUMc/GC3+m/7hJDGQ4DDDzVLiOKcm8amIOIIoxJsCytn30QrEvM0mPtDzrZPsb So8dc8zSXt82bGHgySFqoS6+d4kK/3P+oKS1bdUSM9sHJYtFerkWxCZjGyjl96PsGJ 9xLoTNSaCr6PmEBFhpBOzqsDUk6XGBJcWvHedcf8= Date: Wed, 28 Apr 2021 17:20:57 +0200 From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210428152034.xuod5s5e43z7gfia@pelzflorian.localdomain> References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> <87sg3asexh.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87sg3asexh.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, Apr 28, 2021 at 03:43:06PM +0200, Ludovic Courtès wrote: > Hmm I don’t know what to think. Could you confirm that keyboard > switching works if you revert d904abe0768293b2322dbf355b6e41d94e769d78? Yes, revert fixes it but goes back to 100% CPU usage. Note that layout switching works on QEMU for me and bare-metal only fails on some of my machines. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 28 11:22:48 2021 Received: (at 39341-done) by debbugs.gnu.org; 28 Apr 2021 15:22:48 +0000 Received: from localhost ([127.0.0.1]:53815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbm1Y-0000an-0T for submit@debbugs.gnu.org; Wed, 28 Apr 2021 11:22:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbm1V-0000aZ-EJ for 39341-done@debbugs.gnu.org; Wed, 28 Apr 2021 11:22:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45525) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbm1O-0003Rw-Oa; Wed, 28 Apr 2021 11:22:40 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59922 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lbm1M-0001FU-Fr; Wed, 28 Apr 2021 11:22:38 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 28 Apr 2021 17:22:34 +0200 In-Reply-To: <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Wed, 28 Apr 2021 09:02:10 +0200") Message-ID: <87im46sabp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341-done Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "pelzflorian (Florian Pelz)" skribis: > My layout is still QWERTY after waiting for some time; I do not know > how the layout switch was eventually triggered after a while last time. I reproduced the bug on the bare metal. I noticed in /proc/PID/fd/ a couple of leaked /tmp/kmscon-PID-keymap-update file descriptors with =E2=80=9C(deleted)=E2=80=9D (17 and 20), but repeating F1 =E2=86=92 =E2=80= =9CChange keyboard layout=E2=80=9D doesn=E2=80=99t leak additional FDs. I don=E2=80=99t see which code path l= eads to this. To be continued=E2=80=A6 Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 29 05:33:34 2021 Received: (at 39341) by debbugs.gnu.org; 29 Apr 2021 09:33:34 +0000 Received: from localhost ([127.0.0.1]:54841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc338-0006gs-GH for submit@debbugs.gnu.org; Thu, 29 Apr 2021 05:33:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc331-0006gA-AS; Thu, 29 Apr 2021 05:33:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39037) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lc32v-0003x6-0e; Thu, 29 Apr 2021 05:33:21 -0400 Received: from [2a01:e0a:19b:d9a0:9576:8bbf:4795:82ee] (port=37274 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lc32t-0005h1-BO; Thu, 29 Apr 2021 05:33:20 -0400 From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> <87sg3asexh.fsf@gnu.org> Date: Thu, 29 Apr 2021 11:33:17 +0200 In-Reply-To: <87sg3asexh.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 28 Apr 2021 15:43:06 +0200") Message-ID: <8735v91llu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341 Cc: 39341@debbugs.gnu.org, 39341-done@debbugs.gnu.org, "pelzflorian \(Florian Pelz\)" , Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Hey Ludo, Your recent patch is just revealing an issue we always had with this Kmscon patch. Basically, without the "unlink" called you introduced, the FIFO fd was added only to the first discovered input and the keyboard layout was only applied to that very input. Conveniently, that input was always the main user keyboard I guess. The attached patch fixes that issue by registering the FIFO on the first input, but applying the keyboard layout to all the inputs. Thanks, Mathieu --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-kmscon-Fix-layout-setup.patch >From 1a0fddd844ced62c802db0d6d133af45880435f0 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Thu, 29 Apr 2021 11:11:32 +0200 Subject: [PATCH] gnu: kmscon: Fix layout setup. Kmscon may discover multiple inputs, corresponding to multiple devices. This means that the uxkb_dev_keymap_update function may be called multiple times, and the FIFO is registered on each input poll loop. When a new layout is written on the FIFO by the installer, the first input picking up the message, will apply the new layout. However, that input may not be the input that the user is currently using. To fix it, register the FIFO on the first input poll loop, but apply the new layout on all the inputs in the uxkb_keymap_update_handler function. * gnu/packages/patches/kmscon-runtime-keymap-switch.patch (uxkb_keymap_update_handler): Apply the new layout to all the inputs. (uxkb_dev_keymap_update): Register the FIFO fd only on the first input poll loop. --- .../kmscon-runtime-keymap-switch.patch | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/gnu/packages/patches/kmscon-runtime-keymap-switch.patch b/gnu/packages/patches/kmscon-runtime-keymap-switch.patch index 480aaecad2..abff9c460d 100644 --- a/gnu/packages/patches/kmscon-runtime-keymap-switch.patch +++ b/gnu/packages/patches/kmscon-runtime-keymap-switch.patch @@ -132,7 +132,7 @@ index 925c755..8fe08f8 100644 #include #include "shl_hook.h" #include "shl_llog.h" -@@ -178,6 +181,95 @@ static void timer_event(struct ev_timer *timer, uint64_t num, void *data) +@@ -178,6 +181,110 @@ static void timer_event(struct ev_timer *timer, uint64_t num, void *data) shl_hook_call(dev->input->hook, dev->input, &dev->repeat_event); } @@ -171,7 +171,23 @@ index 925c755..8fe08f8 100644 + + llog_info(dev->input, "HANDLER CALLED %s|%s|%s\n", + model, layout, variant); -+ uxkb_desc_init(dev->input, model, layout, variant, options, NULL); ++ ++ struct uterm_input *input = dev->input; ++ struct shl_dlist *iter; ++ ++ /* Apply the new layout to all the inputs. */ ++ shl_dlist_for_each(iter, &input->devices) { ++ struct uterm_input_dev *dev; ++ dev = shl_dlist_entry(iter, ++ struct uterm_input_dev, ++ list); ++ uxkb_desc_init(dev->input, model, layout, variant, options, NULL); ++ dev->state = xkb_state_new(dev->input->keymap); ++ if (!dev->state) { ++ llog_error(dev->input, "cannot create XKB state"); ++ return; ++ } ++ } + + /* The client will now close the FIFO. Close it too, and re-create a + * FIFO so other clients can eventually connect. */ @@ -180,11 +196,6 @@ index 925c755..8fe08f8 100644 + dev->rupdate_fd = -1; + uxkb_dev_keymap_update(dev); + -+ dev->state = xkb_state_new(dev->input->keymap); -+ if (!dev->state) { -+ llog_error(dev->input, "cannot create XKB state"); -+ return; -+ } +} + +int uxkb_dev_keymap_update(struct uterm_input_dev *dev) @@ -193,6 +204,10 @@ index 925c755..8fe08f8 100644 + char *file; + int pid = getpid(); + ++ /* Add the FIFO fd only to the first input poll loop. */ ++ if (dev->rupdate_fd > 0) ++ return 0; ++ + ret = asprintf(&file, INPUT_KEYMAP_UPDATE_FILE, pid); + if (ret < 0) + return ret; -- 2.31.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 29 05:59:24 2021 Received: (at 39341) by debbugs.gnu.org; 29 Apr 2021 09:59:24 +0000 Received: from localhost ([127.0.0.1]:54862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc3S7-0007OR-LT for submit@debbugs.gnu.org; Thu, 29 Apr 2021 05:59:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc3S5-0007O6-Cf; Thu, 29 Apr 2021 05:59:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39186) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lc3Rz-0002qU-O5; Thu, 29 Apr 2021 05:59:15 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=32908 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lc3Rq-0000hV-RX; Thu, 29 Apr 2021 05:59:07 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> <87sg3asexh.fsf@gnu.org> <8735v91llu.fsf@gnu.org> Date: Thu, 29 Apr 2021 11:59:05 +0200 In-Reply-To: <8735v91llu.fsf@gnu.org> (Mathieu Othacehe's message of "Thu, 29 Apr 2021 11:33:17 +0200") Message-ID: <875z05mmxi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341 Cc: 39341@debbugs.gnu.org, 39341-done@debbugs.gnu.org, "pelzflorian \(Florian Pelz\)" , Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello! Mathieu Othacehe skribis: > Your recent patch is just revealing an issue we always had with this > Kmscon patch. Basically, without the "unlink" called you introduced, the > FIFO fd was added only to the first discovered input and the keyboard > layout was only applied to that very input. > > Conveniently, that input was always the main user keyboard I guess. The > attached patch fixes that issue by registering the FIFO on the first > input, but applying the keyboard layout to all the inputs. Oh, fun (indeed I tested on a laptop with an external USB keyboard). >>>From 1a0fddd844ced62c802db0d6d133af45880435f0 Mon Sep 17 00:00:00 2001 > From: Mathieu Othacehe > Date: Thu, 29 Apr 2021 11:11:32 +0200 > Subject: [PATCH] gnu: kmscon: Fix layout setup. > > Kmscon may discover multiple inputs, corresponding to multiple devices. T= his > means that the uxkb_dev_keymap_update function may be called multiple tim= es, > and the FIFO is registered on each input poll loop. > > When a new layout is written on the FIFO by the installer, the first input > picking up the message, will apply the new layout. However, that input ma= y not > be the input that the user is currently using. > > To fix it, register the FIFO on the first input poll loop, but apply the = new > layout on all the inputs in the uxkb_keymap_update_handler function. > > * gnu/packages/patches/kmscon-runtime-keymap-switch.patch > (uxkb_keymap_update_handler): Apply the new layout to all the inputs. > (uxkb_dev_keymap_update): Register the FIFO fd only on the first input po= ll loop. Tested in a VM: it switches layouts like crazy, doesn=E2=80=99t leak a sing= le FD, and generally behaves as expected. Thumbs up! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 29 06:13:50 2021 Received: (at 39341) by debbugs.gnu.org; 29 Apr 2021 10:13:50 +0000 Received: from localhost ([127.0.0.1]:54877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc3g6-0007m9-F5 for submit@debbugs.gnu.org; Thu, 29 Apr 2021 06:13:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc3g4-0007lr-BM; Thu, 29 Apr 2021 06:13:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39344) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lc3fy-0002hw-KO; Thu, 29 Apr 2021 06:13:42 -0400 Received: from [2a01:e0a:19b:d9a0:9576:8bbf:4795:82ee] (port=39780 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lc3fy-0005Ib-4G; Thu, 29 Apr 2021 06:13:42 -0400 From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39341: Installer using 100% of a CPU core References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> <87sg3asexh.fsf@gnu.org> <8735v91llu.fsf@gnu.org> <875z05mmxi.fsf@gnu.org> Date: Thu, 29 Apr 2021 12:13:40 +0200 In-Reply-To: <875z05mmxi.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 29 Apr 2021 11:59:05 +0200") Message-ID: <87wnslz9d7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39341 Cc: 39341@debbugs.gnu.org, 39341-done@debbugs.gnu.org, "pelzflorian \(Florian Pelz\)" , Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Tested in a VM: it switches layouts like crazy, doesn=E2=80=99t leak a si= ngle > FD, and generally behaves as expected. Thanks for testing :) I pushed a variant of this patch both on master and version-1.3.0 branches. Mathieu From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 29 06:47:48 2021 Received: (at 39341) by debbugs.gnu.org; 29 Apr 2021 10:47:48 +0000 Received: from localhost ([127.0.0.1]:54923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc4Cy-0000Ns-11 for submit@debbugs.gnu.org; Thu, 29 Apr 2021 06:47:48 -0400 Received: from pelzflorian.de ([5.45.111.108]:34368 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc4Cu-0000Nb-LX; Thu, 29 Apr 2021 06:47:45 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 06BEC36063C; Thu, 29 Apr 2021 12:47:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1619693263; bh=pzbZvwQR6iHRpycAhxMhE5A/2FfxbGz+g1d4SvQGI34=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=pWTEV8AYMZF9ZhyUUFWQgxgvuIs3E8ZpJLadxV058CjkDMx0epRfSzQpnyNuMsR+4 W4aPuCvtqroDaLkD6I/QopH41xaBMU1IRA4ehfT6jvfTNUnP361gUXn2ZmBQdzzDna 4okC3uGEO0GP6yfIXqTojpR3iOd68aMww884kbFo= Date: Thu, 29 Apr 2021 12:47:35 +0200 From: "pelzflorian (Florian Pelz)" To: Mathieu Othacehe Subject: Re: bug#39341: Installer using 100% of a CPU core Message-ID: <20210429104735.7756uyhv3uagxs23@pelzflorian.localdomain> References: <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> <8735vbwh9q.fsf@gnu.org> <20210428070210.g3lntjoek5y6hyi7@pelzflorian.localdomain> <87sg3asexh.fsf@gnu.org> <8735v91llu.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8735v91llu.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39341 Cc: 39341@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , 39341-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, Apr 29, 2021 at 11:33:17AM +0200, Mathieu Othacehe wrote: > Conveniently, that input was always the main user keyboard I guess. The > attached patch fixes that issue […] Aha! Thank you. This patch fixed it on my Beebox PC. Note that my Beebox only ever had a single input device: a USB keyboard. Now I can also confirm how before your fix, Mathieu, I triggered the keyboard layout switch the one time it did actually switch: By unplugging and replugging my USB keyboard. Then it used the new layout. (When I use another computer, I take the keyboard to the new computer, that is why I did that.) Regards, Florian From unknown Sat Jun 21 03:07:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 May 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator