From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#30800: 26.0.91; unknown crash on macos Date: Tue, 13 Mar 2018 09:36:40 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1520961524 6054 195.159.176.226 (13 Mar 2018 17:18:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2018 17:18:44 +0000 (UTC) To: 30800@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 13 18:18:40 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evnZQ-0001QP-97 for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Mar 2018 18:18:40 +0100 Original-Received: from localhost ([::1]:41410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evnbS-0004iH-Oh for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Mar 2018 13:20:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evmvB-0000xK-UP for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 12:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evmv8-0004jH-Mi for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 12:37:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evmv8-0004j9-IG for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 12:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evmv8-0006ec-2Z for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 12:37:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Mar 2018 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30800-submit@debbugs.gnu.org id=B30800.152095900925554 (code B ref 30800); Tue, 13 Mar 2018 16:37:02 +0000 Original-Received: (at 30800) by debbugs.gnu.org; 13 Mar 2018 16:36:49 +0000 Original-Received: from localhost ([127.0.0.1]:59751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evmuu-0006e6-Sp for submit@debbugs.gnu.org; Tue, 13 Mar 2018 12:36:49 -0400 Original-Received: from mail-qk0-f172.google.com ([209.85.220.172]:45774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evmut-0006dq-FO for 30800@debbugs.gnu.org; Tue, 13 Mar 2018 12:36:47 -0400 Original-Received: by mail-qk0-f172.google.com with SMTP id s9so227881qke.12 for <30800@debbugs.gnu.org>; Tue, 13 Mar 2018 09:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4NmTWDOPujkDualRV1tqIv5fSOvJYMOMFL7lhwboPqA=; b=Gguz97Vzn6bT+ju73ay37mm+y/506GrqGbWdLjDUVlagDipqA45mBv9TpGCjIlPTvb /kT5FlX9AbWuwTmSHvXVXpx22ZjNyu2AimY6UeK6CGyKkHvoysTIy1icohk34AN+2tPB SlSsSuXIOFlkfDHxZ+4heAx5AeF9mYbWhwH25URdrtoe7cADGIHnvL8qbbpAMee0ANpf 2dLQoVX5N4hreEm0qF2/XzT0VZYHIqbxgXCq/VBLjgiwNnL0JotI9FwcHbs9pjBCHDS/ zORjmWby1gUWzu1kgjfv/uRMi3lVcXm41qzZLl4l3Mco4cdnuwFQonxNQKtu+itOqIaR mWjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4NmTWDOPujkDualRV1tqIv5fSOvJYMOMFL7lhwboPqA=; b=WsXCKOeod2GNi1IMQJV/E3/qhjXdFugn1POxhEO1rgEIctbHY0sR7auO8mlbFZR8N4 b6EZeUfI7mIoIpkxD4FIP6Kb2cWqDcQxxEH8qYtIvyX0leSjvUEzjsHTXooDqbUNHQgw fCET8lCRy1Fjn7Q8mhqJq18LskSu1FM/xrMQ7UtOKarvBhrgoWaw/kBEs3yLmjZY9ftR RIStr6OmLR2y7m8pbE1aKPcVfDISj26UHOeSSs1IAF5/bxoWPfMaUui+scAn4eKDMAOh EPMUg4UyN2Sz+D0KUGi3J40iYXcSCXZFdYw3/ddAh7WATGaD+DU21lYuoWs9nOGPz4Nb z5CQ== X-Gm-Message-State: AElRT7ECGA2PH9VFpL0wcvvDzDb6UF+pJpFPtfQ4LxECkspwDWlHp9Xz u2TcLWIvaNqabfo7QbC6Yh0OQ/Vr7uJsCuWh8iUU/O+5 X-Google-Smtp-Source: AG47ELuB/i7lBv1X/UG6FC9ZrrKYCHGweZA4fD/7h8OBjm8HBX40ld63iFM0XGpXeIg4xNy9JGNokNMYfgR2D+hr/4c= X-Received: by 10.55.214.7 with SMTP id t7mr1704299qki.341.1520959001496; Tue, 13 Mar 2018 09:36:41 -0700 (PDT) Original-Received: by 10.237.60.76 with HTTP; Tue, 13 Mar 2018 09:36:40 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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" Xref: news.gmane.org gmane.emacs.bugs:144199 Archived-At: I was able to get more information, though this trace is different. I believe this crash has to do with child frames as my repro involves using flycheck-posframe. For what it's worth, my repro is as follows: 1. Start emacs w/ my config 2. Open a typescript file 3. Cause a flycheck error by deleting a character from an identifier 4. Put the point on the error and move it off several times to see the child frame w/ the error appear and disappear 5. Click away from emacs 6. Click back in 7. split-window-right 8. Sometimes this is enough to crash it, sometimes I hit a binding that uses find-file-existing to open my init.el and that crashes it. On emacs-26 (e4b73abd38) I'll leave the debugger running in case anyone has any questions about its state. Here is the crash: * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00000001003aadcb emacs`-[EmacsApp sendEvent:](self=0x0000000101739740, _cmd="sendEvent:", theEvent=0x00000001119c7cf0) at nsterm.m:5449 5446 if (represented_filename != nil && represented_frame) 5447 { 5448 NSString *fstr = represented_filename; -> 5449 NSView *view = FRAME_NS_VIEW (represented_frame); 5450 #ifdef NS_IMPL_COCOA 5451 /* work around a bug observed on 10.3 and later where 5452 setTitleWithRepresentedFilename does not clear out previous state Target 0: (emacs) stopped. (lldb) thread backtrace * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x00000001003aadcb emacs`-[EmacsApp sendEvent:](self=0x0000000101739740, _cmd="sendEvent:", theEvent=0x00000001119c7cf0) at nsterm.m:5449 frame #1: 0x00007fff50c29d9d AppKit`-[NSApplication run] + 812 frame #2: 0x00000001003aaaca emacs`-[EmacsApp run](self=0x0000000101739740, _cmd="run") at nsterm.m:5374 frame #3: 0x00000001003bf7b1 emacs`ns_read_socket(terminal=0x0000000102830830, hold_quit=0x00007ffeefbfdf68) at nsterm.m:4401 frame #4: 0x000000010017d208 emacs`gobble_input at keyboard.c:6909 frame #5: 0x000000010018385f emacs`get_input_pending(flags=1) at keyboard.c:6830 frame #6: 0x00000001001803b6 emacs`detect_input_pending_run_timers(do_display=false) at keyboard.c:9951 frame #7: 0x000000010017e0c6 emacs`read_char(commandflag=1, map=4657228643, prev_event=0, used_mouse_menu=0x00007ffeefbfe967, end_time=0x0000000000000000) at keyboard.c:2469 frame #8: 0x000000010017a1a0 emacs`read_key_sequence(keybuf=0x00007ffeefbfec80, bufsize=30, prompt=0, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9147 frame #9: 0x0000000100178d52 emacs`command_loop_1 at keyboard.c:1368 frame #10: 0x000000010028b0ef emacs`internal_condition_case(bfun=(emacs`command_loop_1 at keyboard.c:1259), handlers=18672, hfun=(emacs`cmd_error at keyboard.c:938)) at eval.c:1332 frame #11: 0x000000010018e30c emacs`command_loop_2(ignore=0) at keyboard.c:1110 frame #12: 0x000000010028a8a8 emacs`internal_catch(tag=47520, func=(emacs`command_loop_2 at keyboard.c:1106), arg=0) at eval.c:1097 frame #13: 0x0000000100177d08 emacs`command_loop at keyboard.c:1089 frame #14: 0x0000000100177b70 emacs`recursive_edit_1 at keyboard.c:695 frame #15: 0x0000000100177ea8 emacs`Frecursive_edit at keyboard.c:766 frame #16: 0x0000000100175b03 emacs`main(argc=1, argv=0x00007ffeefbff2e8) at emacs.c:1713 frame #17: 0x00007fff7af69115 libdyld.dylib`start + 1 frame #18: 0x00007fff7af69115 libdyld.dylib`start + 1 (lldb) thread list Process 92691 stopped * thread #1: tid = 0x25ef22, 0x00000001003aadcb emacs`-[EmacsApp sendEvent:](self=0x0000000101739740, _cmd="sendEvent:", theEvent=0x00000001119c7cf0) at nsterm.m:5449, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) thread #2: tid = 0x25ef50, 0x00007fff7b0b9562 libsystem_kernel.dylib`__workq_kernreturn + 10 thread #3: tid = 0x25ef51, 0x00007fff7b1f3c40 libsystem_pthread.dylib`start_wqthread thread #4: tid = 0x25ef59, 0x00007fff7b0b8fca libsystem_kernel.dylib`__select + 10, name = 'gmain' thread #6: tid = 0x25ef60, 0x00007fff7b0b8fca libsystem_kernel.dylib`__select + 10 thread #8: tid = 0x25ef6a, 0x00007fff7b0af7c2 libsystem_kernel.dylib`mach_msg_trap + 10, name = 'com.apple.NSEventThread' thread #9: tid = 0x25ef70, 0x00007fff7b0b9562 libsystem_kernel.dylib`__workq_kernreturn + 10 thread #13: tid = 0x25ef74, 0x00007fff7b0b9562 libsystem_kernel.dylib`__workq_kernreturn + 10 thread #14: tid = 0x25effd, 0x00007fff7b0b9562 libsystem_kernel.dylib`__workq_kernreturn + 10 thread #15: tid = 0x25effe, 0x00007fff7b0af7c2 libsystem_kernel.dylib`mach_msg_trap + 10, queue = 'NSCGSDisableUpdates' thread #16: tid = 0x25efff, 0x00007fff7b0b9562 libsystem_kernel.dylib`__workq_kernreturn + 10 thread #17: tid = 0x25f000, 0x00007fff7b0b9562 libsystem_kernel.dylib`__workq_kernreturn + 10