Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2024 18:44:33 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Yasuhiro Kimura <yasu@freebsd.org>,  freebsd-current@freebsd.org
Subject:   Re: eval: Pipe call failed: Cannot allocate memory
Message-ID:  <86bk0iz34e.fsf@ltc.des.dev>
In-Reply-To: <Zu1eZWsKK6ReE4QN@kib.kiev.ua> (Konstantin Belousov's message of "Fri, 20 Sep 2024 14:37:09 %2B0300")
References:  <20240920.185920.1538575456943179013.yasu@FreeBSD.org> <Zu1eZWsKK6ReE4QN@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Konstantin Belousov <kostikbel@gmail.com> writes:
> Did the poudriere run itself finished successfully?
>
> Can you show the output from 'sysctl kern.ipc | grep pipe' before and
> after the poudriere run?

I have the same problem.  The build did not finish successfully; it
didn't even start.  Simply running `poudriere ports -u` (basically a
wrapper for `git pull --rebase`) was enough to render the system
unusable.  Apparently every pipe(2) call by a privileged process returns
ENOMEM, which means no shell script more complex than hello world can
run, and you can't ssh in because sshd fails to set up the pipe it uses
to talk to the privsep child.

% uname -a=20
FreeBSD pkg.des.dev 15.0-CURRENT FreeBSD 15.0-CURRENT #34 main-87fbd9fc7f: =
Fri Sep 20 11:18:29 UTC 2024     root@pkg.des.dev:/usr/obj/poudriere/jails/=
15amd64/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64
% sysctl kern.ipc | grep pipe=20
kern.ipc.pipe_mindirect: 8192
kern.ipc.pipebuf_reserv: 2
kern.ipc.piperesizeallowed: 1
kern.ipc.piperesizefail: 0
kern.ipc.pipeallocfail: 0
kern.ipc.pipefragretry: 0
kern.ipc.pipekva: 40960
kern.ipc.maxpipekva: 3220561920
% sudo sh -c 'sysctl kern.ipc | grep pipe'=20
sh: Pipe call failed: Cannot allocate memory

I also have a bunch of these on the console:

negative pipecnt for uid =3D 0

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bk0iz34e.fsf>