From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#61960: 30.0.50; Unexec build reliably crashes during loadup Date: Sun, 05 Mar 2023 00:56:18 +0300 Message-ID: <7a6e37ed07a49a85a51c8a3a40cadc2b752a38ef.camel@yandex.ru> References: <62049aa9ffcf9f39fd423fb87cd8dc8e0b77f9b8.camel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29149"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.46.4 Cc: 61960@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 04 22:57:11 2023 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 1pYZsN-0007NA-32 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Mar 2023 22:57:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYZsF-0004DS-Qp; Sat, 04 Mar 2023 16:57:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYZsE-0004DK-Ni for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 16:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYZsE-00007p-FY for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 16:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYZsE-0006Hm-Bb for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 16:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2023 21:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61960 X-GNU-PR-Package: emacs Original-Received: via spool by 61960-submit@debbugs.gnu.org id=B61960.167796698724115 (code B ref 61960); Sat, 04 Mar 2023 21:57:02 +0000 Original-Received: (at 61960) by debbugs.gnu.org; 4 Mar 2023 21:56:27 +0000 Original-Received: from localhost ([127.0.0.1]:37934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYZre-0006Gt-QU for submit@debbugs.gnu.org; Sat, 04 Mar 2023 16:56:27 -0500 Original-Received: from forward502c.mail.yandex.net ([178.154.239.210]:39672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYZrb-0006Gh-QJ for 61960@debbugs.gnu.org; Sat, 04 Mar 2023 16:56:25 -0500 Original-Received: from myt6-fe378243d6ea.qloud-c.yandex.net (myt6-fe378243d6ea.qloud-c.yandex.net [IPv6:2a02:6b8:c12:488f:0:640:fe37:8243]) by forward502c.mail.yandex.net (Yandex) with ESMTP id E45C15E966; Sun, 5 Mar 2023 00:56:19 +0300 (MSK) Original-Received: by myt6-fe378243d6ea.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id IugFiGMb8Gk1-8wrAlW2t; Sun, 05 Mar 2023 00:56:19 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1677966979; bh=ebV4PRsunhoTSBc9gNYWns3eRLbSp48Ns7Yd2rHV5rM=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=Y/H565wqpyQLyTQGUy3RlgaPK2vGTdXdDdU32brXytTwsR1vckesDff/H912xrhcj 9XaX5Je+UNicXsFC6gvJi33oVMxd9mC32PUCziXISHXx++NQfLPdRToBtCHW3ovgcw h3LH3JoN2NAQerZ0rcwQnOdM+qPOUuZo6EJZaCno= Authentication-Results: myt6-fe378243d6ea.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257317 Archived-At: On Sat, 2023-03-04 at 21:45 +0000, Andrea Corallo wrote: > Konstantin Kharlamov writes: >=20 > > Oh, I am sorry, I posted the configuration line from the wrong emacs bu= ild. > > It's > > supposed to be: > >=20 > > --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstat= edir=3D/var - > > - > > mandir=3D/usr/share/man --with-gameuser=3D:games --with-modules --witho= ut-libotf > > -- > > without-m17n-flt --without-gconf --with-native-compilation=3Dyes --with= - > > xinput2 -- > > with-x-toolkit=3Dgtk3 --without-xaw3d --with-sound=3Dno --with-tree-sit= ter -- > > with- > > unexec --without-gpm --without-compress-install 'CFLAGS=3D-O0 -g3' >=20 > Hi Konstantin, >=20 > maybe the crash you see is not related but native-compilation is not > supposed to work with unexec builds. >=20 > I think we should really add a configure time error for this.=C2=A0 Eli c= ould > this change go to emacs-29? emacs-29 haven't got the BLOCK_ALIGN change, so is unaffected. I should note though that I'm not the reporter :) --------------- Regarding my current findings: apparently the `unexec` has always been brok= en. I built it with sanitizer and found out that the variable `bss_size_gro= wth` when doing the dump has too big size. The only difference between "bef= ore" and "after" the BLOCK_ALIGN change is that the difference "after" beca= me quite large. It was just 440 bytes before, and became 31494584 bytes aft= er. However, when built with sanitizer, sanitizer catches the problem in both c= ases, so there's that.