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: 31.0.50; Emacs scratch/igc 6682d0e6c96 Crash on Linux, wayland Date: Wed, 04 Sep 2024 17:25:21 +0300 Message-ID: <86bk135wdq.fsf@gnu.org> References: <87y148h7of.fsf@gmail.com> <87ed5z7d1v.fsf@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25088"; mail-complaints-to="usenet@ciao.gmane.io" Cc: execvy@gmail.com, emacs-devel@gnu.org, eller.helmut@gmail.com To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 04 16:26:45 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 1slqy4-0006Io-EH for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Sep 2024 16:26:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slqxR-0005OQ-94; Wed, 04 Sep 2024 10:26:05 -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 1slqxM-00051E-IO for emacs-devel@gnu.org; Wed, 04 Sep 2024 10:26:00 -0400 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 1slqxL-0000PN-Uq; Wed, 04 Sep 2024 10:25:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=nDWCzWlzcXanKMuGZY9Vdu3+MLhBG0wOHMEL97nrlF8=; b=NHBHR4XkCFWi tyRkwnnpNAoJ8M9NXdaTGiQ0QgEj7cw6Bj1EvbZgGkIVK+Ey8WdryhgZrXpEZEOUKGy9O0OkpgbB5 xsB0vnxjjK74IBzJpuTnnA4F6Q6TzyeMWFaaLUucTg20Ahz4FAc2JJI/qlVivosj/30Doa9q1gJcR 6AF3ep3sym6bY67/hAJTvuRrbBvhqWvhstSAYoUSB8ZZKFindIMHbXdCx3HPZkz2UhKuEor5skK3h kvFoBln/lNheY6o45kCvusZ+r1tGG78FV2h0q0HtWTNGdNvuhLajTytvMN7jYVK+JUk2/Lr5IvWuf jw8ehJYKaFY1bc9oIqZ1dQ==; In-Reply-To: <87ed5z7d1v.fsf@protonmail.com> (message from Pip Cet on Wed, 04 Sep 2024 13:40:02 +0000) 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:323360 Archived-At: > Date: Wed, 04 Sep 2024 13:40:02 +0000 > From: Pip Cet > Cc: emacs-devel@gnu.org, Helmut Eller > > "Eval EXEC" writes: > > > I'm help to test scratch/igc branch, and I have a crash When I editing > > a rust file, M-x kill-process rust-analyzer, lsp-restart-workspace, > > scrolling, and moving around the rust file buffer. > > > > Sorry, I don't know how to reproduce it. The backtrace is: > > > > ``` > > (gdb) bt > > #0 0x00000000006dfe09 in record_backtrace.lto_priv () > > #1 0x00000000006e03df in deliver_profiler_signal () > > #2 > > #3 0x00000000007dea30 in sigHandle () > > #4 > > That looks like the SIGPROF hit at a very bad time, after sigHandle was > called but before it had time to lock the arena, which would have > stopped the profiler handler from accessing memory. > > Helmut, do you have any ideas? Maybe we'll have to add SIGPROF to the > SIGSEGV sa_mask after all and explicitly unblock it in the handler after > setting a "just count this" flag? Shouldn't sigHandle block all signals until it locks the arena?