From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD Date: Tue, 23 Jul 2024 05:31:56 +0200 Message-ID: References: <87msmhwhal.fsf@gmail.com> <-QjTMdYbNwCUDNk0Q5XFZR2kQ0_8DHRu3A-n1Rr1_mUBhg4inwpUb3jL0lp2J1VvJcUkIQRB5v1Zy4oNePJ7V9ixJ3l91CCrb3awC_146VM=@protonmail.com> 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="11792"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Andrea Corallo , Helmut Eller , Eli Zaretskii , Paul Eggert , emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 23 05:33:04 2024 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 1sW6Gu-0002vo-4G for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Jul 2024 05:33:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sW6Fx-0001H6-EA; Mon, 22 Jul 2024 23:32:05 -0400 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 1sW6Fv-0001Gs-W1 for emacs-devel@gnu.org; Mon, 22 Jul 2024 23:32:04 -0400 Original-Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sW6Fu-0001JJ-8g; Mon, 22 Jul 2024 23:32:03 -0400 Original-Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5a167b9df7eso4929361a12.3; Mon, 22 Jul 2024 20:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721705519; x=1722310319; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GLtccHd7k3W5K88ryrfW/LgnnwQj0B4bdg3qORYxoC0=; b=iFGipR8cH1raEV7H60AI4fkGnGnB0qTzs5hSdBpXhvA1V0DdZkb1KH/Loz3p2GenT2 bkdOqtGhXqJ9LmN12D3vEKCWivqqdJByXYQMnPO44TMSmk97TqCzz2zavLr/pYPSfLGs ocTpKAZEt2FjY0K7mkVy5goy1difU0dMvHmSST7yjbOdoIVpOJHKpBNmE0Lz+scKOueW 8qY1SeGc9rRYbu61evGABQAfnNHM6LRJGqcVpvyimTFGyGwoRWz2I5CrakuR56hM7wZL GAvVXFoKB6nHGfpnJHYLpwENPFnZawEI+Hf3II1d81Ewj+vteQZgyXMTW7f5Qrofjsnl M8yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721705519; x=1722310319; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GLtccHd7k3W5K88ryrfW/LgnnwQj0B4bdg3qORYxoC0=; b=OfawsHs7iqAJJZAxlGu0NGma4nCwis8eVpjeOxc+ZwEqRdVJKtwypDi85/oX3dmFH7 T0tK2j9GKP2BD0mmzAXTnQbZZO2C2Yi3ufP8/L3XYsq2hcmVTHFjFFaHBY/I/9Oy9pG5 pCUx2gTtBcyWFvoCiRlqNTQQIQgE0Yw8+L/uyOlJFAkmZ3iHIXH8MbuU+NHNi+Lw73wo bpKsA9fPEWAYgnuDWLpjB1u19gv5+aypnd1wdsCKIjPcwuQs8Mefq34RgbuguRv+WRrw GfkKEyHa4JZ97TePzddKCgc98jJfAcyKae+FtNT6PCAM3EDmLGS+Ga1AZBsrEjG1wc4/ buWA== X-Forwarded-Encrypted: i=1; AJvYcCVFkskYdnywnLsWgwjSet23BwO44oo8KEftK9iA2c9nkvnIoB834zZZMR/SH/99DqhB6h2UX63WUFao1PcREwIaKoPQj5OF7C/x3n/lTglHUeQ= X-Gm-Message-State: AOJu0Yz9u22/IdJMYZhu0jV3Ca+/C7l/wtLeMSknS0M3swO9QHUQ8b8N Qs82MQe2vDtEfo/4egkOxngYqXX4fjzNyEknr8A+mq2dXUQBtsE5NWZVmw== X-Google-Smtp-Source: AGHT+IFhivsWJMpF4nXIaMSt+t6dljAM7osDm5at78uvqBUatZv5a9zNKQvbBunFnisL+Y5OGGsmPg== X-Received: by 2002:a17:907:980d:b0:a72:883f:f3dd with SMTP id a640c23a62f3a-a7a4c44b275mr623391766b.56.1721705518449; Mon, 22 Jul 2024 20:31:58 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e3603f.dip0.t-ipconnect.de. [217.227.96.63]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7a3c95200fsm486924766b.225.2024.07.22.20.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 20:31:57 -0700 (PDT) In-Reply-To: <-QjTMdYbNwCUDNk0Q5XFZR2kQ0_8DHRu3A-n1Rr1_mUBhg4inwpUb3jL0lp2J1VvJcUkIQRB5v1Zy4oNePJ7V9ixJ3l91CCrb3awC_146VM=@protonmail.com> (Pip Cet's message of "Tue, 23 Jul 2024 00:36:09 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x535.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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321966 Archived-At: Pip Cet writes: > On Friday, July 19th, 2024 at 04:38, Gerd M=C3=B6llmann wrote: >> Gerd M=C3=B6llmann gerd.moellmann@gmail.com writes: >>=20 >> > Andrea Corallo acorallo@gnu.org writes: >> >=20 >> > > > Let's see how long igc survives this time :-). >> > >=20 >> > > Hi Gerd, >> > >=20 >> > > if you want to use '__builtin_unwind_init' be aware that this GCC bug >> > > I've found sometime ago [1] might make the builtin ineffective. It >> > > might not effect your generated code but in case you need you can see >> > > how we work it around in 'flush_stack_call_func'. >> > >=20 >> > > Regards >> >=20 >> > Thanks, that could become important at some point on platforms other >> > than macOS. AFAIK, one cannot build Emacs with GCC on newer versions of >> > macOS because the SDK is incompatible with GCC, so GCC is out of the >> > picture. >> >=20 >> > I haven't heard yet of anyone else having problems of the sort I have >> > here on macOS on other platforms. But maybe that comes up later. >>=20 >>=20 >> It didn't help, and no more ideas at the moment :-(. > > Can you try compiling with -fno-omit-frame-pointer? I just spent > entirely too much time tracing down a bug in my build to a missing > option (of the same name) to x86_64 gcc. The frame pointer is stored > in a mangled format by setjmp() on both darwin and glibc systems, and > that caused weird problems (and since gcc generates different code > with and without "-g", I had to do that without proper debugger > support...) Thanks for letting me know! That indeed sounds like a candidate. I wonder what __builtin_unwind_init does with the frame pointer. Using it (in MPS itself) definitely has some effect on my system, although it apparently is not a complete fix. But maybe there's more than one bug. Hmm. > Anyway, I think both architectures "allow" using the frame pointer > register, so we're probably going to have to enforce that option, > which will limit us to clang and gcc compilers unless someone figures > out the configure magic... The macOS arm ABI says The ARM standard delegates certain decisions to platform designers. Apple platforms adhere to the following choices: The platforms reserve register x18. Don=E2=80=99t use this register. The frame pointer register (x29) must always address a valid frame record. Some functions =E2=80=94 such as leaf functions or tail calls =E2= =80=94 may opt not to create an entry in this list. As a result, stack traces are always meaningful, even without debug information. I'll try the -fno-omit-frame-pointer anyway. Maybe I'm misinterpreting that paragraph.