From owner-freebsd-current@FreeBSD.ORG Wed Oct 2 19:12:40 2013 Return-Path: Delivered-To: freebsd-current@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 ESMTP id D021B5EA; Wed, 2 Oct 2013 19:12:40 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 55F3221CA; Wed, 2 Oct 2013 19:12:38 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r92JCTMO098314; Wed, 2 Oct 2013 22:12:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r92JCTMO098314 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r92JCTHu098313; Wed, 2 Oct 2013 22:12:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 2 Oct 2013 22:12:29 +0300 From: Konstantin Belousov To: Boris Samorodov Subject: Re: [10.0-amd64 host and 9.2-i386 jail] cpio: Can't update time for... Message-ID: <20131002191229.GZ41229@kib.kiev.ua> References: <524C5781.9000500@passap.ru> <20131002174718.GY41229@kib.kiev.ua> <524C6384.6050508@passap.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zfp/xbY0l7bbsjUN" Content-Disposition: inline In-Reply-To: <524C6384.6050508@passap.ru> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: Sunpoet Po-Chuan Hsieh , FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Oct 2013 19:12:41 -0000 --zfp/xbY0l7bbsjUN Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 02, 2013 at 10:18:44PM +0400, Boris Samorodov wrote: > 02.10.2013 21:47, Konstantin Belousov =D0=C9=DB=C5=D4: > > On Wed, Oct 02, 2013 at 09:27:29PM +0400, Boris Samorodov wrote: > >> (CCing to the maintainer) > >> > >> Hi All, > >> > >> I've come across a problem and can't diagnose it. Please give me > >> an advice how to proceed. > >> > >> I have a fresh CURRENT amd64 host with 9.2 (9.1 behaves the same) > >> i386 jail. The command "/usr/bin/find -d | /usr/bin/cpio > >> -dumpl " ends with error with diagnostic "cpio: Can't upda= te > >> time for ". > >> > >> One can reproduce it by installing at 10-amd64 host poudriere, create > >> a 9-i386 jail and try to build devel/tmake port. Full log is here: > >> http://gw.wart.ru/bulk/91-i386-default/2013-10-02_14h52m08s/logs/error= s/tmake-1.13.log > >> > >> I've managed to find out that the command...: > >> ----- > >> # /usr/bin/find -d /wrkdirs/usr/ports/devel/tmake/work/tmake-1.13/lib > >> | /usr/bin/cpio -dumpl /destdir > >> ----- > >> > >> ...fails with diagnostic: "cpio: Can't update time for > >> /destdir/wrkdirs/usr/ports/devel/tmake/work/tmake-1.13/lib". > >> > >> However the following command succeeds (mind the /* after lib): > >> ----- > >> # /usr/bin/find -d /wrkdirs/usr/ports/devel/tmake/work/tmake-1.13/lib/* > >> | /usr/bin/cpio -dumpl /destdir > >> ----- > >> > >> The directory itself seems quite natural: > >> ----- > >> # ls -ldT /wrkdirs/usr/ports/devel/tmake/work/tmake-1.13/lib > >> drwxr-xr-x 53 root wheel 3264 Jan 28 05:21:45 2004 > >> /wrkdirs/usr/ports/devel/tmake/work/tmake-1.13/lib > >> ----- > >> > >> There are no problems at 10-amd64 and 10-i386 jails. > >> > >> I'm out of ideas. Thanks for your help. > > ktrace the failing invocation ? >=20 > The relevant part is here: > ftp://ftp.wart.ru/pub/misc/bsdcpio-error-cant-update-time-kdump.txt So lutimes(2) fails with EINVAL, and in fact futimes(2) failed just before with the timeval array passed from the same address. Most likely, EINVAL comes from the getutimes() check, which verifies that usec values are non-negative and less than 100000. You probably have to debug this by looking at the timeval initialization and understanding where the value come from. --zfp/xbY0l7bbsjUN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQIcBAEBAgAGBQJSTHAcAAoJEJDCuSvBvK1BAg8P/3SIEOhB7cgxDrLUBC9gdTPc dTPKInCKXktMnBhsYa6jCjtMIlL77SnK7nU2jT/rdpLNMzm4m0L6C2WpjcdnIyLc GvTHQNVWryru9MLcssBG0YP5A0hWQX+vgx79zJq13RImT0wy/EaJ0Ct1qrLXMDVN qNW2jel/rf1eGa6nrbDNs6Vm0+aZ3zyVfhh1KJus6IvZPI+CprEoOVEMAnxwFC9y +GSbUydtKbAa0R3gkqK1prSU9R2WbrQMGOH9n4e96Iv7YLQdiOziPXqYCN/O/ZKQ FGdMJgYIW7lEj23eBjT+NjBsyzaAwbbmYKL8TEMWWyOtFXWScG1aP1sQFHcPj3ft DHbUPyEBENg/2cGTvfZXS9tI9ByhTvWS32Xvjm7Ro13c54i5aOE/FU3Spk/7DKI4 9IqQrWGBV8zGKpjEhSQ5/o9ZpczjbSY+5qJEsR/j9haNfKCBIP1+QGZ5eSIP4Dyv hgVxvSJM6K8kd6gKiZtlPbrZIV1jjyWoFFnTg9ZnFQ8ynC57f5tG1gxykXaotP/M 4a+Pt89CkkKcK1bM1nao5vh760DBXRDRjHQ/PWO3dtag9fL9VZXso27KN3NyDwzp I5MwDqmDKc6qst6YXfKKQrth4NIrKx6+VIw/plSKWvz5KfAXXSi1VYO0mbCkJw7w rUvNlzW+wylDNPsrkFH6 =rgzd -----END PGP SIGNATURE----- --zfp/xbY0l7bbsjUN--