From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#43973: 28.0.50; [NS] Two crashes on macOS Date: Wed, 14 Oct 2020 11:50:29 +0300 Message-ID: References: <20201013190946.GK60347@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8128"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 43973@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 14 10:51:14 2020 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 1kScV7-0001xY-J4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 10:51:13 +0200 Original-Received: from localhost ([::1]:40340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kScV6-0004zk-JS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 04:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kScUw-0004zE-2f for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 04:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kScUv-0002t0-Ob for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 04:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kScUv-0006OW-N4 for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 04:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Oct 2020 08:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43973 X-GNU-PR-Package: emacs Original-Received: via spool by 43973-submit@debbugs.gnu.org id=B43973.160266544124553 (code B ref 43973); Wed, 14 Oct 2020 08:51:01 +0000 Original-Received: (at 43973) by debbugs.gnu.org; 14 Oct 2020 08:50:41 +0000 Original-Received: from localhost ([127.0.0.1]:50023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kScUb-0006Nx-4I for submit@debbugs.gnu.org; Wed, 14 Oct 2020 04:50:41 -0400 Original-Received: from mail-lf1-f41.google.com ([209.85.167.41]:34759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kScUY-0006Nh-Km for 43973@debbugs.gnu.org; Wed, 14 Oct 2020 04:50:39 -0400 Original-Received: by mail-lf1-f41.google.com with SMTP id z2so2852923lfr.1 for <43973@debbugs.gnu.org>; Wed, 14 Oct 2020 01:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=16wqzY7tr+lUAsHvJbxAqoHcPDQV40+Imgg3tY4tsb0=; b=Bxiets3gpL7q1ejc4DQBbiC28k1atR0w6EK90yYItetNjFH+KgebAYKvbLYnfq3oTp gJIVeZlkHCp1n3+XqZyMsePrfSpc7xKOuv/6Qj8zycCV3KKtg8ZjF6QoixH895dfOJTK KBWm0YVmpyyJGpvVMZRHDUJxmZZhHiTlaolb9NwrI3FuW5Fhjgbq/7rfYFVI8zy1TcXO SJ41jZzJcOVeBXJrj0lpGVmxHWcBL7zjIA43wsq9sbRtiP77WqGsigEvi0lrHaoZHdCi roXPzkYKD+9QQyPvsPMLTU1ywR6OAiK07tjYLp3Zr5301h64FVZxOnIXc20qCgbOwMJB xTWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=16wqzY7tr+lUAsHvJbxAqoHcPDQV40+Imgg3tY4tsb0=; b=B56xxw6P4E8ViToX/tQ2EnEK24z9kYCBy+ApFkSejtN3lPHtfH8RLkDp0DtNlWV+ru yAgpf1iy5j9rnmR3zQAKdNPuR9GGUoOv7gnneV8bB5VwwFTlIx1O+9bAVRQvCc3iITxQ 1EWTI+g0DzWivDvgemH8hF7SHguTMPhTUoy0io7WxpVT7Oe1z7jtkeVyQt2Ex2ANNcLq oMSrOCPfvpUeY4IxHQDMHSjTT2zfdu5KVUEHrmtxvpJr/FH1pWqEGwS+In+Eg9qaGBd8 vnweo9BAvuwvXmg6zB5soLLq2iiJBBHWCFNIa8x0/2bWCez+0IoEgZO5ExLEYKo19MpP PVJw== X-Gm-Message-State: AOAM532OY9sKiVa+bpg5kKgvWDTlNzJ38BFHV1GqMgYc9CRt/jrPbKR7 GEVTHFxFJBF4qanC0Ub0uUp1H8udLd4= X-Google-Smtp-Source: ABdhPJz72ZtEH9Eyo2JruI/9nuwg4fBzBCdJfe+gStSfXFlINsM3xvtFl9yOeLqjJhS1ikOFs+e8wA== X-Received: by 2002:ac2:58f8:: with SMTP id v24mr962634lfo.520.1602665432207; Wed, 14 Oct 2020 01:50:32 -0700 (PDT) Original-Received: from muffinmac (102-26-207-82.ip.ukrtel.net. [82.207.26.102]) by smtp.gmail.com with ESMTPSA id 131sm873577lff.198.2020.10.14.01.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 01:50:31 -0700 (PDT) In-Reply-To: <20201013190946.GK60347@breton.holly.idiocy.org> (Alan Third's message of "Tue, 13 Oct 2020 20:09:46 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:190493 Archived-At: Alan Third writes: > modified src/nsterm.m > @@ -3048,6 +3048,9 @@ so some key presses (TAB) are swallowed by the system. */ > if (!face) > face = FRAME_DEFAULT_FACE (f); > > + if (!face) > + return; > + > ns_focus (f, &frame_rect, 1); > [ns_lookup_indexed_color (NS_FACE_BACKGROUND (face), f) set]; > for (int i = 0; i < 4 ; i++) > > > "fixes" it, but leaves Emacs in a bit of a strange state where I can > only see one frame and it's incredibly slow. Was working in Emacs under lldb for almost two days to catch my random crash and here it is: Process 78804 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc0) frame #0: 0x0000000100456e88 emacs`ns_clear_under_internal_border + 424 emacs`ns_clear_under_internal_border: -> 0x100456e88 <+424>: movq 0xc0(%rax), %rdi 0x100456e8f <+431>: movq -0x38(%rbp), %rsi 0x100456e93 <+435>: callq 0x1004375a0 ; ns_lookup_indexed_color 0x100456e98 <+440>: movq 0xce5a1(%rip), %rsi ; "set" Target 0: (emacs) stopped. (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc0) * frame #0: 0x0000000100456e88 emacs`ns_clear_under_internal_border + 424 frame #1: 0x00000001000afe95 emacs`clear_garbaged_frames at xdisp.c:12110:17 Debug map object file for nsterm.o is ignored because it has changed, so backtrace may be not so useful. Going to work in Emacs under lldb with your patch applied to see if it will crash again. Thanks!