From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gergely Czuczy Newsgroups: gmane.emacs.bugs Subject: bug#28308: Build failure on FreeBSD/aarch64 Date: Wed, 20 Sep 2017 07:51:47 +0200 Message-ID: <29f4260c-2fff-9051-5882-0acec819739f@harmless.hu> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1505886732 21020 195.159.176.226 (20 Sep 2017 05:52:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Sep 2017 05:52:12 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 Cc: 28308@debbugs.gnu.org, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 20 07:52:04 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 1duXvY-00050A-7n for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 07:52:04 +0200 Original-Received: from localhost ([::1]:46834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duXvf-00049a-DG for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 01:52:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duXva-00049Q-3s for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 01:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duXvW-0005Mr-Qm for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 01:52:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duXvW-0005Ji-L5 for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 01:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duXvW-0003pE-4B for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 01:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gergely Czuczy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2017 05:52:02 +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.150588672114697 (code B ref 28308); Wed, 20 Sep 2017 05:52:02 +0000 Original-Received: (at 28308) by debbugs.gnu.org; 20 Sep 2017 05:52:01 +0000 Original-Received: from localhost ([127.0.0.1]:48962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duXvT-0003ov-20 for submit@debbugs.gnu.org; Wed, 20 Sep 2017 01:52:01 -0400 Original-Received: from marvin.harmless.hu ([195.56.55.204]:53149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duXvQ-0003of-6l for 28308@debbugs.gnu.org; Wed, 20 Sep 2017 01:51:56 -0400 Original-Received: from 188-143-81-228.pool.digikabel.hu ([188.143.81.228] helo=[10.219.16.1]) by marvin.harmless.hu with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1duXvI-0005U2-4D; Wed, 20 Sep 2017 05:51:48 +0000 In-Reply-To: <83bmmhrw84.fsf@gnu.org> Content-Language: en-US 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:137158 Archived-At: On 2017. 09. 11. 19:17, Eli Zaretskii wrote: >> Cc: npostavs@users.sourceforge.net, 28308@debbugs.gnu.org >> From: Gergely Czuczy >> Date: Mon, 11 Sep 2017 19:12:12 +0200 >> >>> That's a call to delete_terminal, which doesn't appear in your >>> backtrace, and doesn't call xpalloc, either. So thanks, but I'm still >>> confused. Are you sure this is an unoptimized build? Is it possible >>> that we are looking at LLDB bug? >> It's the lldb debug, right. And I'm sure it's an unoptimized build, I've >> went back and checked the build flags: >> cc -Demacs  -I. -I. -I../lib -I../lib >> -I/usr/local/include/libxml2             -MMD -MF deps/.d -MP >> -Wno-switch -Wno-pointer-sign -Wno-string-plus-int >> -Wno-unknown-attributes -Wno-initializer-overrides >> -Wno-tautological-compare >> -Wno-tautological-constant-out-of-range-compare -O0 -g >> -fno-strict-aliasing  -Wl,-znocombreloc  (...) >> >> If that helps, I can create a qemu VM with this fbsd build, and give you >> the image. > Would it be possible for you to install GDB, and then repeat the same > experiment under GDB? So, here's the image for the reproduction: http://czg.harmless.hu/emacs/qemu-28308.gz You can start it with: qemu-system-aarch64 -m 4096M -cpu cortex-a57 -M virt  \                     -accel tcg,thread=single \                     -bios QEMU_EFI.fd -serial telnet::4444,server -nographic \                     -drive if=none,file=${image},id=hd0,format=raw \                     -device virtio-blk-device,drive=hd0 \                     -device e1000,netdev=net0 \                     -netdev tap,id=net0,ifname=tap0,script=/tank/rpi3/build/qemu-ifup.sh adjust the $image, and the last line for the networking, it just sets the IP address on the host device: ifname=$1 ifconfig ${ifname} inet 10.219.14.254/24 The root password is "foobar", has an sshd running, so you can later log in, tramp into it,etc. Steps to reproduce the build failure: cd /usr/ports/editors/emacs-devel setenv CFLAGS "-O0 -glldb" setenv CXXFLAGS "-O0 -glldb" make -DTRYBROKEN DISABLE_VULNERABILITIES=yes build The ports tree extracts the source under and does the actual build under work/, you will find it all there. Also, just in case, I've checked out the emacs source from github under /root/emacs/, to save you some time if that's needed. If you would like to test the build from a different checkout in ports, just update /usr/ports/editors/emacs-devel/Makefile: 1) update the GH_TAGNAME 2) rm distinfo 3) make makesum 4) rm -rf work 5) then you can start the build again I hope this helps. Best regards, Gergely