NetBSD Problem Report #53941

From martin@duskware.de  Mon Feb  4 11:25:35 2019
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 589C07A1AB
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  4 Feb 2019 11:25:35 +0000 (UTC)
Message-Id: <20190204112522.C8DAB5CC84E@emmas.aprisoft.de>
Date: Mon,  4 Feb 2019 12:25:22 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: something ate my /etc/motd
X-Send-Pr-Version: 3.95

>Number:         53941
>Category:       bin
>Synopsis:       something ate my /etc/motd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 04 11:30:00 +0000 2019
>Last-Modified:  Tue Feb 05 15:15:00 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.34
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 8.99.34 NetBSD 8.99.34 (NIGHT-OWL) #648: Mon Feb 4 07:34:25 CET 2019 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

During the last few updates (after several kernel version bumps in the last
few days) the /etc/motd file on several of my machines got truncated.

I did not spot the exact point when this happened, but there were no crashes
involved and it happened on multiple machines, so I suspect something
systematically being wrong.

>How-To-Repeat:
no idea yet

>Fix:
n/a

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/53941: something ate my motd
Date: Tue, 5 Feb 2019 16:11:30 +0100

 This seems to be a MAKE_JOBS issue. In the build log I see:

 > fgrep motd /tmp/build.log 
 --- motd ---
 #    create  etc/motd
 /usr/tools/bin/armv7eb--netbsdelf-eabihf-install -c -p -r /usr/src/etc/motd.current motd
 --- /hosts/evbearmv7hf-eb/usr/share/man/html5/motd.html ---
 --- motd ---
 #    create  etc/motd
 /usr/tools/bin/armv7eb--netbsdelf-eabihf-install -c -p -r /usr/src/etc/motd.current motd


 and invoking that command just once manually of course gives me the correct
 default motd. Seems both instances race and I somehow end up with a truncated
 version.

 Martin

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.