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:02:21 +0100 Message-ID: References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <878qrxoayj.fsf@gmail.com> <8734i5o6wc.fsf@gmail.com> <87cyh9mpn5.fsf@gmail.com> <87zfkdz6kl.fsf@protonmail.com> <87o70tz3an.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="28245"; 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:03: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 1tSGMo-0007F1-G7 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Dec 2024 15:03:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSGLu-0000ri-KQ; Mon, 30 Dec 2024 09:02:38 -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 1tSGLr-0000rP-7r for emacs-devel@gnu.org; Mon, 30 Dec 2024 09:02:35 -0500 Original-Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSGLp-0007JM-MN; Mon, 30 Dec 2024 09:02:35 -0500 Original-Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-aaf57c2e0beso165687866b.3; Mon, 30 Dec 2024 06:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735567351; x=1736172151; 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=QFMXYtJRfFTAWpw51kY21CpirdsGFDuEUiCIj2YLkuk=; b=bt1xN6bNTBOSLcetRzm/Nt/GF9IvfrqPv+SJUKDCOTI3rAao6cSIeZcMct6CE9Yci5 Lk0W9FzNyw/40N7oasmTklmPWrn5cXookwuzoq+AkJzk1N8RQdbUyDr1QDlw17F8/JgA 0TiOb5LI6o2OwxCbSX8pwY5Ann1sf4fr9625asBCyvVzLuZpvDW3QraoCI3lbHObmMsk fWUIuAbByofmGk5quT7oYbshBO9HsmJ1EiuF95j11CPRIBLFLqvDXinX9n1GFFMCN6VG HVQuzoUgV6rhMa/ZxAD98roMMicVvMVXbClyUZGsbHpcUDWHVlYnlRBzmyL0BA4f1nYP tQhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735567351; x=1736172151; 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=QFMXYtJRfFTAWpw51kY21CpirdsGFDuEUiCIj2YLkuk=; b=ZT1c6TeJ5c82D9GXx/cQMfj0x5/WtP0NKtF/bZgwA9iHY1fykYIELwoLvEpU3c1cHP B5mHaBMIpAZ1ITQK/nk7dZDZlzUrsXbay511ewNRL7sMhzR8TlSnCq6uOWZB4bN5q2/4 p1ryKnIBLTGUmAKwjdq9RWqGWaOkYbeSG2Y4SJYKqlWW0KaWMP03m9wJH23hWAnX4rjE OxHt5cmxzBa18lKs4lRQPQLdVYmNh+Yw79zDooliwdlTm+b0CDFy0wMVt3NHK9xoh/0/ oaLh+VY966YFQV+eBNrRW1bISOaaNW1eadBWeQHXfIWvSbxjat6qOqZDhcFUHF0Jjpp3 2g2Q== X-Forwarded-Encrypted: i=1; AJvYcCWRxw5LSGl9zighTZ4W9MJZ+BgdulUGTVC9VIZcsayYuI+EE624YrQCQcUzV1ynI9/szMBE@gnu.org, AJvYcCXZzZ2vS9Ts5McqTkReGW1Km558orRJul31+lkN7q2/GRlMXhBCeOSdnCAJo+MvwbkjxA9+hB70yfRt2xI=@gnu.org X-Gm-Message-State: AOJu0Yw9Un25AULJH8NM4rj2fmmbOEYTjUWNbeGa4OmPMyhU1UjYeAa7 O2+8niJNjYHQP5YUJ1SuA2rD9zBbJ0saYQtVxOhvcF7h1DrDr0ToGr+Xsw== X-Gm-Gg: ASbGncucs6nz+A10LvpjAuoSftvJvZ9CDnIiI7PflyTaar9UUMjF4gwbtcr2VS4cB57 wLXvpuLK2tPsKcKzFqAtXPDsqoi4A9yjK6yBM4bkEATvncQFWIcCMV1HCYK/qVYN9N0IMb9VdjO BuiVdHvzxRgRz7/A+GlV2osnBmHIDLXY0QQMjI0pua8GeB/APHHH5x1CA/6ZrGzZAeDTbCmYKKl Zf77ifPNCQhtxTkMZ2U0H/gDI2CbI9bLl2cQe7u+Sat2ACabRs4cX6RJ+/QlAL255e5M0yhM7mX cGUAkuvC+AUhEuWurTJlC5FQ856dWGpHeSAPWLzlkuIn2KDqgYArM4ruvOkQcbwy X-Google-Smtp-Source: AGHT+IFnzM2xlJxXl2gFJT0uK10ErDYQeL9fhAMa/rlsjxnAwEzKq3gCtQxGdkMXhCBK9XMShEy2Xw== X-Received: by 2002:a17:907:6e8e:b0:aab:a0d4:ec9f with SMTP id a640c23a62f3a-aac2b84b472mr2881932666b.21.1735567344655; Mon, 30 Dec 2024 06:02:24 -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-5d80675a49fsm14690132a12.15.2024.12.30.06.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2024 06:02:23 -0800 (PST) In-Reply-To: <87o70tz3an.fsf@protonmail.com> (Pip Cet's message of "Mon, 30 Dec 2024 13:53:14 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x636.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:327422 Archived-At: Pip Cet writes: >> With >> >> modified src/profiler.c >> @@ -347,7 +347,7 @@ record_backtrace (struct profiler_log *plog, EMACS_INT count) >> add_sample (struct profiler_log *plog, EMACS_INT count) >> { >> #ifdef HAVE_MPS >> - if (igc_busy_p ()) >> + if (false) >> #else >> if (EQ (backtrace_top_function (), QAutomatic_GC)) /* bug#60237 */ >> #endif > > This is after removing gc_signal_handler_can_run, right? Right. And meanwhile it also survived the same parsing 100 times in a loop with profiling on around it. > Even if, in addition, I block signals in the SIGSEGV handler, I see > crashes here, FWIW, but not quite every time that recipe is run. It > seems to work even less reliably when rr is in use (and then I realized > I was running an optimized build so the trace was useless, sigh). > > I'd still like to see at least one crash on macOS, but there's nothing > I'm aware of that would prevent such crashes, only make them (maybe > much) less likely. For starters, fewer pages so fewer barriers :-) > > Pip Me too, but I agree with you. It should eventually freeze, there's nothing preventing it that I could point to.