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 17:08:36 +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="26001"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Paul Eggert , pipcet@protonmail.com, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 18 17:09:48 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 1sUSlP-0006cU-Kq for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Jul 2024 17:09:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUSkZ-00020J-7B; Thu, 18 Jul 2024 11:08:55 -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 1sUSkO-0001zj-Bh for emacs-devel@gnu.org; Thu, 18 Jul 2024 11:08:47 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sUSkM-0001jI-F0; Thu, 18 Jul 2024 11:08:44 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2eee1384e85so11330621fa.2; Thu, 18 Jul 2024 08:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721315319; x=1721920119; 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=mgo4f1D0scmPvaQr5Gc02dO7o22bPoSs4wcTUpCKLiY=; b=luRrE2Be+52BfLYUYRfbtVtvCL+rLykehlCfdcwCyYRkuKFDbTbRuMATGUrfNhLeet VTcBSACaE8gHND3TejqipeRn14CO1vJq34CsDjbr3RGq96bQ2hdxT5dc65Sgo/E8n663 7u7nZPtPX5GHR+1dqZuO0TJ/POuETm35GPuw6K0tSxePmqdazivvKKzFEREVLugkkAqF SM42NqNLq807j2mDwScVOJIEblvmy52i4rUbaEsuUerWbK1patogZdLJ71RuRCV8gQYl 9rcBchJd5KtxzON34IEK2KwHEaby2bzonm+SmslZQAtDuooFytGEHVnPDhDQIEyxwmx9 QVlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721315319; x=1721920119; 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=mgo4f1D0scmPvaQr5Gc02dO7o22bPoSs4wcTUpCKLiY=; b=QCNMOn2TnMJiW5iJJXzcfn5sW8mAy8xc0H52G7S8WtPrLUjbA5vokv/iaFLd0YE5xP 90Aj7OEHfe53zp38j5UhVNz/LobcDXcrkjKsxDmHH1WaNlr8O6RYdPn/xtAWHzCLREmg xiYMaLjjYJKihqmSUtpsJtsa9pMgAWVA1LN9plj3rzKYsVH6XWvWV5OXLAYxmz2sxT+2 L+aOR116PE2rKtKb5eeOLNLvV6gH5h5K21NlZDIV4kPwZKeA5xwZevbBbN2nZDFJfDzG 2n7nd4UpG33zc+j/8lIKfKTovWohjk3Y7Jrpft8Ed8rM6uFeH8Bq96Xc0AfjFl4W+mr5 tc9A== X-Forwarded-Encrypted: i=1; AJvYcCX2VV8e3kZH/HtFeKjYI1c/YdumS42wKCZug+EuiGn4+Es36WAlxKMJ/f59vaiJkpnETJ/V4GkiDsnWDiIgnkomRVm4 X-Gm-Message-State: AOJu0Yye9WI30VqzhI33L7ET+TIfE2U99BYKCWJiu2elab55TJZMfLkR WbuogriYqmc84xvjLfaLexJghQRrmOA44JXCtxcggilgXvPOLcUsrphaXw== X-Google-Smtp-Source: AGHT+IGoH/R+W9mPN5wiwmDOT9eagTnyeEnDVvYvyp2NUx1NxowevxArtsPzdN0sDJoRKh2yWalR8Q== X-Received: by 2002:a2e:3a15:0:b0:2ec:5b8f:c797 with SMTP id 38308e7fff4ca-2ef05999779mr22942211fa.0.1721315318627; Thu, 18 Jul 2024 08:08:38 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a159.dip0.t-ipconnect.de. [79.227.161.89]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427d2b18420sm17042535e9.19.2024.07.18.08.08.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 08:08:38 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Wed, 17 Jul 2024 21:47:36 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x22e.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:321793 Archived-At: Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > >> Let's see if it continues crashing. > > It does :-(. Next idea. 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'm now running with a patch that adds that to MPS' stack scanning code. @@ -39,6 +39,8 @@ void StackHot(void **stackOut); /* STACK_CONTEXT_BEGIN -- save context */ =20 #define STACK_CONTEXT_BEGIN(arena) \ + BEGIN \ + __builtin_unwind_init(); \ BEGIN \ StackContextStruct _sc; \ STACK_CONTEXT_SAVE(&_sc); \ @@ -51,6 +53,7 @@ void StackHot(void **stackOut); /* STACK_CONTEXT_END -- clear context */ =20 #define STACK_CONTEXT_END(arena) \ + END; \ END; \ AVER(arena->stackWarm !=3D NULL); \ arena->stackWarm =3D NULL; \ If somone observes similar strange phenomena like I do on macOS/arm64, maybe also give it a try. Let's see how long igc survives this time :-).