From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28308: Build failure on FreeBSD/aarch64 Date: Thu, 19 Oct 2017 19:39:11 -0400 Message-ID: <8760bag128.fsf@users.sourceforge.net> References: <2e5f41f7-e005-c28f-c04a-79953a804f71@harmless.hu> <8760d17pyj.fsf@users.sourceforge.net> <9ae1840f-9056-8771-43fa-b27bbd2b1bd3@harmless.hu> <87k218g33g.fsf@users.sourceforge.net> <2fbe77fe-1258-cef2-32e2-f741da514151@harmless.hu> <83y3powdsv.fsf@gnu.org> <87k215lqdf.fsf@users.sourceforge.net> <837ex5thtt.fsf@gnu.org> <83tw09s148.fsf@gnu.org> <83bmmhrw84.fsf@gnu.org> <29f4260c-2fff-9051-5882-0acec819739f@harmless.hu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1508456423 11135 195.159.176.226 (19 Oct 2017 23:40:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2017 23:40:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 28308@debbugs.gnu.org To: Gergely Czuczy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 20 01:40:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KQ3-0000f4-Um for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Oct 2017 01:40:08 +0200 Original-Received: from localhost ([::1]:51587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5KQ8-0007YH-4h for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Oct 2017 19:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5KQ1-0007Y8-DM for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 19:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5KPy-0000E5-9s for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 19:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5KPy-0000Dv-4a for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 19:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e5KPx-000405-Mz for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 19:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Oct 2017 23:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28308-submit@debbugs.gnu.org id=B28308.150845636415323 (code B ref 28308); Thu, 19 Oct 2017 23:40:01 +0000 Original-Received: (at 28308) by debbugs.gnu.org; 19 Oct 2017 23:39:24 +0000 Original-Received: from localhost ([127.0.0.1]:50846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KPJ-0003z3-VV for submit@debbugs.gnu.org; Thu, 19 Oct 2017 19:39:22 -0400 Original-Received: from mail-io0-f170.google.com ([209.85.223.170]:48659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KPI-0003yl-2J for 28308@debbugs.gnu.org; Thu, 19 Oct 2017 19:39:20 -0400 Original-Received: by mail-io0-f170.google.com with SMTP id j17so11578977iod.5 for <28308@debbugs.gnu.org>; Thu, 19 Oct 2017 16:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=+2K/faNUwawao+Pg4xFAMRlctc6JRUA50LCEWerSNds=; b=joBjzUsgwxfiin8xaVDkUgve7By2DNNYoHtOBvsG0xbVoO53rkYpTHl8K4yysQSscB UBOty9BXEdbzxrYt/z4pflsCZR/vpXHhrThVEDYRs5mCFUnR4W3OFmlsB/Q3gAZ+XqIC Y30kzJqjAFAT0OMe5egQ9kDYD7i5nFiMGS9xtO1ckUZ79pV/bqr4/47bXm9LhZ2HDfKV Zd5kAO3w7Apl1nanzwbhTRhyuu5z9Uj2YwsnRbDdEPu0R7TGbwxGS/2zNQjRhvjjOWv/ c8g3vilGWioVVUn3EWTaGc4bPQI+8fBRwojWt/mViOOMRPEuxR1rxAQPAOgxEt1lLADP pLJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=+2K/faNUwawao+Pg4xFAMRlctc6JRUA50LCEWerSNds=; b=pwd7xFN/YyJEQ9T9OrzB8AgD4JGvQfC/4rDsqSKyw0+pxMsgaG2UCQHCGmkkjJU3Is QDv/GjWv6zJDt9JfrBPR6aSK54bfvxpz4hD+i7i4NDRw6qmp9Ju4YMGBgwoB0cpKttGh Nb0REJmUlKTxX94+3i7fyM0HJ232unqc9I+9xLVn/6BYSgWqBAEXPhLbjZ+UDjTDAqZT 9M3v42ZaicwdGMepNzRBoYiftrfE4X+pd37MNdEoSKABV1/gix9gJanaOUNzOs4fQrGj H8cknoIKl+QCErtPPlQDRsVNadU00Onzqi/35AnAIsEJw5iBo/42okRNyLAIqfnK3UJk /rdQ== X-Gm-Message-State: AMCzsaU/TWx/BwhJJcfLACwz5g2omgLvDFAVhm/8ZGRjMnF5yWlErc0a rAIxg/IgmfmWhYX5B43ecoxcfg== X-Google-Smtp-Source: ABhQp+SveGiP8jpb5Fsmz5BCaQ212He/tW2WEyCJQPdtH70lZxrhqTmgU0JKTrn9JYP+GIJwch6CHA== X-Received: by 10.107.132.167 with SMTP id o39mr4293927ioi.243.1508456354156; Thu, 19 Oct 2017 16:39:14 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id j71sm3394506itj.2.2017.10.19.16.39.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2017 16:39:12 -0700 (PDT) In-Reply-To: (Noam Postavsky's message of "Wed, 20 Sep 2017 15:29:15 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138732 Archived-At: --=-=-= Content-Type: text/plain Noam Postavsky writes: > (lldb) disassemble --pc > bootstrap-emacs`__start: > -> 0x40180 <+360>: mov w0, w21 > 0x40184 <+364>: mov x1, x20 > 0x40188 <+368>: mov x2, x19 > 0x4018c <+372>: bl 0x16742c ; tty_menu_display + 132 at term.c:2817 > I think that means that tty_menu_display is getting called from > __start, which should not be possible?! It seems that the debug info show by lldb is bogus, it shows two locations for tty_menu_display (see attached). --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=lldb-bogus-funs.txt Content-Description: excerpts from an lldb session (lldb) expr main (int (*)(int, char **)) $0 = 0x0000000000167474 (lldb) disassemble -s 0x167474 -e (0x167474+16) bootstrap-emacs`main: bootstrap-emacs[0x167474] <+0>: str x28, [sp, #-0x20]! bootstrap-emacs[0x167478] <+4>: stp x29, x30, [sp, #0x10] bootstrap-emacs[0x16747c] <+8>: add x29, sp, #0x10 ; =0x10 bootstrap-emacs[0x167480] <+12>: sub sp, sp, #0x1f0 ; =0x1f0 (lldb) disassemble -p -b bootstrap-emacs`tty_menu_display: -> 0x167474 <+128>: 0xf81e0ffc str x28, [sp, #-0x20]! 0x167478 <+132>: 0xa9017bfd stp x29, x30, [sp, #0x10] 0x16747c <+136>: 0x910043fd add x29, sp, #0x10 ; =0x10 0x167480 <+140>: 0xd107c3ff sub sp, sp, #0x1f0 ; =0x1f0 (lldb) expr tty_menu_display (void (*)(tty_menu *, int, int, int, int *, int, int, int, bool)) $1 = 0x00000000001573f4 (lldb) disassemble -n tty_menu_display bootstrap-emacs`tty_menu_display: 0x1573f4 <+0>: sub sp, sp, #0xa0 ; =0xa0 0x1573f8 <+4>: stp x29, x30, [sp, #0x90] 0x1573fc <+8>: add x29, sp, #0x90 ; =0x90 0x157400 <+12>: ldrb w8, [x29, #0x10] 0x157404 <+16>: adrp x9, 1497 0x157408 <+20>: add x9, x9, #0x998 ; =0x998 0x15740c <+24>: stur x0, [x29, #-0x8] 0x157410 <+28>: stur w1, [x29, #-0xc] [...] 0x1577d4 <+992>: bl 0x43498 0x1577d8 <+996>: ldp x29, x30, [sp, #0x90] 0x1577dc <+1000>: add sp, sp, #0xa0 ; =0xa0 0x1577e0 <+1004>: ret bootstrap-emacs`tty_menu_display: 0x1673f4 <+0>: add sp, sp, #0xa0 ; =0xa0 0x1673f8 <+4>: ret 0x1673fc <+8>: sub sp, sp, #0x20 ; =0x20 0x167400 <+12>: stp x29, x30, [sp, #0x10] 0x167404 <+16>: add x29, sp, #0x10 ; =0x10 0x167408 <+20>: adrp x8, 1469 0x16740c <+24>: add x8, x8, #0x470 ; =0x470 0x167410 <+28>: stur w0, [x29, #-0x4] 0x167414 <+32>: ldursw x9, [x29, #-0x4] [...] 0x167468 <+116>: bl 0x2921d8 ; Fapply + 6324 at eval.c:2364 0x16746c <+120>: ldp x29, x30, [sp], #0x10 0x167470 <+124>: ret -> 0x167474 <+128>: str x28, [sp, #-0x20]! 0x167478 <+132>: stp x29, x30, [sp, #0x10] 0x16747c <+136>: add x29, sp, #0x10 ; =0x10 0x167480 <+140>: sub sp, sp, #0x1f0 ; =0x1f0 0x167484 <+144>: mov w8, wzr 0x167488 <+148>: adrp x9, 1500 --=-=-= Content-Type: text/plain Here is a backtrace from running 'lldb -- ./bootstrap-emacs -Q -batch', with source locations generated by 'addr2line -e ./bootstrap-emacs -f -i -p'. * thread #1, name = 'bootstrap-emacs', stop reason = signal SIGSEGV: invalid address (fault address: 0x41626d78) 0x000000000022810c XFLOAT_INIT at /root/emacs/src/alloc.c:543 0x0000000000227eb0 make_float at /root/emacs/src/alloc.c:2667 0x000000000022de24 init_alloc at /root/emacs/src/alloc.c:7481 0x000000000016825c main at /root/emacs/src/emacs.c:1251 0x0000000000040190 __start at /tank/rpi3/src/lib/csu/aarch64/crt1.c:84 0x0000000040390018 ?? at ??:0 This is from revision [1: 35c893ddaf], configured with 'CFLAGS=-O0 -glldb -DUNEXELF_DEBUG=1' '--without-all' [1: 35c893ddaf]: 2017-09-12 11:08:00 -0400 Move gensym to core Elisp https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=35c893ddaf21b93677850a69709b59630bb0feb7 --=-=-=--