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: Thu, 15 Apr 2021 22:59:57 +0300 Message-ID: <834kg7xqrm.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1674"; 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 Thu Apr 15 22:02:01 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 1lX8Bc-0000Lq-JJ for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Apr 2021 22:02:00 +0200 Original-Received: from localhost ([::1]:45874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX8Bb-0006ab-MI for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Apr 2021 16:01:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX89n-00060j-TR for emacs-devel@gnu.org; Thu, 15 Apr 2021 16:00:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43632) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX89m-00040t-V5; Thu, 15 Apr 2021 16:00:06 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3048 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lX89l-0000Sk-07; Thu, 15 Apr 2021 16:00:06 -0400 In-Reply-To: <64f14133-a647-7406-4908-671258038ae2@gmail.com> (message from Nikolay Kudryavtsev on Thu, 15 Apr 2021 22:17:30 +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:268110 Archived-At: > From: Nikolay Kudryavtsev > Cc: emacs-devel@gnu.org > Date: Thu, 15 Apr 2021 22:17:30 +0300 > > Folder d:/Emacs/configurations/msys2-brake-test/src/lisp does not exist. Then please put a breakpoint in load_path_check, where it shows this message, and when it breaks, show the backtrace and the arguments (including the value of 'lpath', the argument). > (gdb) p current_thread > $1 = (struct thread_state *) 0xffe868d4df20 > (gdb) p current_thread->m_stack_bottom > Cannot access memory at address 0xffe868d4df68 Is this Emacs 28 or Emacs 27? Built with Binutils 2.36 or 2.35? What are the values of current_thread in temacs and in the dumped emacs? Here: gdb ./temacs.exe ... (gdb) start -Q (gdb) p current_thread (gdb) q gdb ./emacs.exe ... (gdb) start -Q (gdb) p current_thread (gdb) q Are the values the same? And if you start temacs several times like the above, do you always see the same values?