From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.devel Subject: Re: Unexec dumping results in "Segmentation fault" on Windows Msys2 Date: Thu, 15 Apr 2021 18:47:31 +0300 Message-ID: References: <83im52ed8b.fsf@gnu.org> <989be2e0-a090-309b-58cb-8064c6bd5aee@gmail.com> <83y2dycmgr.fsf@gnu.org> <835z0oyrct.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20063"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 15 17:49:53 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 1lX4Fd-00055m-13 for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Apr 2021 17:49:53 +0200 Original-Received: from localhost ([::1]:39838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX4Fc-0002QL-1U for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Apr 2021 11:49:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX4DR-00016R-Tu for emacs-devel@gnu.org; Thu, 15 Apr 2021 11:47:37 -0400 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:41482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX4DP-0002S6-VT; Thu, 15 Apr 2021 11:47:37 -0400 Original-Received: by mail-lf1-x12f.google.com with SMTP id f41so16561679lfv.8; Thu, 15 Apr 2021 08:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=egWH5qwOhVDN399qaznUn0OJ7w2DXRTLIjCiEteVEYI=; b=Sr6Z2HhoCqEnYUqXrcoIJydh5p6742Bp3GmkmmuI3NxGBH6fhZt6+eqk7/61FQo8vI BrxA7hNuuhcaK+X37t/i+HuFeU8k73NUzLSzNXl2g3WK9XMYNowlzrgu+WC3Isrd+k6T Iu5G+0qV+5VWysk4FDRD3QkFpjGq5dB7Lo0LaXufp6/yqe8cXGmAv8/ivWAV4TNzLH4P cMg1hiD0phEJrp39DkVoMwp+3Zb4AM/rRadCHvruM9c4exuKixqUvqklk2E0msxVtw3w arNM4am3vWdAbYTBWGKaVjZBmLH5EURyT/Of9+dFFYBN7LMn5tQAU+2KLYfDZzuJiRyg Utvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=egWH5qwOhVDN399qaznUn0OJ7w2DXRTLIjCiEteVEYI=; b=LKAO4qJXxkjNFbLKo3cW/mNhbhnmve5iLFpLreNpOqr01EZrwc+zQEh1yrF4tuRfLh zYchRsmRwJqWjVIhx37y4e4m4nUkIkFd1ZfzW9N5Omc4o8JwYGo3dOBfV5wJWYUkNbkl UfaD0cphSQwvH/ciU8upJutxzx7t82Z2AtNFloXRMAyVaI2jeLcmX4dhifHhn6Wc1o0Z W2bdLaCaWC7wKYSk1RAuI9fGxifoyyG35cmGh05G5oOtjOrmIgZ/0MaMQWdXI/iE5Gqf jrN9Arl/Cg9j4xKBwuztSWYYBjxbz7DFSu8rL/hKL+vod77yLEqBn+LAlIkl0fHUIP56 BZ6Q== X-Gm-Message-State: AOAM531TVUoAZ+ptXqP4Fm3xxNupcuClCOd+wsVGbA+oqZn540lZ+2/w apAJ/6wW0Kd5a7hNjcINIymdr6U9fOE= X-Google-Smtp-Source: ABdhPJw3jOCxg9bGdfW9pdw5FL4H8kmgKdXsI2+vzW1TNIJm748vGgtuVNH2qZJIUcw+YgDds/WQoA== X-Received: by 2002:ac2:58c5:: with SMTP id u5mr2879943lfo.31.1618501653457; Thu, 15 Apr 2021 08:47:33 -0700 (PDT) Original-Received: from ?IPv6:2a02:2168:b115:9d00:3380:da23:ccd0:5695? ([2a02:2168:b115:9d00:3380:da23:ccd0:5695]) by smtp.gmail.com with ESMTPSA id y20sm694418lfg.182.2021.04.15.08.47.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Apr 2021 08:47:32 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev In-Reply-To: <835z0oyrct.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=nikolay.kudryavtsev@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:268100 Archived-At: Binutils triggered segfault: $ temacs.exe -Q Warning: Lisp directory 'd:/Emacs/configurations/msys2-brake-test/src/lisp': No such file or directory Cannot open load file: No such file or directory, loadup.el (gdb) p &stack_bottom_variable $1 = (void **) 0xbd3cbff6c8 Emacs configure logs using binutils 2.35 and 2.36 both have --enable-lto and nothing in them seems to be any different between each other... Master crash: I went for bisecting hoping to find that simple localized change. It was not my intention to tease you, at least not since the second letter. ;-) I can grab as many full backtraces or do other tests as needed. It's just that the GDB session looked completely fine to me in my admittedly limited understanding of low level Emacs internals. The crash happens when bootstrap-emacs is doing dumping(same place as the other problem). Here's a couple backtraces: https://gist.githubusercontent.com/sg2002/32ea64634a89e7b407f50e29b4ab5f7e/raw/aa0bcc517e1a4de733a9dc2678f8c45daefb95f9/gistfile1.txt https://gist.githubusercontent.com/sg2002/d9cfaf1268973b20d66d79f5df575498/raw/06091019c1d30b863e6000fb642e09316d82a344/gistfile1.txt As for whether this is even repeatable with the original MinGW, I'd say probably not, but I'm going to test that and report results later.