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.devel Subject: Re: Unexec dumping results in "Segmentation fault" on Windows Msys2 Date: Wed, 21 Apr 2021 20:41:03 +0300 Message-ID: <83v98fpmc0.fsf@gnu.org> References: <83im52ed8b.fsf@gnu.org> <989be2e0-a090-309b-58cb-8064c6bd5aee@gmail.com> <83y2dycmgr.fsf@gnu.org> <835z0oyrct.fsf@gnu.org> <83eefby1hy.fsf@gnu.org> <64f14133-a647-7406-4908-671258038ae2@gmail.com> <834kg7xqrm.fsf@gnu.org> <79b4e022-5d46-ae76-2192-9e8594c43d8d@gmail.com> <83o8eevwym.fsf@gnu.org> <8ed0330c-482f-3f82-8b37-308328a314b5@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4905"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Nikolay Kudryavtsev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 21 19:43:30 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lZGsr-0001C5-LI for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Apr 2021 19:43:29 +0200 Original-Received: from localhost ([::1]:40496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZGsq-0005Ad-OH for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Apr 2021 13:43:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZGqg-0003oX-Sq for emacs-devel@gnu.org; Wed, 21 Apr 2021 13:41:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60645) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZGqg-0007Dv-Lk; Wed, 21 Apr 2021 13:41:14 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2093 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lZGqf-0006P5-61; Wed, 21 Apr 2021 13:41:14 -0400 In-Reply-To: <8ed0330c-482f-3f82-8b37-308328a314b5@gmail.com> (message from Nikolay Kudryavtsev on Wed, 21 Apr 2021 19:33:11 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268244 Archived-At: > From: Nikolay Kudryavtsev > Date: Wed, 21 Apr 2021 19:33:11 +0300 > Cc: emacs-devel@gnu.org > > Eli, you were correct. Msys2 developers enabled ASLR by default in > binutils 2.36 ( > https://www.msys2.org/news/#2021-01-31-aslr-enabled-by-default ). > > I was able to avoid the segfault by adding those switches to > LD_SWITCH_SYSTEM_TEMACS in src/Makefile. Adding them as generic LDFLAGS > works too. > > Maybe it's worth documenting this problem in nt/INSTALL.W64, but since > unexec is kinda deprecated I'm not entirely sure... It's much easier to teach the build process to use those switches when building for unexec, so I'm going to do that soon. > This leaves only the main branch unexec problem. Could you please reiterate what is the problem on master that is left? I understand that it is not resolved by using those 2 linker switches?