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: Unexec dumping results in "Segmentation fault" on Windows Msys2 Date: Sat, 3 Apr 2021 23:20:17 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19279"; 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 To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 03 22:21:37 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 1lSmm1-0004vF-1T for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Apr 2021 22:21:37 +0200 Original-Received: from localhost ([::1]:48134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSmm0-0003OE-22 for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Apr 2021 16:21:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSmkr-0002aK-Kt for emacs-devel@gnu.org; Sat, 03 Apr 2021 16:20:26 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:35419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSmkn-0001k8-9x for emacs-devel@gnu.org; Sat, 03 Apr 2021 16:20:25 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id a1so8903909ljp.2 for ; Sat, 03 Apr 2021 13:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=jXkI+2quYEZrJ/9YRgIZXvOh/ysN3hOHPgEL0xH4/pk=; b=JN20WA3ZlksEjqWzqKKKlj6d2366uUbYcOdIoNERMwOgtIIBvkzOPTJZyAOIIcoTcV pSlrWV0QCcHi9kXmd9HcgGujJA5ubaaI5F8sOyG1JIyChkOg6rBx5X5tibT4aZN23alH Q45osH0fqQY9twtwnZPeO7pXjTdEpUCC5xfjpKeG0vcGavGYdCmyThqupr6pr9V6ckIK mLdQF4pE5VF5hbWiUO1JxkpS8/Nhm56YjzNrX5wc5mOOEdKhsz4L4zXCtbAD/dIJ7DMR NVMCNitSngdYkrokHhSvqbkMfVsKqGT+8wx+AGWXvSxzFy3/iJ3JNnk7EL/lCF8VooZv S71A== 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:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=jXkI+2quYEZrJ/9YRgIZXvOh/ysN3hOHPgEL0xH4/pk=; b=tHm7O4lBG/T6j7EYfD7TSINd+CnMzRjISrjs+ejEDbm3SvwZtqbV0uwKOnpCS4JvTK e2aTu0GvHMYlJB8AIVYwd8wwQBJGh7xvO5Iary4tyE4nyoe8fLbAYLnqzoEDxedHzYzS mYYLFSeFiZ0SD+rAlyOMArC1bq+wNKh9mjqI/NKDqllIkTdgPXTZF7F/YyLpZs4+rKNg mqRPriTeSh10S+Zg085yDLX1FRif5dH0Tpd3kBibiRe1PEvSw6xhcRL3HfPe/rwR/rkJ kSwPhF0cjBZhHh7S9k0SZZOEYU5Xe2KxCuBAaNabAmOpmmWk4zCoQVroznmZykv6huO9 ZKqg== X-Gm-Message-State: AOAM5333dH97ICTQt2gsiMx86nDAUVhDNLZ9ooOmBusFjm3EshoIWkIM czwCt+1xXofDXM7vBWYtzjivDYBo78U+qw== X-Google-Smtp-Source: ABdhPJynPPvGtKfPdZ4VBLqM3Zmq8uBOnH92w0X1dLJ3z1yGtxBEy9N3I39ZxrTLWJbB+WNVI53Fsg== X-Received: by 2002:a05:651c:1117:: with SMTP id d23mr12323933ljo.220.1617481219097; Sat, 03 Apr 2021 13:20:19 -0700 (PDT) Original-Received: from ?IPv6:2a02:2168:b115:9d00:8d1c:7ee0:1eb:12f5? ([2a02:2168:b115:9d00:8d1c:7ee0:1eb:12f5]) by smtp.gmail.com with ESMTPSA id e30sm1225882lfc.261.2021.04.03.13.20.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Apr 2021 13:20:18 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=nikolay.kudryavtsev@gmail.com; helo=mail-lj1-x236.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, 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:267365 Archived-At: 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. Could not test the master branch since trying to build it results in: D:/Emacs/source/repo/src/pdumper.c: In function 'thaw_hash_tables': D:/Emacs/source/repo/src/pdumper.c:5472:30: error: 'pdumper_hashes' undeclared (first use in this function); did you mean 'pdumper_hook'?  5472 |   Lisp_Object hash_tables = *pdumper_hashes;       |                              ^~~~~~~~~~~~~~       |                              pdumper_hook