From nobody Tue Oct 19 13:58:55 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5F58C181109E for ; Tue, 19 Oct 2021 13:58:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HYb271phWz4rRQ for ; Tue, 19 Oct 2021 13:58:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1DDF3154AF for ; Tue, 19 Oct 2021 13:58:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 19JDwtci041370 for ; Tue, 19 Oct 2021 13:58:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19JDwt6d041369 for bugs@FreeBSD.org; Tue, 19 Oct 2021 13:58:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 259270] bmake exits with status 0 upon ENOSPC Date: Tue, 19 Oct 2021 13:58:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259270 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #1 from Mark Johnston --- I used dtrace to stop the make process when the error occurs: markj@biggie> sudo dtrace -n 'syscall:::return /errno =3D=3D ENOSPC/{raise(SIGSTOP);}' -w Then markj@biggie> gdb -q -p $(pgrep make) Attaching to process 56889 Reading symbols from /usr/bin/make... Reading symbols from /usr/lib/debug//usr/bin/make.debug... Reading symbols from /lib/libc.so.7... warning: the debug information found in "/usr/lib/debug//lib/libc.so.7.debu= g" does not match "/lib/libc.so.7" (CRC mismatch). (No debugging symbols found in /lib/libc.so.7) Reading symbols from /libexec/ld-elf.so.1... warning: the debug information found in "/usr/lib/debug//libexec/ld-elf.so.1.debug" does not match "/libexec/ld-elf.so.1" (CRC mismatch). (No debugging symbols found in /libexec/ld-elf.so.1) [Switching to LWP 101646 of process 56889] 0x00000008011d0faa in _write () from /lib/libc.so.7 (gdb) bt #0 0x00000008011d0faa in _write () from /lib/libc.so.7 #1 0x00000008011b4307 in ?? () from /lib/libc.so.7 #2 0x00000008011aa57e in fflush () from /lib/libc.so.7 #3 0x0000000001039a5e in ShellWriter_WriteFmt (wr=3D, fmt=3D0x10286f4 "%s\n",=20 arg=3D0x8018a0102 "cd /usr/home/markj/src/freebsd; PATH=3D/sbin:/bin:/usr/sbin:/usr/bin MAKE_CMD=3D\"make\" make -m /usr/home/markj/src/freebsd/share/mk -f Makefile.inc1 TARGET=3Damd64 TARGET_ARCH=3Damd64 buildkernel") at /root/freebsd/contrib/bmake/job.c:798 #4 JobWriteCommand (job=3D, wr=3D, ln=3D0x80= 190cf00, ucmd=3D) at /root/freebsd/contrib/bmake/job.c:1010 #5 JobWriteCommands (job=3D, job@entry=3D0x801913fc0) at /root/freebsd/contrib/bmake/job.c:1048 #6 0x0000000001037985 in JobWriteShellCommands (job=3D0x801913fc0, gn=3D0x801905f00, out_run=3D) at /root/freebsd/contrib/bmake/job.c:1646 #7 JobStart (gn=3D, special=3Dfalse) at /root/freebsd/contrib/bmake/job.c:1725 #8 Job_Make (gn=3Dgn@entry=3D0x801905f00) at /root/freebsd/contrib/bmake/job.c:2170 #9 0x000000000103f735 in MakeStartJobs () at /root/freebsd/contrib/bmake/make.c:1028 #10 0x000000000103f4c4 in Make_Run (targs=3Dtargs@entry=3D0x7fffffffdeb0) at /root/freebsd/contrib/bmake/make.c:1391 #11 0x000000000103ce4c in runTargets () at /root/freebsd/contrib/bmake/main.c:953 #12 main_Run () at /root/freebsd/contrib/bmake/main.c:1642 #13 main (argc=3D17129376, argv=3D) at /root/freebsd/contrib/bmake/main.c:1701 So we're writing to the "job file" set up by JobWriteShellCommands(), which creates a tmpfile and unlinks it. --=20 You are receiving this mail because: You are the assignee for the bug.=