From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: igc, macOS avoiding signals Date: Thu, 02 Jan 2025 11:00:50 +0100 Message-ID: <877c7dedrh.fsf@gmail.com> References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <8734i5o6wc.fsf@gmail.com> <87cyh9mpn5.fsf@gmail.com> <874j2l1hei.fsf@protonmail.com> <874j2lmd37.fsf@gmail.com> <87msgdkt29.fsf@gmail.com> <86h66lnjrt.fsf@gnu.org> <868qrxnfrw.fsf@gnu.org> <87a5ccl2zx.fsf@gmail.com> <86o70sm1ts.fsf@gnu.org> <87bjwrgbky.fsf@gmail.com> <865xmznb5c.fsf@gnu.org> <86wmfdk2lx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6095"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Kangas , gerd.moellmann@gmail.com, pipcet@protonmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 02 11:01:41 2025 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 1tTI1M-0001V1-R6 for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Jan 2025 11:01:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTI0g-0001oT-Fg; Thu, 02 Jan 2025 05:00:58 -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 1tTI0e-0001oL-LI for emacs-devel@gnu.org; Thu, 02 Jan 2025 05:00:56 -0500 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTI0d-0006J1-4c; Thu, 02 Jan 2025 05:00:56 -0500 Original-Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5d8c1950da7so7093641a12.3; Thu, 02 Jan 2025 02:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735812052; x=1736416852; darn=gnu.org; h=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=peE9UAIJG84BFn7YJre0Wc5HxcnCok8HtohdWU2IBJU=; b=NEMjeBBXYseCGshu1dCJO2yjZP8WJvhHwpgiqWIItpB2Xc+lDA5UbZd3TFsVh0Nnvw rFA7Ton66rFzIHn2QqqYPVotn31SLFlLM574vxRu4bnybxx12VYcPqsoj3mojPE6jd7G APZA93zf/gsCitAMaHkw6cLPC/l/UXQKTQ0/DbQ1fwDyClAV9yqhZJnoKslsBfm/LH6E 8TU99SFn3aw/UQ3l/pIuK2PwiHR+hBk148E7LmVXxHWvKM1hytFzkW8F2srKfmgm/soT AA+3V/AeAs1KxP7p2WIcEbrTE//v2FV41h//TRx4PXniP5japnFcuTyxuGCyU9wgIDMf gT0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735812052; x=1736416852; h=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=peE9UAIJG84BFn7YJre0Wc5HxcnCok8HtohdWU2IBJU=; b=SD/vCtGYLac/tYcsBHaCIFWdO4fkGEKMJrVz6JlMiioOtpLKFJzc0Be9sb0MFs7+Dq S2gj72Qo1QTcPS9h7FCo6qk4/b6Xu8dMK+V9v5SlG9Mf8TUNJ2bbVhEQk7AKoOpKaC/4 8M/TRefRnn69B5ic59FHykKqlYRWJzcZKG+FML9WdOsq82dxNal6ibphHaao2BSfXbGQ zygqmt3MkE1iMkZ4sWXAVJ43gtgzw/BEM/DrAl8/ELZDVVcnftIHk2X+5j/B9H2zWcbC 8ViLX5sKvJtS3kfQpDsEOURzXF/16BHQGGbJTbB8qkrDmeql4hJdPsnUYOZV7HUHq3Mo XxJg== X-Forwarded-Encrypted: i=1; AJvYcCVchP3MsG0sYxuNVhl8ZPiDFk25TE290GV0Fb6XpCG04PGhu+K81IXpZ9PbsVD9aC3eFn8u51+PSraCtQ==@gnu.org X-Gm-Message-State: AOJu0YymqQwpeCBWdOsLzZCfwGzMsooac70O7YlvqzBxX0XtwVbI2q+M yh+CKHF03/MQJmV7aScnUFJXTfDDXPfJ/QTRC3sNgQ5xskj7WcYu6acVcQ== X-Gm-Gg: ASbGncsOtz/EdTFHvE+NlaZJuI4YnyO+3sy6qvxTGsFktv9gQSSQEU52Mr9uYJKH47L W1LK9iD7Xr5KGyU7sUDJdJXSvY5P6lor1QPD9PpGawjWo11BJe5aRxmIWNSaEjRDcHIzPgZ5qYn 6kTm46PywafhTeDZdp9DtwJ4am8SNsEW+0UisilNOLftZu8+gQdf9aEvLVmhnkRvPtdPqrwzhCK FpopZo65KrQ0oLSsvWVwUutKReKIFXK1yyLD948U+fD4OZ+aLoTJA== X-Google-Smtp-Source: AGHT+IHl1StPlUGQk9tOdlHGo5Htlmlb6+vVQU8zIrz/U2nSPsjx67UtHG5vvbJK1dCZD+QV1Tj6HQ== X-Received: by 2002:a05:6402:50d0:b0:5d0:e826:f10a with SMTP id 4fb4d7f45d1cf-5d81dd84d4cmr38321416a12.6.1735812051820; Thu, 02 Jan 2025 02:00:51 -0800 (PST) Original-Received: from caladan ([89.107.106.84]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d806fedaf9sm18731614a12.56.2025.01.02.02.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 02:00:51 -0800 (PST) In-Reply-To: <86wmfdk2lx.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Jan 2025 11:05:14 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=eller.helmut@gmail.com; helo=mail-ed1-x52d.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:327563 Archived-At: On Thu, Jan 02 2025, Eli Zaretskii wrote: > The problem is that evidently (at least on Posix platforms), if a > program that uses MPS runs application code from a SIGPROF or a > SIGALRM or a SIGCHLD signal handler can trigger a recursive access to > the MPS arena, which causes a fatal signal if that happens while MPS > holds the arena lock. So we want to ask for a callback when MPS is > about to lock the arena, and another callback immediately after it > releases the lock. With that, we could defer the application code of > these signal handlers until after the arena is free to be accessed > again. The functions to change would most likely be AreaEnter and ArenaLeave. As alternative to callbacks, we could give the Arena a signal mask. Arenas can be created with the function mps_arena_create_k. This accepts keyword arguments. So the callbacks or signal mask could be given with a new keyword argument. Helmut