From owner-freebsd-arm@FreeBSD.ORG Wed Jun 18 22:58:10 2014 Return-Path: Delivered-To: arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02A04B46; Wed, 18 Jun 2014 22:58:09 +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 B775E2A3E; Wed, 18 Jun 2014 22:58:09 +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 s5IMw8qm041050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Jun 2014 15:58:08 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s5IMw8OC041049; Wed, 18 Jun 2014 15:58:08 -0700 (PDT) (envelope-from jmg) Date: Wed, 18 Jun 2014 15:58:08 -0700 From: John-Mark Gurney To: arm@FreeBSD.org Subject: AVILA getting close! Message-ID: <20140618225808.GG31367@funkthat.com> Mail-Followup-To: arm@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 15:58:08 -0700 (PDT) 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 22:58:10 -0000 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... Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."