From owner-freebsd-arm@FreeBSD.ORG Wed Jun 18 23:14:52 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ECB40EF0; Wed, 18 Jun 2014 23:14:52 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A4A0E2BD0; Wed, 18 Jun 2014 23:14:52 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s5INEpW2041303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Jun 2014 16:14:51 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s5INEpsO041302; Wed, 18 Jun 2014 16:14:51 -0700 (PDT) (envelope-from jmg) Date: Wed, 18 Jun 2014 16:14:51 -0700 From: John-Mark Gurney To: Nathan Whitehorn Subject: Re: AVILA getting close! Message-ID: <20140618231451.GI31367@funkthat.com> Mail-Followup-To: Nathan Whitehorn , freebsd-arm@freebsd.org References: <20140618225808.GG31367@funkthat.com> <53A21C30.7060601@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53A21C30.7060601@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 18 Jun 2014 16:14:51 -0700 (PDT) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2014 23:14:53 -0000 Nathan Whitehorn wrote this message on Wed, Jun 18, 2014 at 16:09 -0700: > > On 06/18/14 15:58, John-Mark Gurney wrote: > >So, w/ the recent couple of patches that alc has provided, I no longer > >receive kernel panics on my AVILA board! > > > >$ uname -a > >FreeBSD avila.funkthat.com 11.0-CURRENT FreeBSD 11.0-CURRENT #27 > >r267333:267349M: Wed Jun 11 09:57:58 PDT 2014 > >jmg@carbon.funkthat.com:/usr/obj/arm.armeb/usr/src.avila/sys/AVILA arm > >$ uptime > >12:15AM up 1 day, 15 mins, 2 users, load averages: 0.13, 0.11, 0.08 > > > >This survived a portsnap extract... This is all over NFS... > > > >Though the issue that I'm now having is that some binaries (newsyslog) > >and sometimes other binaries (awk, grep) core dump... > > > >I believe this is an issue w/ rtld, or related... If I compile newsyslog > >-static, it works fine... Otherwise I get a SIGILL, and that is > >because it jumps off into the weeds.. Though gdb on arm isn't very > >useful.. > > > >The trouble appears to be when resolving a symbol that hasn't been > >called yet... The trouble starts when newsyslog starts parsing a > >line that isn't a comment line and tries to strdup it... stepi'ing > >has me go into > >_rtld_bind_start -> > > _rtld_bind -> > > rlock_acquire -> > > thread_mask_set -> > > def_thread_set_flag (via function pointer) > > def_rlock_acquire -> > > atomic_add_acq_int > > > >Turning on rtld's debug doesn't tell me anything I didn't know already: > >"memchr" in "libc.so.7" ==> 0x2017af30 in "libc.so.7" > >"strdup" in "newsyslog" ==> 0x200cc8b0 in "libc.so.7" > >Bus error (core dumped) > > > >I've posted both a gdb log showing the stepi, and my copy of > >ld-elf.so.1 to: > >https://www.funkthat.com/~jmg/20140619/ > > > >Let me know if there is any additional information... > > > What happens if you set LD_BIND_NOW=1 in the environment first? That causes newsyslog to work. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."