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: Sun, 4 Apr 2021 11:41:33 +0300 Message-ID: <989be2e0-a090-309b-58cb-8064c6bd5aee@gmail.com> References: <83im52ed8b.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="20845"; 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.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 04 10:42:50 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 1lSyLK-0005Kz-C8 for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Apr 2021 10:42:50 +0200 Original-Received: from localhost ([::1]:45560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSyLJ-0002pc-B3 for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Apr 2021 04:42:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSyKY-0002PS-8t for emacs-devel@gnu.org; Sun, 04 Apr 2021 04:42:02 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:40558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSyKW-0007Ib-Py; Sun, 04 Apr 2021 04:42:02 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id u10so9811234lju.7; Sun, 04 Apr 2021 01:42:00 -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=LAGF72fhA+l3TWgP1KZ13bGnYYLC5Xt6yLzE8Mbc3bk=; b=p0PUaFtMM6BBSLYYjTcKz6/+Nvf779ENQ0+BLKWo8bKSKUjjM8vr6epD4jtSAgtmk2 Rrlnkm3blOiHgGLcvHOArhj65nmujJXSsyUI8d+9g9VhD/q6Ig+NaB3K7RXamxdAiXag t256C4gATePGrtktGQOJ9ijhYJU+iq3dYgUrNj29QeSJB7zrln1bktp8fcBQFPvJawnA O88P/mpPxU6HTT1q+rsKj5rZoO/NXzHWVU4uxbvs/s3Mhx3vVUAFBv4qfjfWCxmxboeX BDp3Lb1lX0RgaJYDUy0PL5FQ8SSuRQnnWj/BCnLujJ8d+b/6747d11bcfbCrGctVvWk8 m1Pw== 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=LAGF72fhA+l3TWgP1KZ13bGnYYLC5Xt6yLzE8Mbc3bk=; b=NoVkfRYrMzp9zfc20v5Hl3BE9XAWj98Uf8gWTDch5sp/mSKDrwQ4s961oIjG9G37zK vY1uHrVHr09oVeWeRg7WdzhulthjitXwmnfIVTRYR0EobNU/8MfFIM2QJiyCbWaM4Y9C p3neWcglx34ZUBnhauyU1lCOtjoG0V5VxJpfT/s/HwsicfLPqXd0Z49c3kJkFzn2QI/9 EB/skk/QTCHgdAwI8pY7SFiS6aWn1FE+nhatGsJytpKRT+17GJHCVnXN/FN7Gr+WPXna FdF9d1wLsN7oTTa6FDVo2nf33ElchUuxxz8+PVkNCNULuhaEq2ZY4uAZuktmuU/wBWa4 oC6Q== X-Gm-Message-State: AOAM533yUWfggUQQouzmRYVXlGUaz2RW5OfWs1UxJ0ziDXurx7d918NU sbQZaAqJ6kyTE9O80HnJdXu6wyrOj7Ld3w== X-Google-Smtp-Source: ABdhPJyuUJjBIIMXS5upwcJKnxe7DRfdRzNjkPh4quBsvmAdLngBlYAarc5WaI837DBaUJDRGr3J5w== X-Received: by 2002:a2e:bc21:: with SMTP id b33mr13378424ljf.338.1617525718259; Sun, 04 Apr 2021 01:41:58 -0700 (PDT) Original-Received: from [192.168.199.3] (broadband-46-242-11-127.ip.moscow.rt.ru. [46.242.11.127]) by smtp.gmail.com with ESMTPSA id g13sm1494026lja.124.2021.04.04.01.41.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Apr 2021 01:41:57 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev In-Reply-To: <83im52ed8b.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=nikolay.kudryavtsev@gmail.com; helo=mail-lj1-x22e.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:267385 Archived-At: 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. 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' 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. As for why am I even bothering with unexec - I started at noticing that compiling 26.3 no longer works with the newer Msys2 versions, though I was sure able to compile it before. Then I eventually tracked that it's unexec that's the problem and the reason 27 works is due to pdumper.