From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?S=C3=A9bastien?= Le Callonnec Newsgroups: gmane.emacs.bugs Subject: bug#25566: 26.0.50; Crash on C-g with master as of d12e1ddf42 Date: Mon, 30 Jan 2017 16:35:45 +0000 Message-ID: References: <87d1f6sx5s.fsf@credativ.de> Reply-To: sebastien@weblogism.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1485794237 20481 195.159.176.226 (30 Jan 2017 16:37:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2017 16:37:17 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50.18 To: 25566@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 30 17:37:12 2017 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 1cYEx6-00053e-K4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jan 2017 17:37:12 +0100 Original-Received: from localhost ([::1]:33719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYExA-0008B3-IF for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jan 2017 11:37:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYEwz-00089U-RF for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2017 11:37:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYEww-0003BN-LX for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2017 11:37:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYEww-0003BD-Hx for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2017 11:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cYEww-0002gY-9u for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2017 11:37:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87d1f6sx5s.fsf@credativ.de> Resent-From: =?UTF-8?Q?S=C3=A9bastien?= Le Callonnec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jan 2017 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25566 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25566-submit@debbugs.gnu.org id=B25566.148579416410239 (code B ref 25566); Mon, 30 Jan 2017 16:37:02 +0000 Original-Received: (at 25566) by debbugs.gnu.org; 30 Jan 2017 16:36:04 +0000 Original-Received: from localhost ([127.0.0.1]:51313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYEw0-0002f5-IN for submit@debbugs.gnu.org; Mon, 30 Jan 2017 11:36:04 -0500 Original-Received: from 10.mo69.mail-out.ovh.net ([46.105.73.241]:60528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYEvy-0002ee-Fi for 25566@debbugs.gnu.org; Mon, 30 Jan 2017 11:36:03 -0500 Original-Received: from player798.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo69.mail-out.ovh.net (Postfix) with ESMTP id 5BD2119275 for <25566@debbugs.gnu.org>; Mon, 30 Jan 2017 17:36:00 +0100 (CET) Original-Received: from pantoufle-3.local.weblogism.com (95-44-153-143-dynamic.agg2.grs.prp-wtd.eircom.net [95.44.153.143]) (Authenticated sender: sebastien@weblogism.com) by player798.ha.ovh.net (Postfix) with ESMTPSA id AD7A0540072 for <25566@debbugs.gnu.org>; Mon, 30 Jan 2017 17:35:59 +0100 (CET) X-Organisation: Coucou Wahlou X-Ovh-Tracer-Id: 7741687763220534514 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelgedrieefgdelvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecu 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:128791 Archived-At: I am experiencing the same issue on master on OSX 10.11.6. A bisect points to this commit: 1392ec7420ee23238a1588b759c631d87a677483 is the first bad commit commit 1392ec7420ee23238a1588b759c631d87a677483 Author: Paul Eggert Date: Wed Jan 25 20:27:45 2017 -0800 A quicker check for quit On some microbenchmarks this lets Emacs run 60% faster on my platform (AMD Phenom II X4 910e, Fedora 25 x86-64). * src/atimer.c: Include keyboard.h, for pending_signals. * src/editfns.c (Fcompare_buffer_substrings): * src/fns.c (Fnthcdr, Fmemq, Fmemql, Fassq, Frassq, Fplist_put) (Fnconc, Fplist_member): Set and clear immediate_quit before and after loop instead of executing QUIT each time through the loop. This is OK for loops that affect only locals. * src/eval.c (process_quit_flag): Now static. (maybe_quit): New function, containing QUIT’s old body. * src/fns.c (rarely_quit): New function. (Fmember, Fassoc, Frassoc, Fdelete, Fnreverse, Freverse) (Flax_plist_get, Flax_plist_put, internal_equal, Fnconc): Use it instead of QUIT, for speed in tight loops that might modify non-locals. * src/keyboard.h (pending_signals, process_pending_signals): These belong to keyboard.c, so move them here ... * src/lisp.h: ... from here. (QUIT): Redefine in terms of the new maybe_quit function, which contains this macro’s old definiens. This works well with branch prediction on processors with return stack buffers, e.g., x86 other than the original Pentium. :040000 040000 87d5a840fab3795a0ac0ddf3172aa487d2636e7f 3f764784c5b6b1ad19164a3d7997a66542aa7a3e M src Here is an excerpt of the crash report: Process: Emacs [23793] Path: /Applications/Emacs.app/Contents/MacOS/Emacs Identifier: org.gnu.Emacs Version: Version 26.0.50 (9.0) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Emacs [23793] User ID: 502 Date/Time: 2017-01-30 16:27:20.715 +0000 OS Version: Mac OS X 10.11.6 (15G1212) Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff898c68ea __kill + 10 1 org.gnu.Emacs 0x00000001000bac99 terminate_due_to_signal + 153 (emacs.c:398) 2 org.gnu.Emacs 0x00000001000d76f3 emacs_abort + 19 3 org.gnu.Emacs 0x00000001001b3e3a ns_term_shutdown + 122 4 org.gnu.Emacs 0x00000001000bae75 shut_down_emacs + 261 (emacs.c:2094) 5 org.gnu.Emacs 0x00000001000bac66 terminate_due_to_signal + 102 (emacs.c:379) 6 org.gnu.Emacs 0x00000001000d76f3 emacs_abort + 19 7 org.gnu.Emacs 0x000000010013c93f signal_or_quit + 1391 (eval.c:1522) 8 org.gnu.Emacs 0x00000001000c6784 handle_interrupt + 340 (keyboard.c:10459) 9 org.gnu.Emacs 0x00000001000c1a48 gobble_input + 472 (.keyboard.h:472) 10 org.gnu.Emacs 0x00000001000c81b5 unblock_input + 69 (keyboard.c:7143) 11 org.gnu.Emacs 0x00000001001b2c87 ns_select + 903 (nsterm.m:4194) 12 org.gnu.Emacs 0x000000010019f5f8 really_call_select + 88 (thread.c:566) 13 org.gnu.Emacs 0x000000010011d81c flush_stack_call_func + 44 (alloc.c:5110) 14 org.gnu.Emacs 0x000000010019f597 thread_select + 55 (thread.c:590) 15 org.gnu.Emacs 0x00000001001832cd wait_reading_process_output + 4093 (process.c:5367) 16 org.gnu.Emacs 0x0000000100007e25 sit_for + 261 (dispnew.c:5766) 17 org.gnu.Emacs 0x00000001000c3202 read_char + 4802 (keyboard.c:2651) 18 org.gnu.Emacs 0x00000001000bffcb read_key_sequence + 1787 (keyboard.c:9139) 19 org.gnu.Emacs 0x00000001000be76d command_loop_1 + 1229 (keyboard.c:1373) 20 org.gnu.Emacs 0x000000010013c0f7 internal_condition_case + 87 (eval.c:1327) 21 org.gnu.Emacs 0x00000001000cd7a0 command_loop_2 + 48 (keyboard.c:1115) 22 org.gnu.Emacs 0x000000010013b9ae internal_catch + 78 (eval.c:1093) 23 org.gnu.Emacs 0x00000001000bd99e command_loop + 158 (keyboard.c:1095) 24 org.gnu.Emacs 0x00000001000bd8af recursive_edit_1 + 111 (keyboard.c:701) 25 org.gnu.Emacs 0x00000001000bdae3 Frecursive_edit + 227 (keyboard.c:772) 26 org.gnu.Emacs 0x00000001000bc6bd main + 6109 (emacs.c:1688) 27 libdyld.dylib 0x00007fff8ecf85ad start + 1 Thread 1: 0 libsystem_kernel.dylib 0x00007fff898c75e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff899f0578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff899ee341 start_wqthread + 13 Thread 2:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff898c7efa kevent_qos + 10 1 libdispatch.dylib 0x00007fff8969f165 _dispatch_mgr_invoke + 216 2 libdispatch.dylib 0x00007fff8969edcd _dispatch_mgr_thread + 52 Thread 3: 0 libsystem_kernel.dylib 0x00007fff898c75e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff899f0578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff899ee341 start_wqthread + 13 Thread 4: 0 libsystem_kernel.dylib 0x00007fff898c75e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff899f0578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff899ee341 start_wqthread + 13 Thread 5: 0 libsystem_kernel.dylib 0x00007fff898c75e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff899f0578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff899ee341 start_wqthread + 13 Thread 6: 0 libsystem_kernel.dylib 0x00007fff898c707a __select + 10 1 org.gnu.Emacs 0x00000001001b550e -[EmacsApp fd_handler:] + 286 (nsterm.m:5486) 2 com.apple.Foundation 0x00007fff868f8e64 __NSThread__start__ + 1351 3 libsystem_pthread.dylib 0x00007fff899f099d _pthread_body + 131 4 libsystem_pthread.dylib 0x00007fff899f091a _pthread_start + 168 5 libsystem_pthread.dylib 0x00007fff899ee351 thread_start + 13 Thread 7: 0 libsystem_kernel.dylib 0x00007fff898c75e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff899f0578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff899ee341 start_wqthread + 13 Thread 8: 0 libsystem_kernel.dylib 0x00007fff898c75e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff899f0578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff899ee341 start_wqthread + 13 Thread 9: 0 libsystem_kernel.dylib 0x00007fff898c75e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff899f0578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff899ee341 start_wqthread + 13 Thread 10: 0 libsystem_kernel.dylib 0x00007fff898c75e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff899f0578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff899ee341 start_wqthread + 13 Thread 11:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff898c0f72 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff898c03b3 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff97843124 __CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff978425ec __CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff97841e38 CFRunLoopRunSpecific + 296 5 com.apple.AppKit 0x00007fff8f195d95 _NSEventThread + 149 6 libsystem_pthread.dylib 0x00007fff899f099d _pthread_body + 131 7 libsystem_pthread.dylib 0x00007fff899f091a _pthread_start + 168 8 libsystem_pthread.dylib 0x00007fff899ee351 thread_start + 13 HTH, Sébastien.