From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 7 20:50:07 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 031D8FD2 for ; Thu, 7 Aug 2014 20:50:07 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5324251E for ; Thu, 7 Aug 2014 20:50:06 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s77Ko6om005699 for ; Thu, 7 Aug 2014 20:50:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192490] New: [build] race condition with multiple instances of cleandir in subdirectories; results in failure like "rm: fts_read: No such file or directory" Date: Thu, 07 Aug 2014 20:50:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: yaneurabeya@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2014 20:50:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192490 Bug ID: 192490 Summary: [build] race condition with multiple instances of cleandir in subdirectories; results in failure like "rm: fts_read: No such file or directory" Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: conf Assignee: freebsd-bugs@FreeBSD.org Reporter: yaneurabeya@gmail.com I've seen issues with builds (mostly on my VMware Fusion VM running FreeBSD CURRENT) where it fails to build with a false positive like the following (from http://kyua3.nyi.freebsd.org/head/data/0-LATEST/output.log): ===> usr.sbin/lpr (cleandir) --- cleandir_subdir_lastlogin --- --- cleanobj --- --- usr.bin.cleandir__D --- --- cleandir_subdir_limits --- ===> usr.bin/limits (cleandir) --- cleandir_subdir_lex --- --- cleanobj --- --- usr.sbin.cleandir__D --- --- cleandir_subdir_lmcconfig --- --- cleanobj --- --- usr.bin.cleandir__D --- --- _sub.cleandir --- ===> usr.bin/lex/lib (cleandir) --- usr.sbin.cleandir__D --- --- cleandir_subdir_lpr --- --- _sub.cleandir --- ===> usr.sbin/lpr/common_source (cleandir) --- usr.bin.cleandir__D --- --- cleandir_subdir_limits --- --- cleanobj --- --- usr.sbin.cleandir__D --- --- cleandir_subdir_lptcontrol --- ===> usr.sbin/lptcontrol (cleandir) --- usr.bin.cleandir__D --- --- cleandir_subdir_lex --- --- cleanobj --- --- usr.sbin.cleandir__D --- --- cleandir_subdir_mailstats --- ===> usr.sbin/mailstats (cleandir) --- usr.bin.cleandir__D --- --- cleanobj --- rm: fts_read: No such file or directory *** [cleanobj] Error code 1 The error shown makes sense as there are 3 instances of usr.bin.cleandir__D being run in parallel instead of one instance. I've skated around this issue before in the past by serializing the removal of ${MAKEOBJDIRPREFIX} from Makefile.inc1 when NO_CLEAN is not set, which isn't necessarily optimal as rm -Rf /usr/obj is a O(n) process in a single process, but it works 100% of the time. -- You are receiving this mail because: You are the assignee for the bug.