From owner-freebsd-arm@freebsd.org Sun Aug 30 06:21:03 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 B443F9C09C5 for ; Sun, 30 Aug 2015 06:21:03 +0000 (UTC) (envelope-from jasone@canonware.com) Received: from canonware.com (canonware.com [204.109.63.53]) (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 9A3C71B4E; Sun, 30 Aug 2015 06:21:03 +0000 (UTC) (envelope-from jasone@canonware.com) Received: from [127.0.0.1] (lyk.canonware.com [204.109.63.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by canonware.com (Postfix) with ESMTPSA id 762912878D; Sat, 29 Aug 2015 23:14:24 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: arm64: userspace broken with jemalloc 4.0.0 From: Jason Evans In-Reply-To: <55E22CC0.9000306@citrix.com> Date: Sat, 29 Aug 2015 23:14:23 -0700 Cc: jasone@freebsd.org, andrew@fubar.geek.nz, freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <52BA8254-5B14-45BC-A434-3DE3E2A9F37B@canonware.com> References: <55E22CC0.9000306@citrix.com> To: Julien Grall X-Mailer: Apple Mail (2.2104) 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: Sun, 30 Aug 2015 06:21:03 -0000 On Aug 29, 2015, at 3:05 PM, Julien Grall = wrote: > I've built the latest freebsd master (r287263) for arm64 today. While > trying to use the userspace I hit some ASSERT in jemalloc: >=20 > # ls > : = /usr/src/freebsd/lib/libc/../../contrib/jemalloc/include/jemalloc/internal= /arena.h:571: Failed assertion: "pageind >=3D map_bias" > pid 21 (ls), uid 0: exited on signal 6 > Abort trap >=20 > It's happening every time with the command "ls". >=20 > I tried to use the previous version of jemalloc (i.e reverting > all the patches up to "Update jemalloc to version 4.0.0" included) > and everything is working. >=20 > Note that I'm using Freebsd as a Xen ARM guest although the only > difference is the version of jemalloc (4.0.0 vs 3.6.0). >=20 > Does anyone using arm64 have seen a similar ASSERT? >=20 > BTW, is there any way to rebuild only the libc rather than doing > make buildworld everytime I modified the jemalloc code? What is the page size on arm64? If it's greater than 8 KiB, I know what = the problem is and have a patch that I've already tested and can = integrate tomorrow when I'm awake enough not fat-finger it. = https://github.com/jemalloc/jemalloc/commit/5ef33a9f2b9f4fb56553529f7b31f4= f5f57ce014 Thanks, Jason