From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Caldwell Newsgroups: gmane.emacs.bugs Subject: bug#21626: 24.5; Segfault on C-z on Mac OS X 10.11 Date: Tue, 6 Oct 2015 10:12:12 -0700 Message-ID: <20151006171206.GA11227@porkrind.org> References: <20151005215142.GA26183@porkrind.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ibTvN161/egqYuK8" X-Trace: ger.gmane.org 1444154835 5467 80.91.229.3 (6 Oct 2015 18:07:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 18:07:15 +0000 (UTC) To: 21626@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 06 20:07:03 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from eggs.gnu.org ([208.118.235.92]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZjWdj-00085x-5k for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 20:07:03 +0200 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjWdf-0005Gi-DU for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 14:07:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID, T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Original-Received: from lists.gnu.org ([208.118.235.17]:46965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjVtd-0001hZ-5E for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 13:19:25 -0400 Original-Received: from localhost ([::1]:52751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjVtc-0005rr-Ut for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 13:19:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjVoT-0003jA-MO for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 13:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjVoQ-0002sW-DH for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 13:14:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjVoQ-0002sQ-68 for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 13:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZjVoP-0004rr-Mp for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 13:14:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20151005215142.GA26183@porkrind.org> Resent-From: David Caldwell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2015 17:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21626-submit@debbugs.gnu.org id=B21626.144415159118634 (code B ref 21626); Tue, 06 Oct 2015 17:14:01 +0000 Original-Received: (at 21626) by debbugs.gnu.org; 6 Oct 2015 17:13:11 +0000 Original-Received: from localhost ([127.0.0.1]:57335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjVna-0004qU-A4 for submit@debbugs.gnu.org; Tue, 06 Oct 2015 13:13:10 -0400 Original-Received: from sa38.galvanix.net ([98.126.48.38]:42282 helo=kill.porkrind.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjVnX-0004qL-IA for 21626@debbugs.gnu.org; Tue, 06 Oct 2015 13:13:08 -0400 Original-Received: from porkrind.org (cpe-76-170-36-134.socal.res.rr.com [76.170.36.134]) by kill.porkrind.org (Postfix) with ESMTPS id 96AFA5F14E for <21626@debbugs.gnu.org>; Tue, 6 Oct 2015 10:12:16 -0700 (PDT) Authentication-Results: kill.porkrind.org; dkim=pass (1536-bit key; unprotected) header.d=porkrind.org header.i=@porkrind.org header.b=LLOVKb6r; dkim-atps=neutral Original-Received: from porkrind.org (localhost [127.0.0.1]) by porkrind.org (8.14.9/8.14.9/Debian-4) with ESMTP id t96HCC7r011728 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <21626@debbugs.gnu.org>; Tue, 6 Oct 2015 10:12:13 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=porkrind.org; s=apoptygma; t=1444151533; bh=R1606vw3YMrlvWykDcM2w4tj3/reZE0vfxwrcyINyzw=; h=Date:From:To:Subject:From; b=LLOVKb6r7oPjhJF35PZZm5KbPvLb8KLzVqAGF9pA8391wLu82des/4Z6aslVFTbOp k3PIy0X7gUCSS7R8Fqg8EqAdnjXwh5h/EQ18srOWsTNt23iVNJJzOgxWu/AIyGUHJl aYwIrvSEW4o1JlniA8qiZUPdHkbTYG8iZfKYqWWc2H5MvNF5mwyc53XKb1AbzyyZcx XfIciRankvAM3+ggdd0LpWT0Lpob8RRkPUy087IG+SK55BRhzOZv1P2YfVa Original-Received: (from david@localhost) by porkrind.org (8.14.9/8.14.9/Submit) id t96HCC0v011727 for 21626@debbugs.gnu.org; Tue, 6 Oct 2015 10:12:12 -0700 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 Xref: news.gmane.org gmane.emacs.bugs:107383 Archived-At: --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I had just enough time this morning to build Emacs from git (master) and catch the crash in lldb. I've attached my lldb session in case it helps. I'll continue looking into it when I get some time. -David --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="lldb.txt" lldb nextstep/Emacs.app/Contents/MacOS/Emacs (lldb) target create "nextstep/Emacs.app/Contents/MacOS/Emacs" Current executable set to 'nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64). (lldb) run Process 20520 launched: '/Volumes/sensitive/contrib/emacs-git/nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64) Process 20520 stopped * thread #1: tid = 0xa8646b, 0x00007fff9877d04a libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 402, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10) frame #0: 0x00007fff9877d04a libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 402 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop: -> 0x7fff9877d04a <+402>: movq 0x10(%rbx), %rax 0x7fff9877d04e <+406>: leaq 0x38(%rbx), %rcx 0x7fff9877d052 <+410>: cmpq %rcx, %rax 0x7fff9877d055 <+413>: jne 0x7fff9877d077 ; <+447> (lldb) thread backtrace * thread #1: tid = 0xa8646b, 0x00007fff9877d04a libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 402, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10) * frame #0: 0x00007fff9877d04a libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 402 frame #1: 0x00007fff8eeeb29f QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 87 frame #2: 0x00007fff8d8aae07 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 frame #3: 0x00007fff8d8aad77 CoreFoundation`__CFRunLoopDoObservers + 391 frame #4: 0x00007fff8d889d58 CoreFoundation`CFRunLoopRunSpecific + 328 frame #5: 0x00007fff9621771e HIServices`waitForTransaction + 204 frame #6: 0x00007fff9b75d907 AppKit`minimizeItemsMaybeBatching + 89 frame #7: 0x00007fff9b790cfd AppKit`-[NSWindow(NSWindow_Theme) _minimizeToDock] + 192 frame #8: 0x00000001001a490e Emacs`x_iconify_frame(f=) + 430 at nsterm.m:1211 frame #9: 0x0000000100011077 Emacs`Ficonify_frame(frame=) + 135 at frame.c:2136 frame #10: 0x0000000100136ec0 Emacs`Ffuncall(nargs=1, args=) + 992 at eval.c:2650 frame #11: 0x000000010017003a Emacs`exec_byte_code(bytestr=, vector=4298361973, maxdepth=, args_template=, nargs=, args=) + 2346 at bytecode.c:880 frame #12: 0x0000000100136d64 Emacs`Ffuncall(nargs=1, args=) + 644 at eval.c:2699 frame #13: 0x000000010017003a Emacs`exec_byte_code(bytestr=, vector=4298362109, maxdepth=, args_template=, nargs=, args=) + 2346 at bytecode.c:880 frame #14: 0x0000000100136d64 Emacs`Ffuncall(nargs=1, args=) + 644 at eval.c:2699 frame #15: 0x0000000100130bca Emacs`Ffuncall_interactively(nargs=, args=) + 58 at callint.c:250 frame #16: 0x0000000100136df6 Emacs`Ffuncall(nargs=2, args=) + 790 at eval.c:2630 frame #17: 0x00000001001311ed Emacs`Fcall_interactively(function=44716416, record_flag=0, keys=4345321373) + 1549 at callint.c:387 frame #18: 0x0000000100136ee7 Emacs`Ffuncall(nargs=4, args=) + 1031 at eval.c:2657 frame #19: 0x000000010017003a Emacs`exec_byte_code(bytestr=, vector=4298090549, maxdepth=, args_template=, nargs=, args=) + 2346 at bytecode.c:880 frame #20: 0x0000000100136d64 Emacs`Ffuncall(nargs=2, args=) + 644 at eval.c:2699 frame #21: 0x000000010013755d Emacs`call1(fn=, arg1=) + 45 at eval.c:2509 frame #22: 0x00000001000bab16 Emacs`command_loop_1 + 3382 at keyboard.c:1460 frame #23: 0x0000000100135877 Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at keyboard.c:1240), handlers=, hfun=) + 231 at eval.c:1309 frame #24: 0x00000001000c92d0 Emacs`command_loop_2(ignore=) + 48 at keyboard.c:1088 frame #25: 0x000000010013529f Emacs`internal_catch(tag=, func=(Emacs`command_loop_2 at keyboard.c:1084), arg=0) + 223 at eval.c:1073 frame #26: 0x00000001000b94ae Emacs`command_loop + 158 at keyboard.c:1067 frame #27: 0x00000001000b93c5 Emacs`recursive_edit_1 + 101 at keyboard.c:673 frame #28: 0x00000001000b95ec Emacs`Frecursive_edit + 220 at keyboard.c:744 frame #29: 0x00000001000b82b7 Emacs`main(argc=0, argv=0x00007fff5fbff548) + 5655 at emacs.c:1643 frame #30: 0x00007fff8fdcf5ad libdyld.dylib`start + 1 frame #31: 0x00007fff8fdcf5ad libdyld.dylib`start + 1 (lldb) up frame #1: 0x00007fff8eeeb29f QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 87 QuartzCore`CA::Transaction::observer_callback: 0x7fff8eeeb29f <+87>: testb $0x1, 0x80(%rbx) 0x7fff8eeeb2a6 <+94>: je 0x7fff8eeeb2f1 ; <+169> 0x7fff8eeeb2a8 <+96>: movq -0x154b2e27(%rip), %rsi ; CA::callback_timer 0x7fff8eeeb2af <+103>: testq %rsi, %rsi (lldb) up frame #2: 0x00007fff8d8aae07 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__: 0x7fff8d8aae07 <+23>: popq %rbp 0x7fff8d8aae08 <+24>: retq 0x7fff8d8aae09 <+25>: nopl (%rax) CoreFoundation`CFRunLoopRemoveObserver: 0x7fff8d8aae10 <+0>: pushq %rbp (lldb) up frame #3: 0x00007fff8d8aad77 CoreFoundation`__CFRunLoopDoObservers + 391 CoreFoundation`__CFRunLoopDoObservers: 0x7fff8d8aad77 <+391>: testb $0x2, %r13b 0x7fff8d8aad7b <+395>: jne 0x7fff8d8aad85 ; <+405> 0x7fff8d8aad7d <+397>: movq %rbx, %rdi 0x7fff8d8aad80 <+400>: callq 0x7fff8d8ab0d0 ; CFRunLoopObserverInvalidate (lldb) up frame #4: 0x00007fff8d889d58 CoreFoundation`CFRunLoopRunSpecific + 328 CoreFoundation`CFRunLoopRunSpecific: 0x7fff8d889d58 <+328>: xorl %r13d, %r13d 0x7fff8d889d5b <+331>: addq $0x10, %r15 0x7fff8d889d5f <+335>: movq %r15, %rdi 0x7fff8d889d62 <+338>: callq 0x7fff8d9d4f4e ; symbol stub for: pthread_mutex_unlock (lldb) up frame #5: 0x00007fff9621771e HIServices`waitForTransaction + 204 HIServices`waitForTransaction: 0x7fff9621771e <+204>: movl 0x8(%r12), %eax 0x7fff96217723 <+209>: testl %eax, %eax 0x7fff96217725 <+211>: movl $0xffffeca0, %ebx 0x7fff9621772a <+216>: cmovel %eax, %ebx (lldb) up frame #6: 0x00007fff9b75d907 AppKit`minimizeItemsMaybeBatching + 89 AppKit`minimizeItemsMaybeBatching: 0x7fff9b75d907 <+89>: movl %eax, %r14d 0x7fff9b75d90a <+92>: cmpl $0xffffeca0, %r14d 0x7fff9b75d911 <+99>: je 0x7fff9b75d929 ; <+123> 0x7fff9b75d913 <+101>: testl %r14d, %r14d (lldb) up frame #7: 0x00007fff9b790cfd AppKit`-[NSWindow(NSWindow_Theme) _minimizeToDock] + 192 AppKit`-[NSWindow(NSWindow_Theme) _minimizeToDock]: 0x7fff9b790cfd <+192>: movl %eax, %r12d 0x7fff9b790d00 <+195>: movq -0x1fd5c5f7(%rip), %rsi ; "release" 0x7fff9b790d07 <+202>: movq %r15, %rdi 0x7fff9b790d0a <+205>: callq *%rbx (lldb) up frame #8: 0x00000001001a490e Emacs`x_iconify_frame(f=) + 430 at nsterm.m:1211 1208 [[view window] orderOut: NSApp]; 1209 [[view window] setFrame: t display: NO]; 1210 } -> 1211 [[view window] miniaturize: NSApp]; 1212 } 1213 1214 /* Free X resources of frame F. */ --ibTvN161/egqYuK8--