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 14:34:28 +0300 Message-ID: <83y2dycmgr.fsf@gnu.org> References: <83im52ed8b.fsf@gnu.org> <989be2e0-a090-309b-58cb-8064c6bd5aee@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22780"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Nikolay Kudryavtsev , Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 04 13:36:23 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 1lT13G-0005mq-Sc for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Apr 2021 13:36:22 +0200 Original-Received: from localhost ([::1]:34818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lT13F-0001bQ-UL for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Apr 2021 07:36:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lT11a-0000fr-JO for emacs-devel@gnu.org; Sun, 04 Apr 2021 07:34:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39717) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lT11Z-0001fj-5C; Sun, 04 Apr 2021 07:34:37 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2713 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lT11Y-0005to-2P; Sun, 04 Apr 2021 07:34:36 -0400 In-Reply-To: <989be2e0-a090-309b-58cb-8064c6bd5aee@gmail.com> (message from Nikolay Kudryavtsev on Sun, 4 Apr 2021 11:41:33 +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:267387 Archived-At: > From: Nikolay Kudryavtsev > Cc: emacs-devel@gnu.org > Date: Sun, 4 Apr 2021 11:41:33 +0300 > > Yeah, I know about GDB, but was thinking that someone with more > experience than me at debugging such issues would be able to > independently confirm this. I'll try GDB eventually and report my findings. It's very inefficient (read: impractical) to debug this kind of problems remotely. And I wouldn't hold my breath expecting people to build the unexec version. > The second crash happened for unexec, it seems like (some) pdumper code > was getting built there. I can confirm that your commit fixed unexec at > least to the point that I'm getting the same segfault now. Another issue > with master I just ran into is: > > D:/Emacs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: > image.o:image.c:(.text+0x7307): undefined reference to > `rsvg_handle_set_stylesheet' > D:/Emacs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: > image.o:image.c:(.text+0x73d7): undefined reference to > `rsvg_handle_set_stylesheet' This should be fixed now. Alan, please remember the WINDOWSNT aspect when you add calls to RSVG functions never used before. We had this discussion in the past, I believe. > Doing --without-rsvg works. The current msys2 rsvg version is > librsvg-2.50.3-1. Looks like possible fallout from #44065, since a > similar result was reported there. No, because that change was never committed. It's a new problem, since yesterday.