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: Thu, 18 Jul 2024 18:33:47 +0200 Message-ID: References: <86zfqhh2xv.fsf@gnu.org> <87msmhwhal.fsf@gmail.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="33344"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 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 Thu Jul 18 18:34:53 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 1sUU5k-0008Qn-Vr for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Jul 2024 18:34:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUU4t-0005cX-MK; Thu, 18 Jul 2024 12:33:59 -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 1sUU4o-0005cB-Cc for emacs-devel@gnu.org; Thu, 18 Jul 2024 12:33:54 -0400 Original-Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sUU4m-0003sE-FP; Thu, 18 Jul 2024 12:33:54 -0400 Original-Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a797c62565aso97752966b.2; Thu, 18 Jul 2024 09:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721320429; x=1721925229; 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=N0mqgXs2/XdsUo05pL5+S+klkO17xvo/IZTavmBZKPw=; b=NlsGQRBxTbXMqKYpEi1bREQJPTWOE8wOKnUnaHay0iIytzDNsn/iRotDggRrgnWRto sNCxAhNfyPWzY7GL5UjB0dxTCMLdZ2VsGSlEgapc4n/a3Ft3iiH4Vplz7Tr0qWfmoAOh jW8iqBvs6mklfaa9EbrLFhcYC37GI3M7LJlaWCuIJviTkV/I9FCwizED4Om9LeCNmve6 5zgMGSKN3V5jNW9FyAYROz50l5wwQkKBZrL/LTlqRHAwCB/RMBBrwtC3KqqME4BUMP2N jPijey64dxYx9I1B+khrXlA4KK0DYXHT3Pt8eCxPHuikuJaIjhZC9zVm6vVmKJV/vmxb YHWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721320429; x=1721925229; 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=N0mqgXs2/XdsUo05pL5+S+klkO17xvo/IZTavmBZKPw=; b=BMuqlVHTxVp1aVrVmk6qR6nVyLtX5lWu8YWuqEHy4WlyQcJqfa/WJHRrJ8VmyZZzSb CNr9GfBBiyjpoanBzyddlbG/7hxJ9tNfClki3ZWoxum2uQO5iFqjtA7WK6Arh/7ju27m ak3+Ox+6r/2uKoj2ORqtjPnWEL8igQt0/d5R7TmFwBFn6SuzhukdilasGrdYosJR4Pge nDG6FLww03/Pi/LgyKxQ2Vw7vvXs8Vst0WpqoanUcAEevBy6WuRknrGvrpk2QCCHMxqk i8vE7mf3OKB3AlIcMOlTo2frK2oIml5wFHdt5fMUsswBNnNu6hCHQ0rCgonaDAh1GtWT jr7A== X-Forwarded-Encrypted: i=1; AJvYcCWSNmt35jQoaynB9Z+Gx+akfSw3Xg6gkVS3aUurlOelGYzymdbG+hdwnvZlYmadtFSEd7PqQz3RhF92pqWqjy9+ppOcm+pgxMlwHOmXbemU58w= X-Gm-Message-State: AOJu0Yy/3i9xV8MsIU7Q4wujvuxgg1YRNihVE61pTDvc7yu4prT2TBJU cP479yS4hzg/WTqTMCuLRJw+bsXWVVOM0630cm3HF7ZvAE3axHhJ2yqlVQ== X-Google-Smtp-Source: AGHT+IF64yZ2sZQrYgFYy5wYliy71JEvoXbFKwGdqQL6Xc+2035hQpAw8ghxrrW/od73oyYT902XSg== X-Received: by 2002:a17:906:66ce:b0:a77:cd3c:e9b5 with SMTP id a640c23a62f3a-a7a011460e4mr375121866b.25.1721320428930; Thu, 18 Jul 2024 09:33:48 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a159.dip0.t-ipconnect.de. [79.227.161.89]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc5a38cesm581039666b.9.2024.07.18.09.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 09:33:48 -0700 (PDT) In-Reply-To: (Pip Cet's message of "Thu, 18 Jul 2024 16:05:43 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62c.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:321799 Archived-At: Pip Cet writes: >> I wonder if __builtin_unwind_init changes things. The different >> behaviour when compiled -O0 and -O, the fact that problems happen in >> "random" places which lets me suspect indicates a basic problem, and so >> on - that would fit, when MPS doesn't see something in a register. >> Maybe. > > I believe MPS relies (or used to rely) on setjmp() (or _setjmp()) to > save registers, and there was a comment in the source code about how > that mechanism might be unreliable with implementations which attempt > to encrypt the jump buffer to avoid some forms of data injection > attacks. I don't know whether macOS does that. The man page is silent about that. But it could well be. I've also read hints, without anything concrete, as usual :-/. > > https://opensource.apple.com/source/libplatform/libplatform-254.80.2/src/= setjmp/arm64/ appears to suggest some kind of "munging" happens, but it doe= sn't appear to affect x19-x28... > > Also, LLVM apparently implements __builtin_setjmp(), and I'm not sure > whether we might end up using that one. Can you run the compiler with > -E to see what the preprocessor produces? I think MPS uses _setjmp on macOS, not the builtin. >> If somone observes similar strange phenomena like I do on macOS/arm64, >> maybe also give it a try. >>=20 >> Let's see how long igc survives this time :-). > > Fingers crossed! =F0=9F=91=8D