From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#60220: 29.0.60; macOS 13.1 crash shortly after starting Emacs Date: Sat, 14 Jan 2023 11:23:14 -0500 Message-ID: References: <24A595DF-81D8-47E7-90BC-FCDDB27315E8@gmail.com> <83ilhz2r14.fsf@gnu.org> <83r0wl0z6g.fsf@gnu.org> <83h6xd70mh.fsf@gnu.org> <838riiz16d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, Eli Zaretskii , eggert@cs.ucla.edu, 60220@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 14 17:24:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pGjKN-0002ZL-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Jan 2023 17:24:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGjK8-0003cR-1W; Sat, 14 Jan 2023 11:24:04 -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 1pGjK6-0003c4-Bb for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2023 11:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGjK6-0007ck-3S for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2023 11:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pGjK5-0002JR-UP for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2023 11:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jan 2023 16:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60220 X-GNU-PR-Package: emacs Original-Received: via spool by 60220-submit@debbugs.gnu.org id=B60220.16737134168856 (code B ref 60220); Sat, 14 Jan 2023 16:24:01 +0000 Original-Received: (at 60220) by debbugs.gnu.org; 14 Jan 2023 16:23:36 +0000 Original-Received: from localhost ([127.0.0.1]:55413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGjJf-0002Im-Nr for submit@debbugs.gnu.org; Sat, 14 Jan 2023 11:23:36 -0500 Original-Received: from mail-pj1-f53.google.com ([209.85.216.53]:55142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGjJb-0002IV-Md for 60220@debbugs.gnu.org; Sat, 14 Jan 2023 11:23:35 -0500 Original-Received: by mail-pj1-f53.google.com with SMTP id q64so25281233pjq.4 for <60220@debbugs.gnu.org>; Sat, 14 Jan 2023 08:23:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jK6xZkmitynXsdlmkSipQJTEhnjHMtAZDcCdydrKlAE=; b=iKn3VbF7mricoQy/6ovYXbaQ3xLqAdeKXmL1q5ipd/Y4jJOTwemGrrQwNLz5gcYUDO 1mc6kLDMgTZpIHZuViPkdbtTNyBUaRZktaLWmTykkXsTQMiK6XOfk//qesTDJTZAHjVl /rVBJCRFs8DMYgCIsPGgCcQm8Tles3OH8hp6f8LTTBX9REFg7YrdrqucQ73SJ99sLhHo as0SwN3iofrBokjQ3ms5iWX/XAjus5JsddOlHmhXz/zRLP1EITfBdLHZk/B9CsK/SBKi XSisovahlDEFojd4qa1RU63u3U4UPbY7B4VzZl8nS5eNQtsqz8x8kZ6rU3Myb6Yk8901 6XEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jK6xZkmitynXsdlmkSipQJTEhnjHMtAZDcCdydrKlAE=; b=r94QFa3aA/3WKYwSqg+Am+7wMCihSQPsh+BlLvMAxpXpEx/QbZTz3Spqz/Q+dkLnQz ml26eoTQnXJdHflblSbi8CrFfNYaRe6yeVwYos3XhvWro6gH5K4l2pO5+qopcnhDHzPU R5kCNSTtwDGAlx1L/Rsb/n/4TOtkib0Ci+OgYn8HSIRguDckaXTO8xeRa6PtnzUVoN0V D1UNc8Eqp0eQSRED0UZUDzJaoPe4llJ9ttKYVvlJ/HeDW9hYfQq8CbznEBNRESZTvpBE DhMC0lqoLlPg1ZJX1sZ0fp/NpWH18iWpspFntwRwiBLuOP8YmFz/FMxJfTQoRgBM87t8 5tZA== X-Gm-Message-State: AFqh2kpgATmGhqfBc8M3+G99isfGf8fNFk0ycb0MduqgcuYqiQabvDZB DiB/EyYohb0ah2fOu3uNOlNe8QVVVNMCv3mgeQY= X-Google-Smtp-Source: AMrXdXuKD3r+nRgKLc6U52jt8Z7LTT/dWBXAbQxo9QOiaXsfxE2tuN5Yr1ZH1UtEw3cImklwTrQKwRBHK76MZyQtzPE= X-Received: by 2002:a17:90a:5294:b0:226:ec14:a4a9 with SMTP id w20-20020a17090a529400b00226ec14a4a9mr1949891pjh.69.1673713405651; Sat, 14 Jan 2023 08:23:25 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253368 Archived-At: On Thu, Jan 12, 2023 at 6:01 AM Andrea Corallo wrote: > > Aaron Jensen writes: > > > On Tue, Jan 10, 2023 at 10:28 AM Andrea Corallo wrote: > >> > >> Eli Zaretskii writes: > >> > >> >> From: Andrea Corallo > >> >> Cc: Aaron Jensen , gerd.moellmann@gmail.com, > >> >> eggert@cs.ucla.edu, 60220@debbugs.gnu.org > >> >> Date: Wed, 04 Jan 2023 15:51:17 +0000 > >> >> > >> >> Eli Zaretskii writes: > >> >> > >> >> >> Would it make sense to use block_atimers while loading native lisp? If > >> >> >> that's a workable thing and you can send me a patch I can try it out. > >> >> > > >> >> > Andrea, can you suggest a patch along these lines for Aaron to try? > >> >> > > >> >> > Thanks. > >> >> > >> >> Hi Eli, > >> >> > >> >> sorry I'm traveling with sporadic access to the PC till next week. If > >> >> the issue is still present I'll work on it next week. > >> > > >> > Thanks in advance. > >> > >> Hi all, > >> > >> I pushed a change that should block atimers during native code loads, > >> it's in 'scratch/native-timers-blocked'. > >> > >> I haven't tested it deeply but seems to work for me. If anyone likes to > >> test it or play with it is there. > >> > >> BR > >> > >> Andrea > > > > Unfortunately, it still crashes for me with my repro (without > > restarting, I just opened Emacs and it crashed). > > Mhhh :/ , the only advice I have would be to two a printf in > 'block_atimers' and 'unblock_atimers', just to be 100% that when when we > crash we did our job of blocking the timers. Looks like it was blocked at the time of the crash: ... UNBLOCK BLOCK dyld[33354]: Assertion failed: (this->magic == kMagic), function contains, file Loader.cpp, line 144. Thanks, Aaron