From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36649: 27.0.50; pure space and pdumper Date: Thu, 13 May 2021 17:08:32 +0300 Message-ID: <83a6oy20bj.fsf@gnu.org> References: <87h7svc87d.fsf@igel.home> <87sg5bt1bp.fsf@gmail.com> <4c1248b8-88cc-ca06-6bc8-9f0bb9a98c98@cs.ucla.edu> <87mtt0hupl.fsf@gnus.org> <83mtt02dyz.fsf@gnu.org> <877dk3hoko.fsf@gnus.org> <87y2cjg9mu.fsf@gnus.org> <83a6oz3lpm.fsf@gnu.org> <87lf8jg8o2.fsf@gnus.org> <838s4j3l2e.fsf@gnu.org> <87h7j7g7ft.fsf@gnus.org> <878s4jg67i.fsf@gnus.org> <834kf73iim.fsf@gnu.org> <874kf7g54z.fsf@gnus.org> <8335ur3hu8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2627"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eggert@cs.ucla.edu, rpluim@gmail.com, stefan@marxist.se, schwab@linux-m68k.org, monnier@iro.umontreal.ca, pipcet@gmail.com, 36649@debbugs.gnu.org, akrl@sdf.org To: larsi@gnus.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 13 16:13:36 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhC5o-0000Yk-0Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 16:13:36 +0200 Original-Received: from localhost ([::1]:35212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhC5m-0000wn-Su for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 10:13:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhC1P-0002e9-I0 for bug-gnu-emacs@gnu.org; Thu, 13 May 2021 10:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhC1O-0006Wk-Am for bug-gnu-emacs@gnu.org; Thu, 13 May 2021 10:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhC1O-0004Mz-5z for bug-gnu-emacs@gnu.org; Thu, 13 May 2021 10:09: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: Thu, 13 May 2021 14:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36649-submit@debbugs.gnu.org id=B36649.162091491916756 (code B ref 36649); Thu, 13 May 2021 14:09:02 +0000 Original-Received: (at 36649) by debbugs.gnu.org; 13 May 2021 14:08:39 +0000 Original-Received: from localhost ([127.0.0.1]:43986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhC0x-0004M8-U8 for submit@debbugs.gnu.org; Thu, 13 May 2021 10:08:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhC0u-0004Ll-Jm for 36649@debbugs.gnu.org; Thu, 13 May 2021 10:08:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44262) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhC0m-0006Ai-9H; Thu, 13 May 2021 10:08:24 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1896 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhC0l-0008Bo-JM; Thu, 13 May 2021 10:08:24 -0400 In-Reply-To: <8335ur3hu8.fsf@gnu.org> (message from Eli Zaretskii on Wed, 12 May 2021 21:52:31 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206441 Archived-At: > Date: Wed, 12 May 2021 21:52:31 +0300 > From: Eli Zaretskii > Cc: eggert@cs.ucla.edu, rpluim@gmail.com, stefan@marxist.se, > schwab@linux-m68k.org, monnier@iro.umontreal.ca, pipcet@gmail.com, > 36649@debbugs.gnu.org, akrl@sdf.org > > I worked with him to fix it, yes. But the problem and the fix were > not Windows specific, AFAIR. I guess there's more, and perhaps it > happens only on systems which don't use mmap for buffer text. I will > try to take a look when I have time. Looks like some memory problem: xrealloc segfaults. Don't we need to disable ASLR for unexec to work? And doesn't that require setfattr or paxctl commands to be available? If not, how do we disable ASLR in bootstrap-emacs and emacs binaries on GNU/Linux? Here's the backtrace from the crash I see: Thread 1 "bootstrap-emacs" received signal SIGSEGV, Segmentation fault. 0x00007ffff21f4917 in _int_realloc (av=av@entry=0x7ffff254ac40 , oldp=oldp@entry=0x24a73b0, oldsize=oldsize@entry=32, nb=nb@entry=144) at malloc.c:4589 4589 malloc.c: No such file or directory. (gdb) bt #0 0x00007ffff21f4917 in _int_realloc (av=av@entry=0x7ffff254ac40 , oldp=oldp@entry=0x24a73b0, oldsize=oldsize@entry=32, nb=nb@entry=144) at malloc.c:4589 #1 0x00007ffff21f80db in __GI___libc_realloc (oldmem=0x24a73c0, bytes=128) at malloc.c:3240 #2 0x0000000000664a28 in lrealloc (p=0x24a73c0, size=128) at alloc.c:1378 #3 0x0000000000663e46 in xrealloc (block=0x24a73c0, size=128) at alloc.c:804 #4 0x00000000006641f9 in xpalloc (pa=0x24a73c0, nitems=0xed8450 , nitems_incr_min=1, nitems_max=32768, item_size=1) at alloc.c:928 #5 0x0000000000658823 in regex_compile (pattern=0x8011b8 "^;;;.\\(in Emacs version\\|bytecomp version FSF\\)", size=47, posix_backtracking=false, whitespace_regexp=0x0, bufp=0xed8448 ) at regex-emacs.c:2617 #6 0x0000000000660493 in rpl_re_compile_pattern (pattern=0x8011b8 "^;;;.\\(in Emacs version\\|bytecomp version FSF\\)", length=47, posix_backtracking=false, whitespace_regexp=0x0, bufp=0xed8448 ) at regex-emacs.c:5116 #7 0x00000000006456eb in compile_pattern_1 (cp=0xed8428 , pattern=XIL(0xaa125c), translate=XIL(0x19b7125), posix=false) at search.c:123 #8 0x0000000000645b2f in compile_pattern (pattern=XIL(0xaa125c), regp=0x0, translate=XIL(0x19b7125), posix=false, multibyte=false) at search.c:237 #9 0x0000000000646707 in fast_c_string_match_ignore_case (regexp=XIL(0xaa125c), string=0x7fffffffd09d "\n;; certain of its subdirectories. Here we specify them.\n(normal-top-level-add-to-load-path '(\"vc\" \"url\" \"textmodes\" \"progmodes\" \"play\" \"org\" \"nxml\" \"net\" \"mh-e\" \"mail\" \"leim\" \"language\" \"internation"..., len=401) at search.c:497 #10 0x00000000006dc284 in safe_to_load_version (fd=5) at lread.c:1060 #11 0x00000000006dd06b in Fload (file=XIL(0x2556774), noerror=XIL(0x30), nomessage=XIL(0x30), nosuffix=XIL(0x30), must_suffix=XIL(0)) at lread.c:1398 #12 0x000000000069b971 in eval_sub (form=XIL(0x1e70b03)) at eval.c:2525 #13 0x0000000000695602 in Fprogn (body=XIL(0)) at eval.c:471 #14 0x0000000000697784 in Flet (args=XIL(0x1e70b13)) at eval.c:1057 #15 0x000000000069b451 in eval_sub (form=XIL(0x1e70b83)) at eval.c:2464 #16 0x0000000000695602 in Fprogn (body=XIL(0x1e70863)) at eval.c:471 #17 0x0000000000695636 in prog_ignore (body=XIL(0x1e70b93)) at eval.c:482 #18 0x000000000069785a in Fwhile (args=XIL(0x1e71553)) at eval.c:1078 #19 0x000000000069b451 in eval_sub (form=XIL(0x1e71563)) at eval.c:2464 #20 0x0000000000695602 in Fprogn (body=XIL(0)) at eval.c:471 #21 0x0000000000697784 in Flet (args=XIL(0x1e71573)) at eval.c:1057 ---Type to continue, or q to quit--- #22 0x000000000069b451 in eval_sub (form=XIL(0x1e71653)) at eval.c:2464 #23 0x0000000000695602 in Fprogn (body=XIL(0x1d26063)) at eval.c:471 #24 0x00000000006953c9 in Fif (args=XIL(0x1e41753)) at eval.c:427 #25 0x000000000069b451 in eval_sub (form=XIL(0x1e41763)) at eval.c:2464 #26 0x0000000000695602 in Fprogn (body=XIL(0)) at eval.c:471 #27 0x000000000069e40b in funcall_lambda (fun=XIL(0x1d03ba3), nargs=0, arg_vector=0x7fffffffde00) at eval.c:3313 #28 0x000000000069dc30 in apply_lambda (fun=XIL(0x1d03b93), args=XIL(0), count=4) at eval.c:3185 #29 0x000000000069bcd4 in eval_sub (form=XIL(0x17d0813)) at eval.c:2588 #30 0x000000000069ad2b in Feval (form=XIL(0x17d0813), lexical=XIL(0)) at eval.c:2340 #31 0x00000000005c4a3e in top_level_2 () at keyboard.c:1103 #32 0x0000000000698abb in internal_condition_case (bfun=0x5c4a1b , handlers=XIL(0x90), hfun=0x5c43dd ) at eval.c:1475 #33 0x00000000005c4a86 in top_level_1 (ignore=XIL(0)) at keyboard.c:1111 #34 0x0000000000697c09 in internal_catch (tag=XIL(0xe0d0), func=0x5c4a40 , arg=XIL(0)) at eval.c:1198 #35 0x00000000005c4967 in command_loop () at keyboard.c:1072 #36 0x00000000005c3ec4 in recursive_edit_1 () at keyboard.c:720 #37 0x00000000005c40bc in Frecursive_edit () at keyboard.c:789 #38 0x00000000005bfb4b in main (argc=9, argv=0x7fffffffe368) at emacs.c:2297 Lisp Backtrace: "load" (0xffffd570) "let" (0xffffd6f0) "while" (0xffffd8a0) "let" (0xffffdac0) "if" (0xffffdc40) "normal-top-level" (0xffffde00) (gdb)