From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#46965: 28.0.50; unexec does not build (or work) Date: Sat, 6 Mar 2021 14:01:44 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39456"; mail-complaints-to="usenet@ciao.gmane.io" To: 46965@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 06 15:03:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lIXWT-000AAA-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 15:03:13 +0100 Original-Received: from localhost ([::1]:42186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIXWS-0005xf-H6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 09:03:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIXWJ-0005xL-SA for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIXWI-0000C6-2B for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:03:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIXWH-0003z8-Ug for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Mar 2021 14:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46965 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161503934715271 (code B ref -1); Sat, 06 Mar 2021 14:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2021 14:02:27 +0000 Original-Received: from localhost ([127.0.0.1]:36285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIXVi-0003yE-PB for submit@debbugs.gnu.org; Sat, 06 Mar 2021 09:02:27 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIXVg-0003y6-95 for submit@debbugs.gnu.org; Sat, 06 Mar 2021 09:02:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIXVg-0005v0-1k for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:02:24 -0500 Original-Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:46598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIXVe-0008Oq-6y for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:02:23 -0500 Original-Received: by mail-ot1-x32c.google.com with SMTP id 97so4640822otf.13 for ; Sat, 06 Mar 2021 06:02:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qc+Uj57kFeIc0MPc/FS43dR9QFlFElBBS8iRiValXPk=; b=fHv02cZ7eLsyMMy4/QH4Eb3bi9AgEZCuC1reo6lLnVTA0GBVKkdUBpPwxgNbvYUPB5 m+FyPj4uUNvyx7o2egVcn2pOqai0rrbIZRW52+8UULcyy+jjh2KnH0F5nhpIBKf5dMpM teWy8ccodNdyUFmGn70C5P72WFYGNohiMiKlsSfVhzhpirQut6BlerksqIPqY5KuLV/O nDMLm0aBh5YIlYFV5lhK1ks3H9PnI/aip2oc2Mg7fJ2n3Zsl36reI9k1sjkSIMi8mdEI 3gtTEXjBETkga4KYBAuxm7Surr1N9z11CSo5N3KMiupjbxVGq9z2UL1m6nhlyggl2oi4 egQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qc+Uj57kFeIc0MPc/FS43dR9QFlFElBBS8iRiValXPk=; b=A9IaooH5OSom0qVi9oScwJIfITLaKEDfboefYku2S2ZfSk/oox2lctLGSgYRhrUOc2 eFpHjQRkvKryWHo3LV3n9pevnm+ndEBj5HUuyWgM/L5w/JjR+eILEKPXMgTcE1wW3v5m z1HgLI2hSptjJHaJJfzTv+i+/qAkcDHYpKm54x+BtqhpWaTb1gP+2cRXIGOzjObAetfh jFpHaHnxkmaEOR75+mL8EgPyNlcDoDWPz+ry0oXufS/2cLhqHVll84BUoBnmGVb6povF Gi3wRawNxnvwthInKjCPAkVizEJy87hbA+Wd+TrNhZSoqneWVRcT9Jn0IrqSNc7D/oTc t8yg== X-Gm-Message-State: AOAM533oyBRv2nlan18vqRrQ/3NKvm/3K/bmiTz0kUHJOrO0YK8K1fdu ojlj4Mi9wRZ8b6VzMQ0Jkuiioow33/x+9+1wUnEVIwEMga9tUQ== X-Google-Smtp-Source: ABdhPJxICYMt9QFsG9HxXqsSxr/wnXdxokq5czcfITx6xrkrbJOj9nmqcZCg1PxYb68ePa/vnS6rS3lNjnQtgvob8cs= X-Received: by 2002:a05:6830:1e51:: with SMTP id e17mr12123704otj.292.1615039340529; Sat, 06 Mar 2021 06:02:20 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=pipcet@gmail.com; helo=mail-ot1-x32c.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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201630 Archived-At: On this Debian-based x86_64-pc-linux-gnu system, configuring with --with-dumping=unexec results in various errors: 1. a compilation error in pdumper.c. Easy to fix, my fault, but then there's ... 2. a segfault when running the dumped image. The problem is we can't use glibc's malloc when running a dumped image, so we need to force use of hybrid malloc. But then... 3. gnulib no longer builds with hybrid malloc. To do so requires some massaging of the gnulib files, but then... 4. gnulib redirects free() to always point to the glibc free(), even when Emacs wants to override it for hybrid malloc. To fix this, we need to rerun gnulib-tool. (1) tells me it's very unlikely anyone but me has tried to build unexec Emacs lately. The other bugs tell me that it's getting rapidly more difficult to support unexec build. But unexec does provide performance advantages over pdumper, and even over undumped builds. So, do we want to keep it as an option? RMS said so in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36649;msg=77 So I'm opening this bug for discussion, and to post the patches I need to make unexec work again.