GNU bug report logs - #50319
27.2; crash

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Devon Sean McCullough <Emacs-Hacker2020@HIDDEN>; Keywords: moreinfo; dated Wed, 1 Sep 2021 13:32:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 50319 <at> debbugs.gnu.org:


Received: (at 50319) by debbugs.gnu.org; 1 Sep 2021 14:04:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 01 10:04:47 2021
Received: from localhost ([127.0.0.1]:38726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mLQr5-0001si-W1
	for submit <at> debbugs.gnu.org; Wed, 01 Sep 2021 10:04:47 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43058)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mLQqw-0001sL-9b
 for 50319 <at> debbugs.gnu.org; Wed, 01 Sep 2021 10:04:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50504)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1mLQqq-0007tn-QP; Wed, 01 Sep 2021 10:04:28 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4412
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mLQqq-0002BE-D9; Wed, 01 Sep 2021 10:04:28 -0400
Date: Wed, 01 Sep 2021 17:04:25 +0300
Message-Id: <837dg0qtna.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Devon Sean McCullough <Emacs-Hacker2020@HIDDEN>
In-Reply-To: <c64199af-e722-9048-b057-2305288fa326@HIDDEN> (message from
 Devon Sean McCullough on Wed, 1 Sep 2021 09:30:57 -0400)
Subject: Re: bug#50319: 27.2; crash
References: <c64199af-e722-9048-b057-2305288fa326@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50319
Cc: 50319 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Devon Sean McCullough <Emacs-Hacker2020@HIDDEN>
> Date: Wed, 1 Sep 2021 09:30:57 -0400
> 
> Launch Emacs, attach a debugger, use it routinely for many weeks,
> switching between various apps, until it dereferences a bad pointer
> upon switching from some other app:
> 
> (lldb) process attach --pid 24105
> ⋮
> Executable module set to "/Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_14".
> Architecture set to: x86_64h-apple-macosx-.
> ⋮
> (lldb) Process 24105 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x172505fec)
>      frame #0: 0x000000010cdcb104 Emacs-x86_64-10_14`redisplay_window + 4244
> Emacs-x86_64-10_14`redisplay_window:
> ->  0x10cdcb104 <+4244>: movq   -0x14(%rbx), %rcx
>      0x10cdcb108 <+4248>: addq   $-0x100, %rbx
>      0x10cdcb10f <+4255>: testl  $0x100000, %ecx           ; imm = 0x100000
>      0x10cdcb115 <+4261>: je     0x10cdcb0a0               ; <+4144>
> Target 0: (Emacs-x86_64-10_14) stopped.
> (lldb) bt all
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x172505fec)
>    * frame #0: 0x000000010cdcb104 Emacs-x86_64-10_14`redisplay_window + 4244

Can you show where is this place in xdisp.c?  I'm afraid I cannot
figure that out from the disassembly alone.

Also, what did you do when it segfaulted? just clicked on an Emacs
frame with a mouse?  The backtrace doesn't look like a frame redraw,
it looks like a routine redisplay when Emacs becomes idle.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#50319; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Sep 2021 13:31:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 01 09:31:33 2021
Received: from localhost ([127.0.0.1]:36681 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mLQKy-0006li-NG
	for submit <at> debbugs.gnu.org; Wed, 01 Sep 2021 09:31:33 -0400
Received: from lists.gnu.org ([209.51.188.17]:52930)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emacs-hacker2020@HIDDEN>) id 1mLQKx-0006la-Jg
 for submit <at> debbugs.gnu.org; Wed, 01 Sep 2021 09:31:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50998)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <emacs-hacker2020@HIDDEN>)
 id 1mLQKx-0004h4-C8
 for bug-gnu-emacs@HIDDEN; Wed, 01 Sep 2021 09:31:31 -0400
Received: from gateway32.websitewelcome.com ([192.185.144.98]:20227)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <emacs-hacker2020@HIDDEN>)
 id 1mLQKs-0001n4-J9
 for bug-gnu-emacs@HIDDEN; Wed, 01 Sep 2021 09:31:30 -0400
Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20])
 by gateway32.websitewelcome.com (Postfix) with ESMTP id 2BFA543301
 for <bug-gnu-emacs@HIDDEN>; Wed,  1 Sep 2021 08:30:58 -0500 (CDT)
Received: from leaf.websitewelcome.com ([192.185.82.99]) by cmsmtp with SMTP
 id LQKQmJn0zMGeELQKQmMm7v; Wed, 01 Sep 2021 08:30:58 -0500
X-Authority-Reason: nr=8
Received: from c-66-31-30-147.hsd1.ma.comcast.net ([66.31.30.147]:63853
 helo=Apples-MacBook-Air.local)
 by leaf.websitewelcome.com with esmtpsa (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2)
 (envelope-from <Emacs-Hacker2020@HIDDEN>) id 1mLQKQ-001cHA-DR
 for bug-gnu-emacs@HIDDEN; Wed, 01 Sep 2021 08:30:58 -0500
To: bug-gnu-emacs@HIDDEN
From: Devon Sean McCullough <Emacs-Hacker2020@HIDDEN>
Subject: 27.2; crash
Message-ID: <c64199af-e722-9048-b057-2305288fa326@HIDDEN>
Date: Wed, 1 Sep 2021 09:30:57 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0)
 Gecko/20100101 Thunderbird/78.13.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - leaf.websitewelcome.com
X-AntiAbuse: Original Domain - gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - jovi.net
X-BWhitelist: no
X-Source-IP: 66.31.30.147
X-Source-L: No
X-Exim-ID: 1mLQKQ-001cHA-DR
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: c-66-31-30-147.hsd1.ma.comcast.net (Apples-MacBook-Air.local)
 [66.31.30.147]:63853
X-Source-Auth: devon2011@HIDDEN
X-Email-Count: 1
X-Source-Cap: am92aW5ldDtkZXZvbjtsZWFmLndlYnNpdGV3ZWxjb21lLmNvbQ==
X-Local-Domain: yes
Received-SPF: pass client-ip=192.185.144.98;
 envelope-from=emacs-hacker2020@HIDDEN; helo=gateway32.websitewelcome.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Launch Emacs, attach a debugger, use it routinely for many weeks,
switching between various apps, until it dereferences a bad pointer
upon switching from some other app:

(lldb) process attach --pid 24105
⋮
Executable module set to "/Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_14".
Architecture set to: x86_64h-apple-macosx-.
⋮
(lldb) Process 24105 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x172505fec)
     frame #0: 0x000000010cdcb104 Emacs-x86_64-10_14`redisplay_window + 4244
Emacs-x86_64-10_14`redisplay_window:
->  0x10cdcb104 <+4244>: movq   -0x14(%rbx), %rcx
     0x10cdcb108 <+4248>: addq   $-0x100, %rbx
     0x10cdcb10f <+4255>: testl  $0x100000, %ecx           ; imm = 0x100000
     0x10cdcb115 <+4261>: je     0x10cdcb0a0               ; <+4144>
Target 0: (Emacs-x86_64-10_14) stopped.
(lldb) bt all
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x172505fec)
   * frame #0: 0x000000010cdcb104 Emacs-x86_64-10_14`redisplay_window + 4244
     frame #1: 0x000000010cdc9799 Emacs-x86_64-10_14`redisplay_window_1 + 41
     frame #2: 0x000000010cec00af Emacs-x86_64-10_14`internal_condition_case_1 + 271
     frame #3: 0x000000010cd9f669 Emacs-x86_64-10_14`redisplay_internal + 4073
     frame #4: 0x000000010ce3d1a5 Emacs-x86_64-10_14`read_char + 2213
     frame #5: 0x000000010ce3ad6a Emacs-x86_64-10_14`read_key_sequence + 1722
     frame #6: 0x000000010ce3956c Emacs-x86_64-10_14`command_loop_1 + 1340
     frame #7: 0x000000010cebff77 Emacs-x86_64-10_14`internal_condition_case + 263
     frame #8: 0x000000010ce496f0 Emacs-x86_64-10_14`command_loop_2 + 48
     frame #9: 0x000000010cebf79b Emacs-x86_64-10_14`internal_catch + 267
     frame #10: 0x000000010cf7daa5 Emacs-x86_64-10_14`command_loop.cold.1 + 69
     frame #11: 0x000000010ce38633 Emacs-x86_64-10_14`command_loop + 131
     frame #12: 0x000000010ce38563 Emacs-x86_64-10_14`recursive_edit_1 + 115
     frame #13: 0x000000010ce387bb Emacs-x86_64-10_14`Frecursive_edit + 347
     frame #14: 0x000000010ce3734c Emacs-x86_64-10_14`main + 7436
     frame #15: 0x00007fff727ad3d5 libdyld.dylib`start + 1
     frame #16: 0x00007fff727ad3d5 libdyld.dylib`start + 1
   thread #2
     frame #0: 0x00007fff728e9616 libsystem_kernel.dylib`__select + 10
     frame #1: 0x000000010cf46e6c Emacs-x86_64-10_14`-[EmacsApp fd_handler:] + 236
     frame #2: 0x00007fff48a789a2 Foundation`__NSThread__start__ + 1194
     frame #3: 0x00007fff729a12eb libsystem_pthread.dylib`_pthread_body + 126
     frame #4: 0x00007fff729a4249 libsystem_pthread.dylib`_pthread_start + 66
     frame #5: 0x00007fff729a040d libsystem_pthread.dylib`thread_start + 13
   thread #3, name = 'com.apple.NSEventThread'
     frame #0: 0x00007fff728e221a libsystem_kernel.dylib`mach_msg_trap + 10
     frame #1: 0x00007fff728e2768 libsystem_kernel.dylib`mach_msg + 60
     frame #2: 0x00007fff46819e0e CoreFoundation`__CFRunLoopServiceMachPort + 328
     frame #3: 0x00007fff4681937c CoreFoundation`__CFRunLoopRun + 1612
     frame #4: 0x00007fff46818ade CoreFoundation`CFRunLoopRunSpecific + 455
     frame #5: 0x00007fff43e16bae AppKit`_NSEventThread + 175
     frame #6: 0x00007fff729a12eb libsystem_pthread.dylib`_pthread_body + 126
     frame #7: 0x00007fff729a4249 libsystem_pthread.dylib`_pthread_start + 66
     frame #8: 0x00007fff729a040d libsystem_pthread.dylib`thread_start + 13
   thread #23550
     frame #0: 0x00007fff728e3bfa libsystem_kernel.dylib`__workq_kernreturn + 10
     frame #1: 0x00007fff729a06e6 libsystem_pthread.dylib`_pthread_wqthread + 634
     frame #2: 0x00007fff729a03fd libsystem_pthread.dylib`start_wqthread + 13
   thread #23551
     frame #0: 0x00007fff728e3bfa libsystem_kernel.dylib`__workq_kernreturn + 10
     frame #1: 0x00007fff729a06e6 libsystem_pthread.dylib`_pthread_wqthread + 634
     frame #2: 0x00007fff729a03fd libsystem_pthread.dylib`start_wqthread + 13
   thread #23552
     frame #0: 0x00007fff728e3bfa libsystem_kernel.dylib`__workq_kernreturn + 10
     frame #1: 0x654d43505853536b
     frame #2: 0x00007fff729a03fd libsystem_pthread.dylib`start_wqthread + 13
   thread #23553
     frame #0: 0x0000000000000000
(lldb)

In GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
  of 2021-03-27 built on builder10-14.porkrind.org
Windowing system distributor 'Apple', version 10.3.1671
System Description:  Mac OS X 10.14.6

Configured using:
  'configure --with-ns '--enable-locallisppath=/Library/Application
  Support/Emacs/${version}/site-lisp:/Library/Application
  Support/Emacs/site-lisp' --with-modules'




Acknowledgement sent to Devon Sean McCullough <Emacs-Hacker2020@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#50319; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 4 Sep 2021 07:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.