Received: from cpanel8.indieserve.net (cpanel8.indieserve.net [199.212.143.3]) by mx.groups.io with SMTP id smtpd.web12.3294.1616578028527859819 for ; Wed, 24 Mar 2021 02:27:08 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: crashcourse.ca, ip: 199.212.143.3, mailfrom: rpjday@crashcourse.ca) Received: from cpeac202e043973-cmac202e043970.sdns.net.rogers.com ([174.114.107.13]:57332 helo=fedora) by cpanel8.indieserve.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lOzn8-002uAB-5L for openembedded-core@lists.openembedded.org; Wed, 24 Mar 2021 05:27:07 -0400 Date: Wed, 24 Mar 2021 05:27:03 -0400 (EDT) From: "Robert P. J. Day" To: OE Core mailing list Subject: looking for advice on "pseudo abort" incident Message-ID: MIME-Version: 1.0 X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel8.indieserve.net X-AntiAbuse: Original Domain - lists.openembedded.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Get-Message-Sender-Via: cpanel8.indieserve.net: authenticated_id: rpjday+crashcourse.ca/only user confirmed/virtual account not confirmed X-Authenticated-Sender: cpanel8.indieserve.net: rpjday@crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset=US-ASCII actually a 2-part post, so bear with me, the first part is not all that exciting. continuing my travels through a proprietary layer i've been handed, i can across a recipe that redefined its PACKAGES in an obviously strange way: # Packages to consider PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-staticdev" # Files to add into the packages FILES_${PN} += "${libdir}/lib*.so* ${bindir}/* ${datadir}/*" FILES_${PN}-dbg += "${libdir}/.debug/* ${bindir}/.debug/*" FILES_${PN}-staticdev += "${libdir}/*.a" FILES_${PN}-dev += "${includedir}" FILES_${PN} += "/data" FILES_${PN} += "/data/config" FILES_${PN} += "/data/etc" # Produce package even if it is empty. ALLOW_EMPTY_${PN} = "1" ignoring the obvious weirdness of adding hard-coded host paths to the package definitions, it struck me that it was overkill to entirely redefine the PACKAGES variable. it seems to me that the stock bitbake.conf already does a good job of defining the standard package partitioning, starting with: PACKAGE_BEFORE_PN ?= "" PACKAGES = "${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}" PACKAGES_DYNAMIC = "^${PN}-locale-.*" FILES = "" FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \ ${sysconfdir} ${sharedstatedir} ${localstatedir} \ ... snip ... so, sure, lots of recipes might *tweak* the package definitions from what they are, but it seems that it should be rare to totally toss the initial definition of PACKAGES, and redefine it from scratch, especially when it seems that the new definition isn't really all that different from what you see in bitbake.conf. so my next bit of advice is going to be, "adjust the recipes's packages, don't redefine them from scratch." but here's the bigger issue. only hours after i examined that recipe, i got a report of a "pseudo abort" error during the build using this layer; something i have never, ever seen in any of my builds. that error is explained here: https://wiki.yoctoproject.org/wiki/Pseudo_Abort and opens with: "Pseudo can suffer from problems where files are created or modified in pseudo's fakeroot context, then deleted outside of it. In particular, the inode number for that file may be reused. If some later access under pseudo uses that inode number, pseudo can see this and become confused about whether the files are the same file or not. Under older behaviour for pseudo, the modes of the old file may be applied to the new one, causing mode permission corruption." and what does this have to do with my earlier musings? because, coincidentally, this pseudo abort error was generated by exactly the same recipe i was talking about above. so i'm about to dig into this error (which i have never seen before), but could the cause be the hard-coding of host paths being added to some of the recipe's packages? that is, is it possible that, in the midst of processing that recipe, the host paths are being modified on the fly by someone or something else, thereby causing this error? or is that something i can discount entirely? just looking for any guidance to speed up the debugging. rday