From owner-freebsd-arm@freebsd.org Mon Aug 31 20:29:57 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 500839C7340 for ; Mon, 31 Aug 2015 20:29:57 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1DB2A123B; Mon, 31 Aug 2015 20:29:57 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by ioeu67 with SMTP id u67so29928432ioe.1; Mon, 31 Aug 2015 13:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=9s/n6uqOXmYbBMW/FdWr9kOIyzvqDEcCksufwhVla50=; b=Ua+b3naG4U6cGmrY8LguNkskOu2RFuO6tb6vLUIuGZF3FLtx04wpbDJqOubAoxTDcP DKej0M21oFjRd2A6/kiavz/bsHxivMM2F0Os8FM4+HJVoQ8Fe0gTi7UT3LfO8MEsGN1C 2Sl2yDp4U/iunkAP2UtQCZOYODOeG4Q8pmK1If7QXEc2oQK6/w/JHaUAl/8i+PM9f5Bi vlAOnVZGkR6g2/XRfBcNfLtes38ZZQyeyXIZkn7FRcavAlvJAr2+1qNCebW2rPXloe3r RP0YhcFYvFVOnkP6XB3IXIzcaOhFfodjURrCzTJmn1up3j1PuzWG6R9kt3YtSwcSTp9y kp6g== X-Received: by 10.107.165.138 with SMTP id o132mr5438543ioe.29.1441052996448; Mon, 31 Aug 2015 13:29:56 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.166.17 with HTTP; Mon, 31 Aug 2015 13:29:36 -0700 (PDT) In-Reply-To: <55E381F5.1030107@citrix.com> References: <55E22CC0.9000306@citrix.com> <52BA8254-5B14-45BC-A434-3DE3E2A9F37B@canonware.com> <55E2FC47.5070801@citrix.com> <55E381F5.1030107@citrix.com> From: Ed Maste Date: Mon, 31 Aug 2015 16:29:36 -0400 X-Google-Sender-Auth: EJ59hXf2u8-RqDe58PFBjlOQ4sE Message-ID: Subject: Re: arm64: userspace broken with jemalloc 4.0.0 To: Julien Grall Cc: freebsd-arm , Andrew Turner Content-Type: text/plain; charset=UTF-8 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: Mon, 31 Aug 2015 20:29:57 -0000 On 30 August 2015 at 18:21, Julien Grall wrote: > > > So I figured out the problem today. ls is linked to 2 libraries using local > thread storage: libxo and libc. Somehow the 2 libraries are using the same > base pointer for the storage. > > When libxo will try to realloc a pointer living in the thread storage, > jemalloc will throw an exception (the ASSERT mentioned earlier) because the > pointer is invalid. The pointer was expected to be NULL but it has been > overwritten by jemalloc earlier. Would you submit a PR for this to keep track of it while the investigation is ongoing?