From owner-freebsd-arm@freebsd.org Tue Dec 29 10:28:34 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B065DA55E43 for ; Tue, 29 Dec 2015 10:28:34 +0000 (UTC) (envelope-from crees@physics.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 953421B7E for ; Tue, 29 Dec 2015 10:28:34 +0000 (UTC) (envelope-from crees@physics.org) Received: by mailman.ysv.freebsd.org (Postfix) id 924CFA55E42; Tue, 29 Dec 2015 10:28:34 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 782C4A55E41 for ; Tue, 29 Dec 2015 10:28:34 +0000 (UTC) (envelope-from crees@physics.org) Received: from mk-outboundfilter-5.mail.uk.tiscali.com (mk-outboundfilter-5.mail.uk.tiscali.com [212.74.114.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1B8561B7D for ; Tue, 29 Dec 2015 10:28:33 +0000 (UTC) (envelope-from crees@physics.org) X-Trace: 259553449/mk-outboundfilter-5.mail.uk.tiscali.com/PIPEX/$ON_NET_AUTH_ACCEPTED/Talk_Talk_Customer/2.102.6.73/-4.0/crees@physics.org X-SBRS: -4.0 X-RemoteIP: 2.102.6.73 X-IP-MAIL-FROM: crees@physics.org X-SMTP-AUTH: bayofrum@uwclub.net X-MUA: Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29 X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AiBwDOX4JWPEkGZgJeFhIBAoMPUolGtl0ihW0CgR1NAQEBAQEBBwEBAQFBP4Q0AQEBAwE4HiIBBQsLDgoJFg8JAwIBAgEnChQGDQEHAogjDAEJvRcBAQEBAQUBAQEBAQEBARcEhlaEM0yJPAEElwaPLYc9DiOFMYpHg3OEbj6FOgEBAQ X-IPAS-Result: A2AiBwDOX4JWPEkGZgJeFhIBAoMPUolGtl0ihW0CgR1NAQEBAQEBBwEBAQFBP4Q0AQEBAwE4HiIBBQsLDgoJFg8JAwIBAgEnChQGDQEHAogjDAEJvRcBAQEBAQUBAQEBAQEBARcEhlaEM0yJPAEElwaPLYc9DiOFMYpHg3OEbj6FOgEBAQ X-IronPort-AV: E=Sophos;i="5.20,494,1444690800"; d="scan'208";a="259553449" X-IP-Direction: OUT Received: from host-2-102-6-73.as13285.net (HELO pegasus.bayofrum.net) ([2.102.6.73]) by smtp.pipex.tiscali.co.uk with ESMTP; 29 Dec 2015 10:28:31 +0000 Received: from [192.168.1.181] (HESTIA.bayofrum.net [192.168.1.181]) by pegasus.bayofrum.net (Postfix) with ESMTPSA id 143E8198D3; Tue, 29 Dec 2015 10:27:13 +0000 (GMT) Message-ID: <56825C37.9070805@physics.org> Date: Tue, 29 Dec 2015 10:11:03 +0000 From: Chris Rees User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29 MIME-Version: 1.0 To: Konstantin Belousov CC: arm@FreeBSD.org Subject: Re: Cross building ports amd64/armv6 References: <5681AD3F.6000202@physics.org> <20151228222531.GT3625@kib.kiev.ua> In-Reply-To: <20151228222531.GT3625@kib.kiev.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-bayofrum-MailScanner-Information: Please contact the ISP for more information X-bayofrum-MailScanner-ID: 143E8198D3.ADA3C X-bayofrum-MailScanner: Found to be clean X-bayofrum-MailScanner-From: crees@physics.org X-Spam-Status: No X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2015 10:28:34 -0000 Konstantin Belousov wrote: > On Mon, Dec 28, 2015 at 09:44:31PM +0000, Chris Rees wrote: >> The issue I have is with the odd port that tries to install(1) >> empty files, such as lang/python27 and audio/libvorbis [2]. >> >> I can reproduce this by entering the build jail, and *on the wrkdir >> mount* touching a, installing a b. >> >> The wrkdir is created with mdconfig -a -t swap -s 3G by poudriere, >> and it doesn't happen on the zfs partition that the partition >> resides on. I've narrowed it down to this ancient optimisation >> (mmap and write if less than 8M), which is from ~r1000 [3]; if I >> disable this block of code and just use the code below it (read to >> buf, write from buf) the problem disappears. > It took an effort to understand what is your problem. Is it EFAULT > from something in install(1) ? Thanks for the quick reply. Yes, the EFAULT comes from install as far as I can tell. > Does it happen on amd64 system or on arm system ? It happens on the amd64 system, in an armv6 jail. > What are the filesystem types both for the source and destination > files locations for failing install ? This is within the same filesystem- UFS. I've discovered md has nothing to do with it-- UFS on ada0p4 also has the same issue, but only within the jail i.e. only with the armv6 (x)install binary. Doesn't happen with ZFS, even if I make a new zpool and mount it inside the jail. > Also, provide the ktrace -t '+f' / kdump output for the failing > install(1) run. ktrace doesn't work inside the jail of course, so I made this with: % sudo ktrace -t '+f' jexec 278 install wrkdirs/a wrkdirs/c https://www.bayofrum.net/~crees/scratch/pfault Hope that's enough. Chris -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.