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 01:00:42 +0300 Message-ID: References: <62049aa9ffcf9f39fd423fb87cd8dc8e0b77f9b8.camel@yandex.ru> <7a6e37ed07a49a85a51c8a3a40cadc2b752a38ef.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="7469"; 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 23:01:14 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 1pYZwH-0001mu-Tj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Mar 2023 23:01:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYZw9-0005KY-4M; Sat, 04 Mar 2023 17:01: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 1pYZw7-0005J1-K0 for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 17:01:03 -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 1pYZw6-0000gj-LM for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 17:01:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYZw6-0006Q2-6C for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 17:01: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 22:01: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.167796724924645 (code B ref 61960); Sat, 04 Mar 2023 22:01:02 +0000 Original-Received: (at 61960) by debbugs.gnu.org; 4 Mar 2023 22:00:49 +0000 Original-Received: from localhost ([127.0.0.1]:37938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYZvs-0006PR-HJ for submit@debbugs.gnu.org; Sat, 04 Mar 2023 17:00:48 -0500 Original-Received: from forward500b.mail.yandex.net ([178.154.239.144]:47870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYZvq-0006PG-AJ for 61960@debbugs.gnu.org; Sat, 04 Mar 2023 17:00:47 -0500 Original-Received: from myt6-265321db07ea.qloud-c.yandex.net (myt6-265321db07ea.qloud-c.yandex.net [IPv6:2a02:6b8:c12:2626:0:640:2653:21db]) by forward500b.mail.yandex.net (Yandex) with ESMTP id AB3E65ECB8; Sun, 5 Mar 2023 01:00:43 +0300 (MSK) Original-Received: by myt6-265321db07ea.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id g0hmMEMdaKo1-xhW7g7pp; Sun, 05 Mar 2023 01:00:43 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1677967243; bh=QoZYP7LaKchzHD2Udc5GJobrS2R93qqfKlOYIHguATc=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=DyoQwmeaCivUP4lVCU7emPZPb3MxbOnDLkq6lqWmw8/IZG6K/SRo+hjkxzIzxX9PQ tZJmtj+UwThWqacmhW/GeTesUp2eH71Yy4cQ5rkYmCAQXtxo+4rKWpfrzNwj6umjqO TYNVOYe0wLqQmbYYPWYTslwhpMasekl6z2F7WfSg= Authentication-Results: myt6-265321db07ea.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <7a6e37ed07a49a85a51c8a3a40cadc2b752a38ef.camel@yandex.ru> 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:257318 Archived-At: On Sun, 2023-03-05 at 00:56 +0300, Konstantin Kharlamov wrote: > 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 > > > build. > > > It's > > > supposed to be: > > >=20 > > > --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localst= atedir=3D/var > > > - > > > - > > > mandir=3D/usr/share/man --with-gameuser=3D:games --with-modules --wit= hout- > > > libotf > > > -- > > > without-m17n-flt --without-gconf --with-native-compilation=3Dyes --wi= th- > > > xinput2 -- > > > with-x-toolkit=3Dgtk3 --without-xaw3d --with-sound=3Dno --with-tree-s= itter -- > > > 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= could > > this change go to emacs-29? >=20 > emacs-29 haven't got the BLOCK_ALIGN change, so is unaffected. Ah, sorry, I failed to parse your text correctly, because I'm in context of= the debugging session :) Yeah, if native compilation isn't supposed to work wit= h unexec(), it might be a good idea to disable that, sure. > I should note though that I'm not the reporter :) >=20 > --------------- >=20 > Regarding my current findings: apparently the `unexec` has always been br= oken. > I built it with sanitizer and found out that the variable `bss_size_growt= h` > when doing the dump has too big size. The only difference between "before= " and > "after" the BLOCK_ALIGN change is that the difference "after" became quit= e > large. It was just 440 bytes before, and became 31494584 bytes after. >=20 > However, when built with sanitizer, sanitizer catches the problem in both > cases, so there's that.