From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7097264153945964544 X-Received: by 2002:a05:6000:110a:b0:20d:131e:bf0c with SMTP id z10-20020a056000110a00b0020d131ebf0cmr23917615wrw.108.1653407856363; Tue, 24 May 2022 08:57:36 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:f346:0:b0:20e:7267:9ee4 with SMTP id e6-20020adff346000000b0020e72679ee4ls17539912wrp.2.gmail; Tue, 24 May 2022 08:57:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx59vO5tokJNP1Y4BoRju8Plzrtqdcd/Qfqa74SKCSWTxAG/wQf+/UE8/qsjhEHySpUDtKa X-Received: by 2002:a5d:4344:0:b0:20c:9156:8ec with SMTP id u4-20020a5d4344000000b0020c915608ecmr24227690wrr.71.1653407855065; Tue, 24 May 2022 08:57:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653407855; cv=pass; d=google.com; s=arc-20160816; b=XFYTVnVu0q8Scb6Fp4RUCKXPEuA1jDMytIV4gtJErFIgam6dV7hvh4j2mffRlbMZNk n1JI9DBKDakxEUvgLbionRaW0PQzPzamBaWmwC4/QU7QgO40cc2kpE9w7uEKAvMnTqNp NnmPvVBD7KeeWtaFiXgb4GIS7Ie0etUu/2u2Hg76PWnqe5cvrA7kZHEwejhxMVUKv76Y WKYXyMm+bbY4EcRYf6fKcZCLZN3cVJxCqm02HoDjK8yQahx2WawA4l8iFRWKuiyRdvr7 Pjh+vCg0aoP9EW/8SC+r+G1mhN/SLTGAr7Flip4wK7G25PA3ifH0I9HIhfjq3L5y9s35 M9ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=jfMj5+ejZvey2VpsDdcIk7DnkEfhR9t7dwAfj9US6BI=; b=TmZQnh34I+zQQOTUopLpNRfHnWU5exWnDjP31zwVIImgmHcDvvam/mlJ1/fk7GKxlx PyENHYb0LUeTDgpQg9Isr+EenxYu6x+MvV+/zMHp47tjI8l4Ht5oZSckbb54GuHTDhNt hVTSdJIQW245ExFiQiSiN2aEkfwzhPyfhk5P3H/CaTZfBtZp1JWbeolsFUcGYoI6iHai tyB9twLh2+xiM2dmxI/1W/7p6KryV0q9je6QYh8bLb6fPLiqp2hEdZBZVKM9bQLJcTDQ uO8GQuiY8hNqHKo31lOmodZVAHX3reByD1FYvjylyAOXgiTbQyeJHw1xqQJ9Rtvb/WXe Lo2g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=GfpYEkQA; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:7e1b::624 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20624.outbound.protection.outlook.com. [2a01:111:f400:7e1b::624]) by gmr-mx.google.com with ESMTPS id c6-20020a05600c0a4600b003942a493261si195616wmq.1.2022.05.24.08.57.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 May 2022 08:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:7e1b::624 as permitted sender) client-ip=2a01:111:f400:7e1b::624; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=GfpYEkQA; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:7e1b::624 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e9ETRFQzOadXcQRnKwvKuw1sDTDI0Zrxx0aug+ILDBCdhswldHzokV7Wc2QIbfRcMX+JoJdqpHYgx3DDceAYcz2KxYlP2j05q4DtcKgtH8v02bK9qEhcNbVFlXZnmD+7ci8XBWebVDzwHA/eIo9I6JiPqA5JcE4D16gVcxxBARLqSSNHI8xns2dHrBdBpb01Jf8NAp1aIHyrSYfPkNufvq80F934t42PUr09dd+eR5kRXEuZXUOLmNqOHIp0rlYEpPJTkW5KgnLTa69QGv4Sm1LlyjrMtueuJD8uZ+p5P8eoU4EhBDRIe8hqbBJJ2KU6XQY4jyQOK8JW4chI5Pt6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jfMj5+ejZvey2VpsDdcIk7DnkEfhR9t7dwAfj9US6BI=; b=BYN3x5QevHwumKUtVUuML1diZLJtqjha34wbpLeYfYVVGGSBD6UlpHcAdgViLUrSAiz1/1oyIxxDOgFrr4+IqOHsecQZUwAOfzQk67CaM3eKkzGH+s7MQk/4pvgZBKUko/6T+Rk7BAsG8yj2qVLxYmI1QCQd8pmHfnuq4k2mTjm36MORk56h6EE6UTNVp3ftS3YvJ0tpVGuBbMvskLdWIXi8lanb6PDyoDjb4KC2UHgMT8w4iINLTTywbUI8Oz/zZEWCxDe+vO2jCG5QYLi7xGDo39EhYLLVeHNJE1E6KA7U+UV8rxNVb7x7XK8fUK/5RRLsi/tjgJ4Z1j+6TxiXjw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.73) smtp.rcpttodomain=ilbers.de smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jfMj5+ejZvey2VpsDdcIk7DnkEfhR9t7dwAfj9US6BI=; b=GfpYEkQAWheyRBylu1fFL0mIv8y+v8KP3UYBQfRodcdLq/+ZuDcJ8XGgKd6L5lI86qgt78IIX3iIE6vtujAXKjHoh0r8dkd+zStQsYCYY8xYMzX4ev01XXeOgr0G6oy5fv4DbwkPR61m47dWzBcYglzpc/q3HxEqdR/mHbfwk2Sn+uIIN1IJIVBBHfwV82sbkfjJRQUz38GJBB/e4iN5iejT+ZP4PRwRzc/ftA/JlK6/OULXyu6vh2Y2ejq4prMyuYy4SNxEt6KBcqOmRAc3P748Z/ED3TJyPHyuGO2asPleIgGVmyzr8i1NKm/Gt1zPOVvC8WbomoZRuAeb0VE52A== Received: from AM0PR02CA0172.eurprd02.prod.outlook.com (2603:10a6:20b:28e::9) by AS8PR10MB4773.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:339::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.14; Tue, 24 May 2022 15:57:34 +0000 Received: from VE1EUR01FT096.eop-EUR01.prod.protection.outlook.com (2603:10a6:20b:28e:cafe::84) by AM0PR02CA0172.outlook.office365.com (2603:10a6:20b:28e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.23 via Frontend Transport; Tue, 24 May 2022 15:57:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.73) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.73 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.73; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.73) by VE1EUR01FT096.mail.protection.outlook.com (10.152.3.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5273.14 via Frontend Transport; Tue, 24 May 2022 15:57:33 +0000 Received: from DEMCHDC89XA.ad011.siemens.net (139.25.226.103) by DEMCHDC9SNA.ad011.siemens.net (194.138.21.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Tue, 24 May 2022 17:57:33 +0200 Received: from [139.25.68.37] (139.25.68.37) by DEMCHDC89XA.ad011.siemens.net (139.25.226.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.24; Tue, 24 May 2022 17:57:32 +0200 Message-ID: <76ed79b1-4397-4329-4332-7fa1c45fe56b@siemens.com> Date: Tue, 24 May 2022 17:57:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Error logging broken with next? Content-Language: en-US From: Jan Kiszka To: Anton Mikanovich , isar-users CC: Baurzhan Ismagulov References: <75340600-5180-2f78-86f8-d5dc0c757a35@siemens.com> <3ddcda7f-41ba-5e25-3ec8-959a5ff356cc@ilbers.de> <46894ccf-242c-68fa-1553-b99a5670c160@siemens.com> <5bb4f88d-0285-4407-6bad-04e6b6e3703f@ilbers.de> <2be1421c-b534-c5c7-cf5e-1510cc3c81a5@siemens.com> In-Reply-To: <2be1421c-b534-c5c7-cf5e-1510cc3c81a5@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-Path: jan.kiszka@siemens.com X-Originating-IP: [139.25.68.37] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC89XA.ad011.siemens.net (139.25.226.103) X-TM-AS-Product-Ver: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-AS-Result: No-10--17.265100-8.000000 X-TMASE-MatchedRID: OMk5Q+H0IT45QaOxwNGfvo9bHfxDWoib5GpNAiPonKgJkbKE+p2aK4HL FWR93TgkUCgEErrUGFzhO1nSlS9Ry+h4w4v1zBopTT53KRc4+7xHzbR4YfxtegKDWtq/hHcN3V4 UShoTXaeKZevPTDsNRiNgPd9n6J1iEcE+LOiKuIv8SaXpV7P4SldjnN7rNQ8p5b0nmEmBFCzaCn 4DqCiXNkoPLn6eZ90+eJUHfP2jc8SdOcxL/MDUUOnE40BfjgG0lowCI7+FFMA1zAIxsIDxqE16N 0DD9tffjPODI4m6bIeYpuG7kpoKR8n6rmLDrw45ypQ4fHj6rgtKca0+41kHnG0WRq7KHlv4QR7l WMXPA1sz988bphElUer4Blx+fGLD1d2FeHY4JrzUJZmS6wo849wT6zxh2KcjwecYtFTu6LhxXef gn/TNQ8sgArcTrx0xE2G7Tdxp4PvVt3p21S265zE41bFBKcdLahH+l6+69lhFM72aEhcbjVx3lZ N/3Sgca0TOsL14A2lgbfZku6SlU3qKlbNWS67wM3frSRH3MdRccQ8eam5EfYMbH85DUZXyseWpl itmp0j6C0ePs7A07YVH0dq7wY7up8Odl1VwpCQfhf92jLF7U+2BAQCezzDitrCTGvX/T5yb+W5B JSXaSMHgKvB3GEuZ X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--17.265100-8.000000 X-TMASE-Version: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-SNTS-SMTP: A7EA888B779D07C97A0914A7BE3E96A6A3B480A667157B1AE6035065F49978FF2000:8 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ea43ae3-4c88-41b6-0b62-08da3d9e1d89 X-MS-TrafficTypeDiagnostic: AS8PR10MB4773:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jmT9/g7VMeHB5f7exiXsDK7MZ5wWJRuNmx/rusq2x6K9f5sZEM2VEEIKXGrT7HznSIP7HFjuK7zHQWak/TfoBOpKXnGwzYAgKDcsh5sncZDeuL3w8Z89b1Ddke+ttSDoPIdio4jWDmSb3d18+80/Y+3z7ZpE9VBMw9Jf1X5mXLxIYckyPhCfXT9NxdbcofHZgGBBHA0igBd+mRnf/ehFrHtL0iUyiuYXILGMlWcSolp195e0zZxIWou9qc2U1zzECAcxEsvUmaIl66XopNCSx7ozWltNAq/LgPgVQyR++KHoHdIHya0YqmFH3CjDmFv/LKIYy6p2mJLsFj6154oy7ejix+NetaMs4DrLp+xDHWhjYgBijDtZP+0Y7xJZOBg1vMSx+kDxH96O2Ncmy3Zx39dGxEoccxqdwl7b72zwpyho0mTmUMucaJ6NM3jG2RWhDKNdYZkd1rvuMDzmvgCg82sglqc2F9REB1jBKVyZzrr6gXLlFUeTpGaoTNc6ksyHrU5XERJM4Q/TotkfSPhLI9CDVO3xvSpr5J+hxhhOLHYwdrfWIKZQzpTA7NSKHSXJsa8+vaWtpdL4S6YcjJDQXdF/vl1OJUmAl36i+3bbuvlzDjdw8KD6/WkLCzdMwOdcfGvaCezw+bUXzQKWAZLe792f9SRyBr1F0zhRBDe7utY/Razyi2003ymivcQdke25tNb3ACTrKPb+HzxzvV3tlkzZ8UK9DuYjkhtHnT1KGa8vxB4X3XUBbkkRQOMJJKc9sLoEpPvj/XFPQUSGMsBsPw== X-Forefront-Antispam-Report: CIP:194.138.21.73;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(336012)(16526019)(40460700003)(36860700001)(186003)(4326008)(8676002)(36756003)(31686004)(2906002)(316002)(82310400005)(6706004)(70586007)(70206006)(5660300002)(16576012)(8936002)(110136005)(83380400001)(44832011)(53546011)(31696002)(86362001)(26005)(81166007)(956004)(356005)(47076005)(82960400001)(508600001)(2616005)(3940600001)(36900700001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2022 15:57:33.5470 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6ea43ae3-4c88-41b6-0b62-08da3d9e1d89 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.73];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT096.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB4773 X-TUID: xe9c/+5c5G0h On 24.05.22 17:54, Jan Kiszka wrote: > On 24.05.22 16:23, Anton Mikanovich wrote: >> 23.05.2022 22:06, Jan Kiszka wrote: >>> It's actually much simpler: Just call "bitbake borken-target" on the >>> shell, and you will only get the lengthy backtrace but not log report. >>> >>> I'm not yet down to the core of the problem, but when you force such a >>> failure in upstream poky (today's master), you also get no immediate >>> output of bitbake - but then the knotty UI jumps in and does a >>> >>> Log data follows: >>> | DEBUG: Executing python function extend_recipe_sysroot >>> ... >>> | DEBUG: Python function patch_do_patch finished >>> | DEBUG: Executing shell function do_fix_readlib_c >>> | FAIL! >>> | WARNING: exit code 1 from a shell command. >>> | DEBUG: Python function do_patch finished >>> ERROR: Task (/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_patch) >>> failed with exit code '1' >>> >>> >>> I've done this to poky to trigger it: >>> >>> diff --git a/meta/recipes-core/glibc/glibc_2.35.bb >>> b/meta/recipes-core/glibc/glibc_2.35.bb >>> index 6ea5b1efb5..9500c8a128 100644 >>> --- a/meta/recipes-core/glibc/glibc_2.35.bb >>> +++ b/meta/recipes-core/glibc/glibc_2.35.bb >>> @@ -91,6 +91,8 @@ do_patch:append() { >>>   } >>>     do_fix_readlib_c () { >>> +    echo "FAIL!" >>> +    false >>>       sed -i -e >>> 's#OECORE_KNOWN_INTERPRETER_NAMES#${EGLIBC_KNOWN_INTERPRETER_NAMES}#' >>> ${S}/elf/readlib.c >>>   } >>>   Analogous trigger for isar: >>> >>> diff --git a/meta-isar/recipes-app/example-raw/files/rules >>> b/meta-isar/recipes-app/example-raw/files/rules >>> index a1167375..ed63d364 100644 >>> --- a/meta-isar/recipes-app/example-raw/files/rules >>> +++ b/meta-isar/recipes-app/example-raw/files/rules >>> @@ -5,4 +5,5 @@ >>>   # we do violate debian quality rules here, but on purpose to demo how >>>   # to deal with it >>>   override_dh_usrlocal: >>> -    true >>> +    echo "FAIL!" >>> +    false >>> >>> So, Isar has a bug here of not letting knotty (as default UI) do its >>> job it seems to me. Didn't this work before? Didn't we also have those >>> duplicate dumps in the past that upstream bitbake seem to have resolved >>> now? >>> >>> >>> BTW, I've received first reports of this bug from the field today. We >>> must fix this before the release, or our users will kill us. >>> >>> Jan >>> >> I didn't find any differences between Yocto and Isar. >> If putting glibc_2.35.bb change example into Isar it behaves in the same >> way >> outputting full error log. >> Otherwise if executing the second example in Yocto (running bash code from >> python task with bb.build.exec_func) it will output only exception message >> just like Isar. >> So there are no issues in Isar itself, it behaves just like Yocto. >> If we need to have full log printed Bitbake should be fixed. >> > > Ok, then the environment of the glibc case is not the same as our for > the dpkg_runbuild. The latter is broken, and we need to understand how > to restore its output in Isar - very likely not in bitbake. > Just thinking loudly: Is it our try-finally that changes the output trigger for knotty? try: bb.build.exec_func("dpkg_runbuild", d) finally: bb.build.exec_func("dpkg_undo_mounts", d) bb.utils.unlockfile(lock) Jan -- Siemens AG, Technology Competence Center Embedded Linux