From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#31785: Multiple client 'build-paths' RPCs can lead to daemon deadlock Date: Fri, 06 Sep 2019 11:04:43 +0200 Message-ID: <87lfv1eqxg.fsf@gnu.org> References: <87602ph0yv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56730) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6ABx-0006yq-Mb for bug-guix@gnu.org; Fri, 06 Sep 2019 05:06:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6ABw-0005tB-Cx for bug-guix@gnu.org; Fri, 06 Sep 2019 05:06:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i6ABw-0005sv-6I for bug-guix@gnu.org; Fri, 06 Sep 2019 05:06:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i6ABu-0006s9-08 for bug-guix@gnu.org; Fri, 06 Sep 2019 05:06:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87602ph0yv.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 11 Jun 2018 16:06:16 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 31785@debbugs.gnu.org Here=E2=80=99s another example from berlin today: --8<---------------cut here---------------start------------->8--- ludo@berlin$ sudo guix processes SessionPID: 38649 ClientPID: 38611 ClientCommand: /gnu/store/7x9lrzs2l00mfcr3ya7hg1i06i7lq9pd-profile/bin/guil= e \ /home/mbakke/guix/master/scripts/guix build --no-grafts --keep-going --= max-silent-time=3D36000 --timeout=3D216000 -s armhf-linux nmoldyn r-msnid r= -yamss netcdf-fortran python-netcdf4 LockHeld: /gnu/store/v6hcm1gvv3gdfbnq6cd4kn1i6ip3y74s-netcdf-fortran-4.4.4.= lock LockHeld: /gnu/store/ydxl0ws9kk6ix58m99ib7qhi157yq49h-r-msnid-1.18.1.lock ChildProcess: 33181: /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.= 4/bin/guile \ /gnu/store/vyhfp0gj4rx74yw0ybalzj8bvmqgp9pr-guix-1.0.1-4.c902= 458/bin/.guix-real offload x86_64-linux 36000 1 216000 [...] SessionPID: 44043 ClientPID: 44023 ClientCommand: /gnu/store/7x9lrzs2l00mfcr3ya7hg1i06i7lq9pd-profile/bin/guil= e \ /home/mbakke/guix/master/scripts/guix build --no-grafts --keep-going --= max-silent-time=3D36000 --timeout=3D216000 -s armhf-linux netcdf-fortran r-= msnid nmoldyn r-yamss LockHeld: /gnu/store/69jjabypcpx83482rh3yp4a9ncjimw6b-r-yamss-1.10.0.lock LockHeld: /gnu/store/ibdbwxb1i8yal8ilqxxgnzh6bxpinic1-nmoldyn-3.0.11.lock ChildProcess: 48997: /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.= 4/bin/guile \ /gnu/store/vyhfp0gj4rx74yw0ybalzj8bvmqgp9pr-guix-1.0.1-4.c902= 458/bin/.guix-real offload x86_64-linux 36000 1 216000 ludo@berlin ~$ sudo strace -p 38649 -e openat,fcntl strace: Process 38649 attached openat(AT_FDCWD, "/gnu/store/ibdbwxb1i8yal8ilqxxgnzh6bxpinic1-nmoldyn-3.0.1= 1.lock", O_RDWR|O_CREAT, 0600) =3D 10 fcntl(10, F_GETFD) =3D 0 fcntl(10, F_SETFD, FD_CLOEXEC) =3D 0 fcntl(10, F_SETLK, {l_type=3DF_WRLCK, l_whence=3DSEEK_SET, l_start=3D0, l_l= en=3D0}) =3D -1 EAGAIN (Resource temporarily unavailable) openat(AT_FDCWD, "/gnu/store/69jjabypcpx83482rh3yp4a9ncjimw6b-r-yamss-1.10.= 0.lock", O_RDWR|O_CREAT, 0600) =3D 10 fcntl(10, F_GETFD) =3D 0 fcntl(10, F_SETFD, FD_CLOEXEC) =3D 0 fcntl(10, F_SETLK, {l_type=3DF_WRLCK, l_whence=3DSEEK_SET, l_start=3D0, l_l= en=3D0}) =3D -1 EAGAIN (Resource temporarily unavailable) ^Cstrace: Process 38649 detached ludo@berlin ~$ sudo strace -p 44043 -e openat,fcntl strace: Process 44043 attached openat(AT_FDCWD, "/gnu/store/ydxl0ws9kk6ix58m99ib7qhi157yq49h-r-msnid-1.18.= 1.lock", O_RDWR|O_CREAT, 0600) =3D 10 fcntl(10, F_GETFD) =3D 0 fcntl(10, F_SETFD, FD_CLOEXEC) =3D 0 fcntl(10, F_SETLK, {l_type=3DF_WRLCK, l_whence=3DSEEK_SET, l_start=3D0, l_l= en=3D0}) =3D -1 EAGAIN (Resource temporarily unavailable) ^Cstrace: Process 44043 detached --8<---------------cut here---------------end--------------->8--- A very palpable deadlock. Ludo=E2=80=99.