From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36649: 27.0.50; pure space and pdumper Date: Mon, 17 May 2021 16:13:33 +0200 Message-ID: <8735ulla7m.fsf@gnus.org> References: <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> <83a6oy20bj.fsf@gnu.org> <87a6oupzn1.fsf@gnus.org> <85567d83-7ec6-c5e7-81f2-74b0b310eefc@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35453"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 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: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 17 16:14:19 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 1lie0g-0008yO-JC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 16:14:18 +0200 Original-Received: from localhost ([::1]:45596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lie0f-0004fX-Fo for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 10:14:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lie0Y-0004fJ-S2 for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 10:14:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lie0Q-0006DB-Gw for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 10:14:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lie0Q-0002mI-AB for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 10:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 May 2021 14:14: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.162126082910651 (code B ref 36649); Mon, 17 May 2021 14:14:02 +0000 Original-Received: (at 36649) by debbugs.gnu.org; 17 May 2021 14:13:49 +0000 Original-Received: from localhost ([127.0.0.1]:53310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lie0C-0002li-Ll for submit@debbugs.gnu.org; Mon, 17 May 2021 10:13:48 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:58074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lie0A-0002lU-E7 for 36649@debbugs.gnu.org; Mon, 17 May 2021 10:13:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=86GaWaaVTbp28NUuhns2XQzzhQ55b7HWbhvHz4r8BnY=; b=UtVugDWFG+x0qYbQEM/G7WwXJK tWyb9nLpPMAU597e1LPUMt6FOgEpJQeQ7rndZu0LIsNGvn4icZfN7KFegf+6tXU+5wyPEEhASEVfS DLLx3W52TD7zflVxD7/iAOwcYiEoVhnuik5ZbilOtgy9CDfKv6BHw2taYJ9JDDyWsXQs=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lidzx-0000G1-Lu; Mon, 17 May 2021 16:13:35 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEVIbDtPakO1k4Fh VTidTDe6PjlIUD////+9YGZ5AAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UFEQ01Gv2TN4QAAAGlSURB VDjLdZNBb+sgDMed0fWcbNLOT920c/RMOFcCen5S8D0Trb//R3g27RZIO6tExj//bZNQgG4oBl0/ dEMPALrkMWysl8QOYLgC8cTpb6DXjaxeHtBJKflJrFOnk5guFTyV2ppyLSVpr7p/OUANygCvYwE3 xWoDWIkdDn/uQG+S+zr8/XRtXEexc0ZEXrAhOqNjRp9d2JQCMMwcEPOmuYI3jh5Ll2ND2QY6cekx N2CPuJjMi7i2CuMIGSVoji2IRC57vpVZZ94RUToHrymI4w/orQAKgRajWlqbT6oIRGhDpERjVUr3 wkSaKK0vC2Kk+VKA8EoBONEpS5egzag++TPNbxd/jW9AOp1LPEX6VwE5SYglfZZ2fgXmB+h0qZJE iqEEy+THSiF7H1W0ObtsE9jvgmsTNGikso3JUXNETZl0eSfiaip1n0cwclF2Y/VKCtid3BktLs1d 0DJm5gsFxw0wRYbTzF/cXhL9kB4xyL3zWwApO7m/jHdg3Ctx070EsuMAOR7vCZj32/Bb230oHR+A kv0A7JfyLL783x/brwB+BY/tP0rubGCTDWEYAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA1LTE3 VDEzOjUzOjI2KzAwOjAwxDEUAAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNS0xN1QxMzo1Mzoy NiswMDowMLVsrLwAAAAASUVORK5CYII= X-Now-Playing: Jay Glass Dubs's _Nyx_: "An Ambivalent Path" In-Reply-To: <85567d83-7ec6-c5e7-81f2-74b0b310eefc@cs.ucla.edu> (Paul Eggert's message of "Mon, 17 May 2021 01:43:31 -0700") 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:206706 Archived-At: Paul Eggert writes: > If unexec is used on GNU/Linux, Emacs is supposed to switch ASLR off > by using "setfattr -n user.pax.flags -v er temacs", and if that > doesn't work by using the personality syscall and then re-execing > itself (see maybe_disable_address_randomization). Ah, thanks. My src/Makefile had ## If needed, the names of the paxctl and setfattr programs. ## On grsecurity/PaX systems, unexec will fail due to a gap between ## the bss section and the heap. Older versions need paxctl to work ## around this, newer ones setfattr. See Bug#11398 and Bug#16343. PAXCTL = SETFATTR = ## Commands to set PaX flags on dumped and not-dumped instances of Emacs. PAXCTL_dumped = PAXCTL_notdumped = because the "attr" package wasn't installed, so there was no setfattr executable. (So if we want to continue supporting unexec, we should probably add that as a configure requirement, perhaps.) With that, Emacs now fails in a different way -- instead of segfaulting, I get to: make[2]: Entering directory '/home/larsi/src/emacs/xo/lisp' ELC international/titdic-cnv.elc corrupted double-linked list Fatal error 6: Aborted Backtrace: ../src/bootstrap-emacs[0x525571] ../src/bootstrap-emacs[0x4203b6] ../src/bootstrap-emacs[0x420889] But as you say, debugging this is pretty much a waste of time. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no