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: Sat, 04 Mar 2023 23:26:31 +0300 Message-ID: <16c908b437880c83d5d07cebfbe817e0dca12510.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="11005"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.46.4 To: 61960@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 04 21:27: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 1pYYTK-0002io-7l for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Mar 2023 21:27:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYYTA-0008Jd-BJ; Sat, 04 Mar 2023 15:27:04 -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 1pYYT8-0008HV-SK for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 15:27: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 1pYYT8-0003cj-KE for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 15:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYYT8-0003hd-1f for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2023 15:27: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 20:27: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.167796159714194 (code B ref 61960); Sat, 04 Mar 2023 20:27:02 +0000 Original-Received: (at 61960) by debbugs.gnu.org; 4 Mar 2023 20:26:37 +0000 Original-Received: from localhost ([127.0.0.1]:37877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYYSj-0003gs-BS for submit@debbugs.gnu.org; Sat, 04 Mar 2023 15:26:37 -0500 Original-Received: from forward502a.mail.yandex.net ([178.154.239.82]:55900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYYSg-0003gi-Kp for 61960@debbugs.gnu.org; Sat, 04 Mar 2023 15:26:36 -0500 Original-Received: from vla5-ea54f853bdd2.qloud-c.yandex.net (vla5-ea54f853bdd2.qloud-c.yandex.net [IPv6:2a02:6b8:c18:3e9f:0:640:ea54:f853]) by forward502a.mail.yandex.net (Yandex) with ESMTP id 5ACFB5E9D8 for <61960@debbugs.gnu.org>; Sat, 4 Mar 2023 23:26:32 +0300 (MSK) Original-Received: by vla5-ea54f853bdd2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id VQfxVOLblGk1-gyDNFSpz; Sat, 04 Mar 2023 23:26:32 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1677961592; bh=GKEZYhyX/y+DW/ArFJwJB0hI87/EEefDzHehhm5mD/E=; h=In-Reply-To:Date:References:To:From:Subject:Message-ID; b=QgbH0yMa8L4a0c6gpzRUgch/MLwaWW1q9ZoYjrI0STY0+iKpw8y251JLT99wJW7nk DTSoE1cSuRjpsP+57Joq/PEXnvk5BD47BsHjqU/Zz2z+L8OhRYIeQwXcFdaB9JUxSH a/iy3kx+2cNn5bwn3XHJ1+gRtp4gH4LOewZl46eo= Authentication-Results: vla5-ea54f853bdd2.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:257312 Archived-At: On Sat, 2023-03-04 at 23:05 +0300, Konstantin Kharlamov wrote: > So, I kind of reproduced the problem=E2=80=A6 But it doesn't happen relia= bly. >=20 > I reconfigured the build with the exact flags, ran `make clean` and `make= `, > and > it did fail with a `free(): invalid pointer`. >=20 > However, entering the `src/` dir and running `./temacs --batch -l loadup = -- > temacs=3Dbootstrap` doesn't reproduce crash, it finishes successfully. >=20 > Gotta figure out under what exactly conditions crash happens. UPD: did find the command that crashes: ./temacs --__aslr-disabled -batch -l loadup --temacs=3Ddump I think this command is run internally by `temacs`. I found it by running a= bpftrace command alongside the build: sudo bpftrace -e 'tracepoint:syscalls:sys_enter_exec*{ printf("pid: %d, c= omm: %s, args: ", pid, comm); join(args->argv); }'