From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Some experience with the igc branch Date: Wed, 25 Dec 2024 16:59:50 +0200 Message-ID: <8634ib24gp.fsf@gnu.org> References: <87o713wwsi.fsf@telefonica.net> <86seqe4j4f.fsf@gnu.org> <87ttaucub8.fsf@protonmail.com> <87pllicrpi.fsf@protonmail.com> <864j2u442i.fsf@gnu.org> <87ldw6as5f.fsf@protonmail.com> <86o7112rnq.fsf@gnu.org> <867c7p2nz4.fsf@gnu.org> <861pxx2lh7.fsf@gnu.org> <86ldw40xbo.fsf@gnu.org> <86a5cj2a0e.fsf@gnu.org> <867c7n28sf.fsf@gnu.org> <877c7n962e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33241"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, pipcet@protonmail.com, ofv@wanadoo.es, emacs-devel@gnu.org, acorallo@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 25 16:00:34 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 1tQSsE-0008V2-Dw for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Dec 2024 16:00:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQSrx-0001EW-GE; Wed, 25 Dec 2024 10:00:17 -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 1tQSrv-0001DH-Ho for emacs-devel@gnu.org; Wed, 25 Dec 2024 10:00:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQSrs-0004wg-K4; Wed, 25 Dec 2024 10:00:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SQgCb/NQvUtLMdJhNqR/2/kYgN67S4Vu01uqhhbsMZg=; b=MiOlspKg1Bz7/dMgTh1V pjiCo2Y5e07gxcxI97fEIZmidQRZQAAHppwVJcDDiif4fy4L4tW06kKHkIReRK/Lf26aYnTpnCosg LbDIIaqp47A9EFrY6NJl/8cQe7F46Dqv5Hybm+J1DzTWO0uNQHSHwypGqYMeOw9Re1qb4poh0CAQJ 0ZqGMqBZuqPAAVsdZ/6Aq+EyoX6bMFfQnUobNXv3T+o73kprxQZ/FxQmR4art2kEeG3hMCd8YaB0w yAyUEftmvoRWbjzaxbPa1F2UtnscmPH85y2JUSLXFZs4+eRvdYhtU3nS4LTuwOfiTf/ZpgB7TPgaq MGhTTVnHWh/kEg==; In-Reply-To: <877c7n962e.fsf@gmail.com> (message from Helmut Eller on Wed, 25 Dec 2024 15:43:21 +0100) 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:327104 Archived-At: > From: Helmut Eller > Cc: Eli Zaretskii , pipcet@protonmail.com, ofv@wanadoo.es, > emacs-devel@gnu.org, acorallo@gnu.org > Date: Wed, 25 Dec 2024 15:43:21 +0100 > > On Wed, Dec 25 2024, Gerd Möllmann wrote: > > > A problem occurs only, apparently (I've not read the MPS code), when the > > barrier handling code in MPS is called while being in another signal > > handler like Emacs' SIGPROF handler. > > > > > > I don't know what exactly the problem is in the end, in MPS. That would > > be a good question for Richard Brooksby, I think. > > The problem is probably simply that MPS uses a non-recursive lock. The > SIGSEGV signal handler can't claim the lock when it's already claimed. > > See: > https://memory-pool-system.readthedocs.io/en/latest/design/arena.html#locks Which means we should try talking to the MPS folks so that they provide us with the means of blocking some signals while the lock is held. Like some callback MPS would call when it takes the lock and another one when it releases the lock. I cannot imagine that Emacs is the first program that uses signals which hits this issue. E.g., can MPS-based programs be built with -pg and then profiled?