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: Sun, 04 Apr 2021 10:11:00 +0300 Message-ID: <83im52ed8b.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7522"; 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 Sun Apr 04 09:11:57 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 1lSwvN-0001sr-7r for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Apr 2021 09:11:57 +0200 Original-Received: from localhost ([::1]:48466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSwvM-00036D-8e for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Apr 2021 03:11:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSwud-0002VC-Sg for emacs-devel@gnu.org; Sun, 04 Apr 2021 03:11:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36940) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSwud-0001Xb-Kd; Sun, 04 Apr 2021 03:11:11 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1850 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lSwub-0000ks-Oc; Sun, 04 Apr 2021 03:11:10 -0400 In-Reply-To: (message from Nikolay Kudryavtsev on Sat, 3 Apr 2021 23:20:17 +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:267379 Archived-At: > From: Nikolay Kudryavtsev > Date: Sat, 3 Apr 2021 23:20:17 +0300 > > Hello. Whenever I try to build emacs-27 branch using msys2 > --with-dumping=unexec I get: > > make[2]: *** [Makefile:296: > /d/Emacs/source/repo/lisp/emacs-lisp/macroexp.elc] Segmentation fault > make[2]: *** Waiting for unfinished jobs.... > make[2]: *** [Makefile:296: > /d/Emacs/source/repo/lisp/emacs-lisp/byte-opt.elc] Segmentation fault > make[2]: *** [Makefile:296: > /d/Emacs/source/repo/lisp/emacs-lisp/autoload.elc] Segmentation fault > make[2]: *** [Makefile:296: > /d/Emacs/source/repo/lisp/emacs-lisp/cconv.elc] Segmentation fault > make[2]: *** [Makefile:296: > /d/Emacs/source/repo/lisp/emacs-lisp/bytecomp.elc] Segmentation fault > > This only happens with the repository version. I've tried "make > extraclean" and other clean targets, they did not help. > > With the source archive it's different in that Emacs compiles fine, but > it immediately crashes silently when you run it. That's actually the > other problem I'm trying to debug, since I'm trying to find a way to get > Emacs 26 to compile on Msys2 again and I'm observing the same > Segmentation faults for any unexec Emacs versions from the repo. So this > seems like a problem with some newer Msys2 package. The only reasonable way of debugging this kind of problems is to run the crashing command under GDB, and when it crashes look for the reason(s) using the debugger. It's impossible to investigate the problem just by describing the crashes. > Could not test the master branch since trying to build it results in: Is this with unexec or with pdumper? If the latter, I just fixed that on master. P.S. Why are you trying to build the unexec version of Emacs? It is basically unmaintained, left to bitrot, so you are likely to meet problems no one is especially interested in fixing.