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: igc, macOS avoiding signals Date: Mon, 30 Dec 2024 15:52:17 +0100 Message-ID: References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <8734i5o6wc.fsf@gmail.com> <87cyh9mpn5.fsf@gmail.com> <87zfkdz6kl.fsf@protonmail.com> <87o70tz3an.fsf@protonmail.com> <87jzbhz1ht.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14820"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Helmut Eller , Eli Zaretskii , spd@toadstyle.org, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 30 15:52: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 1tSH8R-0003iC-IO for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Dec 2024 15:52:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSH89-0006fP-52; Mon, 30 Dec 2024 09:52:29 -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 1tSH84-0006f7-AI for emacs-devel@gnu.org; Mon, 30 Dec 2024 09:52:25 -0500 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSH82-0005eL-MP; Mon, 30 Dec 2024 09:52:24 -0500 Original-Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5d122cf8dd1so15860775a12.2; Mon, 30 Dec 2024 06:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735570340; x=1736175140; 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=mu1lyyoDogAMYAz4OmWWbGFQCje++p/k4quZjQrKzmE=; b=FLyOqBPtoxgl4GjKfPchc4RJmktZ4XmOL6jicGdO5ZThBYtifGTjkPEv/MlpAnAsu4 aetmXcUlSBB+ji2PSX67W2AwznwzFXFjZdj9TsvjD3Vs2Qkz9Y6QmU03kUMo5+kuALLv 4Hy1sF52tdO6XbkkzjQXXnBamj1m6M56rFcj70F6uiOYmzjcf6XwcZZURwZr6vIiuk90 YQafROrPJ4BDWmmrf8wg3VpozPqgLY1UDTpNVEBV8wiGA8aZCktZN/uRy+Bezvs2aLU6 F82vCphZmnNdRj/2s+L96CdTDob6rWu3pGHAVigNoLtVmNWRHBkxSdy1UrOpEGcVSTs8 cbHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735570340; x=1736175140; 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=mu1lyyoDogAMYAz4OmWWbGFQCje++p/k4quZjQrKzmE=; b=rWe3qQz+n7DLH2qC8HzyaaQ088CKsYDoHYTMqy1Bf9qptyIYyZXp/cjUoEXeg1IL7G /a4dEz27f8616io6aYce0DmNjQyXZ5v8TgrKToqbNc5FK9djZgiZCXobvlO7rN+KO1/7 AIRYHrwjrQ2Bjsd6pC9WiznUPliEk29AoEuX0g8TZiwA6oKyUZ62azw3ybJdvKBa4Qhb kiAAAhMZY5naR5ErtJdtNTFphDkq9LszQQKwAPZvU/92U1Qar3YKq/aCfqHTo+oRjD5/ 1LGLpjGbQx6tz+T0UBFnZ2c+BJMuIEOhrAnghOHC7g9GUr5MlTysYT57LDmmpW9geiBC kk6w== X-Forwarded-Encrypted: i=1; AJvYcCUc80+hzd6CTDM1Jo9a1+HU/3doONLeax63qC/23O2eDj4j69rZ7Ph1y1braMUOLEkqHsQB@gnu.org, AJvYcCXgYqJZ3vyoMIYmeytOBzLPttL4EqjqCeGz98UyTa8SyOE8np0iEkTXguKzEAU0p7xNTTMcO42NhNwliXs=@gnu.org X-Gm-Message-State: AOJu0YxTpzFt5X+RidGaa+4NMIKakvfBb5I9dH1rZtf+DAY6tzHfLJAp twNmYCDeGfSK/tUwQ2Asu/2FN1YG58M9lsKzITlEm9k0ZZoLk4EbJ/0lJQ== X-Gm-Gg: ASbGncs7cpB/h/CODjO0xDHNWjOvy1fKYVPsmhEc+/4K3GyjxE2m+FTl+MPuSr6fo7G Xu+QAbrnk7S2FMbiJ9EzpbLWyn0xZU9bEhepRaT9H8oi8JL1wN7bRmoWyVx1fcpG9Ih8syxoSVn UIuaPhT7HaNL3iiRwPQe4tWzsGrLOwISS/o0SmdVKTDhyz1GBxPfVsgD7FKwsmqt2xrV24z2UuB ZYhSWnCiKg85O/4wKCTjfeTtldvDlhMuWpIMjabUM6KGYH0OUJP2Rb5liPVaXBoDcmvBbd7OWmf 8n3IDrmdQMQTj3NRngwJwQvsk10cMdTvfHSt+XpBYcxSHDDovzIUDfHlEosx6FVf X-Google-Smtp-Source: AGHT+IGVA3joFvt/zgkrOdUUnfPgxaeHHs46JOxXtcwaMex93i+LmC2RZCpe0rhCuukn/qgBh6VhFw== X-Received: by 2002:a05:6402:5187:b0:5cf:ab23:1f07 with SMTP id 4fb4d7f45d1cf-5d81ddbf7afmr33147112a12.15.1735570339942; Mon, 30 Dec 2024 06:52:19 -0800 (PST) Original-Received: from pro2 (p200300e0b7156f000dceccb84ca1ba38.dip0.t-ipconnect.de. [2003:e0:b715:6f00:dce:ccb8:4ca1:ba38]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d80701ca31sm14723560a12.88.2024.12.30.06.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2024 06:52:18 -0800 (PST) In-Reply-To: <87jzbhz1ht.fsf@protonmail.com> (Pip Cet's message of "Mon, 30 Dec 2024 14:32:07 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52a.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:327432 Archived-At: Pip Cet writes: > Does adding mps_message_poll (global_igc->arena) in the signal handler > produce a crash/deadlock for you? Last thing I'm asking you to try > today, I promise :-) :-). When I do this: 1 file changed, 1 insertion(+) src/igc.c | 1 + modified src/igc.c @@ -4966,6 +4966,7 @@ igc_alloc_dump (size_t nbytes) bool igc_busy_p (void) { + mps_message_poll (global_igc->arena); return mps_arena_busy (global_igc->arena); } with no changes, except the 1 commit reverted, I get an assertion a short time after M-x profiler-start Fatal error 6: Aborted Backtrace: 0 emacs 0x0000000104fceca8 emacs_backtrace + 104 1 emacs 0x000000010515b31c terminate_due_to_signal + 220 2 emacs 0x00000001050c090c syms_of_igc + 0 3 emacs 0x00000001051081a4 LockClaim + 144 4 emacs 0x0000000105107f78 ArenaEnterLock + 96 5 emacs 0x00000001050fa380 mps_message_poll + 24 6 emacs 0x00000001050c008c igc_busy_p + 28 7 emacs 0x00000001050b8a54 add_sample + 44 8 emacs 0x0000000104fce6fc deliver_process_signal + 64 9 libsystem_platform.dylib 0x0000000190c56e04 _sigtramp + 56 10 libsystem_c.dylib 0x0000000190ad9ba4 clock + 52 11 emacs 0x00000001050f4c10 ArenaPoll + 164 12 emacs 0x00000001050f5b68 mps_ap_fill + 160 13 emacs 0x00000001050c0f24 alloc_impl + 128 14 emacs 0x00000001050bf290 igc_add_marker + 136 15 emacs 0x0000000104fe21cc set_marker_internal + 576 16 emacs 0x0000000104fe2700 Fcopy_marker + 180 17 emacs 0x0000000104f558b0 save_window_save + 748 18 emacs 0x0000000104f555ac Fcurrent_window_configuration + 296 19 emacs 0x0000000104fe3bfc Fread_from_minibuffer + 1044 20 minibuffer-1b0f548b-1c53371b.eln 0x0000000106a680f4 F636f6d706c6574696e672d726561642d64656661 ...