From owner-freebsd-arm@FreeBSD.ORG Mon May 27 17:36:07 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 09945FF7 for ; Mon, 27 May 2013 17:36:07 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id C49E3B6 for ; Mon, 27 May 2013 17:36:06 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r4RHa2hr007526; Mon, 27 May 2013 17:36:02 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id gzsrgrmapis5vqyuq2qmu2itd2; Mon, 27 May 2013 17:36:02 +0000 (UTC) (envelope-from kientzle@freebsd.org) Subject: Re: Git crash on EABI system. Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: <20130527103114.3fbb00fb@bender.Home> Date: Mon, 27 May 2013 10:36:01 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <9A966CAF-AA93-4553-A718-C59EFF114785@freebsd.org> References: <51949698.80205@thieprojects.ch> <2290084B-D302-4489-BB01-817497901E2B@freebsd.org> <20130527103114.3fbb00fb@bender.Home> To: Andrew Turner X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2013 17:36:07 -0000 On May 27, 2013, at 2:31 AM, Andrew Turner wrote: > On Thu, 16 May 2013 05:04:29 -0400 > Tim Kientzle wrote: >=20 >>=20 >> On May 16, 2013, at 4:19 AM, Werner Thie wrote: >>=20 >>>> Has anyone else seen this from git on a clang/EABI system? >>>>=20 >>>> Assertion failed: (attr_stack->origin), function >>>> prepare_attr_stack, file attr.c, line 630. >>>>=20 >>>> Program received signal SIGABRT, Aborted. >>>> [Switching to Thread 20c03300 (LWP 100076/git)] >>>> 0x204b842c in thr_kill () from /lib/libc.so.7 >>>> (gdb) bt >>>> #0 0x204b842c in thr_kill () from /lib/libc.so.7 >>>> #1 0x2044157c in raise () from /lib/libthr.so.3 >>>> #2 0x20598130 in abort () from /lib/libc.so.7 >>>> #3 0x20574630 in __assert () from /lib/libc.so.7 >>>> #4 0x00076b28 in ?? () >>>>=20 >>>> I'm planning to do a debug build and see if I can track down any >>>> more details. >>>=20 >>> Hi Tim >>>=20 >>> just built git out of curiosity after your post on the BBone >>>=20 >>> FreeBSD beaglebone 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r250144M: >>> Sat May 4 14:18:20 CEST 2013 >>> = root@xtools:/usr/home/wthie/proj/crochet-freebsd/work/obj/arm.armv6/usr/lo= cal/src/sys/BEAGLEBONE-NOWITNESS >>> arm >>>=20 >>> git crashes exactly as advertised when cloning a project in >>>=20 >>> Assertion failed: (attr_stack->origin), function >>> prepare_attr_stack, file attr.c, line 630. >>=20 >> Thanks for verifying that. >>=20 >> Unfortunately, a debug build (make -DWITH_DEBUG) does >> not crash for me. So I clearly have more work ahead of me >> to narrow this down. >=20 > Hello Tim, >=20 > Can you test the attached patch for llvm. It should fix git to not > crash. The patch is llvm r180609 [1]. >=20 > The issue was llvm failed to correctly account for pre-indexed > loads/stores. It would then use a subtraction to get the correct > address of the last slash however it used the wrong subtract > instruction. >=20 > Andrew >=20 > [1] = http://llvm.org/viewvc/llvm-project?view=3Drevision&revision=3D180609 Starting a new image build with your patch now. I probably won't get a chance to build git and test until tomorrow at = least. Tim