From owner-freebsd-arm@freebsd.org Tue Dec 29 15:23:48 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 7D0FDA555FE for ; Tue, 29 Dec 2015 15:23:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) 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 67CA91328 for ; Tue, 29 Dec 2015 15:23:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 64703A555FD; Tue, 29 Dec 2015 15:23:48 +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 640AAA555FC for ; Tue, 29 Dec 2015 15:23:48 +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-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA15E1327 for ; Tue, 29 Dec 2015 15:23:47 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id tBTFNf9m059812 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 29 Dec 2015 17:23:41 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua tBTFNf9m059812 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id tBTFNftR059811; Tue, 29 Dec 2015 17:23:41 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 29 Dec 2015 17:23:41 +0200 From: Konstantin Belousov To: Chris Rees Cc: arm@FreeBSD.org Subject: Re: Cross building ports amd64/armv6 Message-ID: <20151229152341.GV3625@kib.kiev.ua> References: <5681AD3F.6000202@physics.org> <20151228222531.GT3625@kib.kiev.ua> <56825C37.9070805@physics.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56825C37.9070805@physics.org> User-Agent: Mutt/1.5.24 (2015-08-30) 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 autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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 15:23:48 -0000 On Tue, Dec 29, 2015 at 10:11:03AM +0000, Chris Rees wrote: > Konstantin Belousov wrote: > It happens on the amd64 system, in an armv6 jail. So this sentence means that you are running not xinstall, but qemu. Now I understand this. > > > 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 Yes, this is what I asked. I do not see kernel ever returning EFAULT for some syscall, and I do not see qemu mapping either source or destination files. You have to find somebody who knows qemu and can interpret your findings. It might be our kernel problem, but it may be the qemu issue, and investigation there must start from the qemu side. Sorry for being unhelpful.