From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 19BFE385481C; Sun, 28 Mar 2021 14:20:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19BFE385481C From: "bugzilla.sourceware at mailstor dot net" To: systemtap@sourceware.org Subject: [Bug translator/27658] New: Swallowed spawn error (due to "Cannot allocate memory") causes unrelated problems later in build process (pass2) Date: Sun, 28 Mar 2021 14:20:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla.sourceware at mailstor dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2021 14:20:40 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27658 Bug ID: 27658 Summary: Swallowed spawn error (due to "Cannot allocate memory") causes unrelated problems later in build process (pass2) Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: bugzilla.sourceware at mailstor dot net Target Milestone: --- I was trying to build (cross-instrument) my script on a rather small VM (1vCore, 1 GB RAM) (RH 7.9 3.10.0-1160.2.2.el7.x86_64), and was getting rat= her cryptic errors about not being able to find task_struct in 'kernel' during pass 2. When I turned on verbose reporting (-vvv), I've noticed the following lines: Running env -uARCH -uKBUILD_EXTMOD -uCROSS_COMPILE -uKBUILD_IMAGE -uKCONFIG_CONFIG -uINSTALL_PATH -uLD_LIBRARY_PATH PATH=3D/usr/bin:/bin:/sbin:/bin:/usr/sbin:/usr/bin make -C /lib/modules/3.10.0-1160.2.2.el7.x86_64/build M=3D/tmp/stappngjro/typequery_kmod_1 modules CONFIG_DEBUG_INFO=3D CONFIG_STACK_VALIDATION=3D ARCH=3Dx86_64 V=3D1 -j2 Spawn error (12): Cannot allocate memory blacklist regexps: (and that was rather by chance among 8K+ lines!). When I increased the VM's= RAM to 2 GB, I was able to compile the .ko module just fine, and the relevant l= ines of the verbose output became like this: Running env -uARCH -uKBUILD_EXTMOD -uCROSS_COMPILE -uKBUILD_IMAGE -uKCONFIG_CONFIG -uINSTALL_PATH -uLD_LIBRARY_PATH PATH=3D/usr/bin:/bin:/sbin:/bin:/usr/sbin:/usr/bin make -C /lib/modules/3.10.0-1160.2.2.el7.x86_64/build M=3D/tmp/stapByLMay/typequery_kmod_1 modules CONFIG_DEBUG_INFO=3D CONFIG_STACK_VALIDATION=3D ARCH=3Dx86_64 V=3D1 -j2 Spawn waitpid result (0x0): 0 Copying /tmp/stapByLMay/typequery_kmod_1/typequery_kmod_1.ko to /root/.systemtap/cache/8e/typequery_8ec54f395ebe818cb452424245734ea2_792.ko blacklist regexps: So either the "env", or more likely the "copy" operation needed more memory than my small VM could provide, and the process failed, but the error was swallowed (not reported to me using only "-v" flag), and that failure someh= ow caused errors down the road whose messages were rather irrelevant. I realize it's probably a user error to use systemtap in such a small system (if some "requirements" reported somewhere specifically asks for bigger RAM= ), but still it would have saved me some hours, had that error not been swallo= wed (with "-v"), and been more visible! --=20 You are receiving this mail because: You are the assignee for the bug.=