Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A22AC4167B for ; Mon, 27 Nov 2023 13:43:59 +0000 (UTC) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mx.groups.io with SMTP id smtpd.web10.94948.1701092635745626079 for ; Mon, 27 Nov 2023 05:43:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=dFlRcKKS; spf=pass (domain: linuxfoundation.org, ip: 209.85.221.45, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-332f90a375eso1107995f8f.3 for ; Mon, 27 Nov 2023 05:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1701092634; x=1701697434; darn=lists.openembedded.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=MorEhiHMZ6/2yqRoVKkeIhQUP6bADo5HMHi7X5+f2lU=; b=dFlRcKKSFhaDCAS0EiYw8kEZgtroJe8ypQI3FP1fzPIoJvPhswimcMSP5MTRY/bhuU A9EYyu4qenQphSVLxIF0JB3MUIHzu7327Q94XRn5YrIbX/Revu0l2c2Im/7BEa4XABW9 omzntk8a6r5vH0piRhIzJwh1xal5bBgzJa86Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701092634; x=1701697434; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MorEhiHMZ6/2yqRoVKkeIhQUP6bADo5HMHi7X5+f2lU=; b=lER4Clp8jmdbQ7Gf8+LViHwdalynMulllwYjSe6/VLbRL+tD/bFAwpHPwFfi6tmA1i aN7NA1U3GPJIwPXhBqcc/sNqFPeMgMimZYLy1kGJxhJGsXM6a12MXxgi1YUI7FounD12 sgBFHT+vI0eFxq49WfN2sLN/pPRPVevRVU4aYLk/Ph7DLJG37xxrrfLvXPSWM9h6Vr83 6o4SQw+rHP5qb76iCLDDpiKDyP/tOqTJVIi6FNHQbsGC7iuGBC06UCgVLdT9mzssT3RG nepEdaj6dg8axhHo+9bJT0ujdA13SoPYBjd0Grr2IDUqxwXQN1CWig4W3m9KVMBhqKjr 4jnA== X-Gm-Message-State: AOJu0YxplgDfkfSMjkF6DEL2GGM8x3EnRF4wXAW8tBdPMxhOShRUNvAm kUGZhFi+HzVy+x4vVIWbwvO0Sg== X-Google-Smtp-Source: AGHT+IFSeXPebh9fmSSZw7T3X9VeYOenl9UooqVHAcVEnyE773kL1Fqzi/EMd+SHZL9C24QsEX8jlg== X-Received: by 2002:a05:6000:1544:b0:333:156:2db7 with SMTP id 4-20020a056000154400b0033301562db7mr1824374wry.8.1701092634033; Mon, 27 Nov 2023 05:43:54 -0800 (PST) Received: from ?IPv6:2001:8b0:aba:5f3c:430c:b470:8466:3e0? ([2001:8b0:aba:5f3c:430c:b470:8466:3e0]) by smtp.gmail.com with ESMTPSA id l6-20020a05600c4f0600b0040b3632e993sm14040355wmq.46.2023.11.27.05.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:43:53 -0800 (PST) Message-ID: <2fe3962b4ea14e96a33b41184d33c5b17f093c5b.camel@linuxfoundation.org> Subject: Re: [bitbake-devel] [PATCH] cooker: Add support for BB_DEFAULT_EVENTLOG From: Richard Purdie To: Jose Quaresma Cc: bitbake-devel@lists.openembedded.org, Ricardo Salveti Date: Mon, 27 Nov 2023 13:43:53 +0000 In-Reply-To: References: <20231116165233.2862786-1-richard.purdie@linuxfoundation.org> <63e078f1b4dd53095f00ec3c54c4c420ead9f7ac.camel@linuxfoundation.org> <179AAE63E62AFEF6.23801@lists.openembedded.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1-0ubuntu1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 27 Nov 2023 13:43:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/15573 On Mon, 2023-11-27 at 12:16 +0000, Jose Quaresma wrote: >=20 >=20 > Jose Quaresma via lists.openembedded.org > escreveu no dia > sexta, 24/11/2023 =C3=A0(s) 22:05: > >=20 > >=20 > > A sexta, 24/11/2023, 20:19, Richard Purdie > > escreveu: > > > On Fri, 2023-11-24 at 17:27 +0000, Jose Quaresma wrote: > > > > Hi Richard, > > > >=20 > > > > I believe=C2=A0I found a regression in this patch. > > > > When we build with a custom BB_LOGCONFIG configuration, bitbake > > > > hangs > > > > at start-up > > > > in the ping command. Here is my build log: > > > >=20 > > > > Loading cache...done. > > > > Loaded 6050 entries from dependency cache. > > > > (2023-11-24 16:06:39,801) INFO: Resolving any missing task > > > > queue > > > > dependencies > > > > (2023-11-24 16:06:46,455) Level 21:=20 > > > > Build Configuration: > > > > BB_VERSION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D "2.6.0" > > > > BUILD_SYS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D "x86_64-linu= x" > > > > NATIVELSBSTRING =C2=A0 =C2=A0 =C2=A0=3D "universal" > > > > TARGET_SYS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D "x86_64-lmp-linux= " > > > > MACHINE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D "intel-= corei7-64" > > > > DISTRO =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D "lmp" > > > > DISTRO_VERSION =C2=A0 =C2=A0 =C2=A0 =3D "4.0.14-78-91" > > > > TUNE_FEATURES =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D "m64 corei7" > > > > TARGET_FPU =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D "" > > > > DISTRO_FEATURES =C2=A0 =C2=A0 =C2=A0=3D "acl argp bluetooth ext2 ip= v4 ipv6 > > > > largefile > > > > usbgadget usbhost wifi xattr zeroconf pci vfat modsign efi > > > > security > > > > tpm integrity seccomp pam usrmerge virtualization alsa sota > > > > systemd > > > > usrmerge" > > > > meta-lmp-base =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D > > > > "HEAD:3a18fbcdb5629b1056c14af2ec72f21bb829893f" > > > > meta-oe =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > > meta-networking =C2=A0 =C2=A0 =C2=A0 > > > > meta-filesystems =C2=A0 =C2=A0=20 > > > > meta-perl =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > > meta-python =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D > > > > "HEAD:991e6852a53e0fcd40af8f0386d7f46bb318015e" > > > > meta-virtualization =C2=A0=3D > > > > "HEAD:a215d8320edee0a317a6511e7e2efa5bba867486" > > > > meta-clang =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:8aaed8f345683c2fb03a4d90f615f1e93f545a55" > > > > meta-updater =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:defecf4523fe70d38efCompleted (socket: True) > > > > > 365401 12:05:44.152781 Running 0e264b46a38019d6d3088" > > > > meta-security =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > > meta-tpm =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 > > > > meta-parsec =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > > meta-integrity =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:070a1e82cc59424d230a23c0b2a104b01fbaa2ad" > > > > meta-arm =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 > > > > meta-arm-toolchain =C2=A0=20 > > > > meta-arm-bsp =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:5f8b6a2d269c59c21273fee5417f2f0d90a086a1" > > > > meta-freescale =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:d48d230b34292f8c61e5ead75e067fff404fb20c" > > > > meta-freescale-3rdparty =3D > > > > "HEAD:a9bba0f7fc3765431433886a3e78632dcfa7ad26" > > > > meta-raspberrypi =C2=A0 =C2=A0 =3D > > > > "HEAD:8231f97534812cb0c6ab8d500eff44d3880fdac5" > > > > meta-intel =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:52ce86a7f5f1ed751d80bc5e1d6b76db1c5b84c8" > > > > meta-yocto-bsp =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:5d86975934b46a64b36f60c097bce7a577c1b8b0" > > > > meta-xilinx-core =C2=A0 =C2=A0=20 > > > > meta-xilinx-bsp =C2=A0 =C2=A0 =C2=A0 > > > > meta-xilinx-standalone =3D > > > > "HEAD:0872170289d08996d821db4d8988647a13063269" > > > > meta-xilinx-tools =C2=A0 =C2=A0=3D > > > > "HEAD:65799115a9d3dd53053b08f6f1416ecf879f4898" > > > > meta-tegra =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:fb4c603c504b6df9631f15a4734cbb8c42b1005a" > > > > meta-ti-bsp =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > > meta-ti-extras =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:d3bcad2cbe63d4e1cd2b4e4418d0b3b9c1f864ed" > > > > meta-lmp-bsp =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:3a18fbcdb5629b1056c14af2ec72f21bb829893f" > > > > meta =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D > > > > "HEAD:795e85f62f3c88c08f24d986548ffe422f459cd0" > > > >=20 > > > > [Errno 32] Broken pipeTraceback (most recent call last): > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/ui/knotty.py", line 647, in mai= n > > > > =C2=A0 =C2=A0 ret, error =3D server.runCommand(["ping"]) > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/server/process.py", line 503, i= n > > > > runCommand > > > > =C2=A0 =C2=A0 self.connection.send(command) > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/server/process.py", line 868, i= n > > > > send > > > > =C2=A0 =C2=A0 self._send(obj) > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/server/process.py", line 847, i= n > > > > _send > > > > =C2=A0 =C2=A0 self.writer.send_bytes(obj) > > > > =C2=A0 File "/usr/lib/python3.8/multiprocessing/connection.py", lin= e > > > > 200, > > > > in send_bytes > > > > =C2=A0 =C2=A0 self._send_bytes(m[offset:offset + size]) > > > > =C2=A0 File "/usr/lib/python3.8/multiprocessing/connection.py", lin= e > > > > 411, > > > > in _send_bytes > > > > =C2=A0 =C2=A0 self._send(header + buf) > > > > =C2=A0 File "/usr/lib/python3.8/multiprocessing/connection.py", lin= e > > > > 368, > > > > in _send > > > > =C2=A0 =C2=A0 n =3D write(self._handle, buf) > > > > BrokenPipeError: [Errno 32] Broken pipe > > > > During handling of the above exception, another exception > > > > occurred: > > > > Traceback (most recent call last): > > > > =C2=A0 File "/srv/oe/bitbake/bin/bitbake", line 36, in > > > > =C2=A0 =C2=A0 sys.exit(bitbake_main(BitBakeConfigParameters(sys.arg= v), > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/main.py", line 404, in > > > > bitbake_main > > > > =C2=A0 =C2=A0 return ui_module.main(server_connection.connection, > > > > server_connection.events, > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/ui/knotty.py", line 864, in mai= n > > > > =C2=A0 =C2=A0 _, error =3D server.runCommand(["stateForceShutdown"]= ) > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/server/process.py", line 503, i= n > > > > runCommand > > > > =C2=A0 =C2=A0 self.connection.send(command) > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/server/process.py", line 868, i= n > > > > send > > > > =C2=A0 =C2=A0 self._send(obj) > > > > =C2=A0 File "/srv/oe/bitbake/lib/bb/server/process.py", line 847, i= n > > > > _send > > > > =C2=A0 =C2=A0 self.writer.send_bytes(obj) > > > > =C2=A0 File "/usr/lib/python3.8/multiprocessing/connection.py", lin= e > > > > 200, > > > > in send_bytes > > > > =C2=A0 =C2=A0 self._send_bytes(m[offset:offset + size]) > > > > =C2=A0 File "/usr/lib/python3.8/multiprocessing/connection.py", lin= e > > > > 411, > > > > in _send_bytes > > > > =C2=A0 =C2=A0 self._send(header + buf) > > > > =C2=A0 File "/usr/lib/python3.8/multiprocessing/connection.py", lin= e > > > > 368, > > > > in _send > > > > =C2=A0 =C2=A0 n =3D write(self._handle, buf) > > > > BrokenPipeError: [Errno 32] Broken pipe > > >=20 > > > Those tracebacks are the connection failing. Is there something > > > more/different in the bitbake-cookerdaemon.log file? > > =C2=A0 > > Reverting this patch or disabling the custom logger solves the > > issue. Next week I will share the cookerdaemon.log file. > >=20 >=20 >=20 > I can replicate the issue in a more easy way just running bitbake in > debug mode (with one -D) and > without=C2=A0any custom BB_LOGCONFIG. The result is the same as before, > with this patch reverted all good. I was able to find a reproducer for what is likely the same issue and there is a patch on the bitbake list (and in master-next) to try and address this. Can you see if that helps please? Cheers, Richard