From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28308: Build failure on FreeBSD/aarch64 Date: Sat, 09 Sep 2017 10:07:12 +0300 Message-ID: <83y3powdsv.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1504940919 28401 195.159.176.226 (9 Sep 2017 07:08:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Sep 2017 07:08:39 +0000 (UTC) Cc: 28308@debbugs.gnu.org, npostavs@users.sourceforge.net To: Gergely Czuczy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 09 09:08:33 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 1dqZs7-0005lZ-1v for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Sep 2017 09:08:07 +0200 Original-Received: from localhost ([::1]:48489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqZsC-0006po-Ha for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Sep 2017 03:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqZs5-0006pK-Gl for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2017 03:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqZs2-0007Kj-Bl for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2017 03:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48100) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqZs2-0007KN-7l for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2017 03:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dqZs2-0002yq-0b for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2017 03:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Sep 2017 07:08: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.150494083511401 (code B ref 28308); Sat, 09 Sep 2017 07:08:01 +0000 Original-Received: (at 28308) by debbugs.gnu.org; 9 Sep 2017 07:07:15 +0000 Original-Received: from localhost ([127.0.0.1]:56780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqZrG-0002xp-V0 for submit@debbugs.gnu.org; Sat, 09 Sep 2017 03:07:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqZrE-0002xc-Sa for 28308@debbugs.gnu.org; Sat, 09 Sep 2017 03:07:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqZr6-0006Cm-FJ for 28308@debbugs.gnu.org; Sat, 09 Sep 2017 03:07:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqZr6-0006CI-BV; Sat, 09 Sep 2017 03:07:04 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4661 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dqZr5-0007Cf-Ox; Sat, 09 Sep 2017 03:07:04 -0400 In-reply-to: <2fbe77fe-1258-cef2-32e2-f741da514151@harmless.hu> (message from Gergely Czuczy on Sat, 9 Sep 2017 07:01:20 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:136696 Archived-At: > From: Gergely Czuczy > Date: Sat, 9 Sep 2017 07:01:20 +0200 > Cc: 28308@debbugs.gnu.org > > Process 69906 stopped > * thread #1, name = 'bootstrap-emacs', stop reason = signal SIGSEGV: > invalid address (fault address: 0x41aef578) >     frame #0: 0x0000000000228460 > bootstrap-emacs`xnrealloc(pa=0x0000000000000000, nitems=0, > item_size=1101985151) at alloc.c:939 >    936  { >    937    eassert (0 <= nitems && 0 < item_size); >    938    ptrdiff_t nbytes; > -> 939    if (INT_MULTIPLY_WRAPV (nitems, item_size, &nbytes) || > SIZE_MAX < nbytes) >    940      memory_full (SIZE_MAX); >    941    return xrealloc (pa, nbytes); >    942  } > (lldb) bt > * thread #1, name = 'bootstrap-emacs', stop reason = signal SIGSEGV: > invalid address (fault address: 0x41aef578) >   * frame #0: 0x0000000000228460 > bootstrap-emacs`xnrealloc(pa=0x0000000000000000, nitems=0, > item_size=1101985151) at alloc.c:939 >     frame #1: 0x0000000000228204 > bootstrap-emacs`xnrealloc(pa=0x000000000019ae38, nitems=42949672960, > item_size=281474976703896) at alloc.c:939 >     frame #2: 0x000000000022e208 > bootstrap-emacs`xpalloc(pa=0x0000000000000000, > nitems=0x0000000041aef57f, nitems_incr_min=1683000, > nitems_max=42949672960, item_size=281474976703896) at alloc.c:0 >     frame #3: 0x0000000000168214 > bootstrap-emacs`delete_tty(terminal=0xbc7603df25a071f3) at term.c:4463 >     frame #4: 0x0000000000040190 bootstrap-emacs`__start + 376 >     frame #5: 0x0000000040390018 ld-elf.so.1`.rtld_start at rtld_start.S:41 > (lldb) I don't understand how come xpalloc got called in this context. delete_tty on line 4463 of term,c calls delete_terminal, which only calls xfree. It doesn't allocate any memory (of course), let alone with semi-bogus arguments as shown in this backtrace. What am I missing?