From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27512: 25.2; Crash when working with counsel Date: Wed, 28 Jun 2017 19:07:41 +0300 Message-ID: <83vangqenm.fsf@gnu.org> References: Reply-To: Eli Zaretskii 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 1498666152 23388 195.159.176.226 (28 Jun 2017 16:09:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Jun 2017 16:09:12 +0000 (UTC) Cc: 27512@debbugs.gnu.org To: =?UTF-8?Q?=E4=BB=87=E4=B9=8B=E4=B8=9C?= <0x4ec7@gmail.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 28 18:09:08 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 1dQFWd-0005tF-8Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jun 2017 18:09:07 +0200 Original-Received: from localhost ([::1]:34224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQFWi-0001Fj-IG for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jun 2017 12:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQFWc-0001Ep-9R for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 12:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQFWY-0007q6-Ai for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 12:09:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQFWY-0007pw-7S for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 12:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQFWY-0007L9-2i for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 12:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2017 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27512 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27512-submit@debbugs.gnu.org id=B27512.149866609028154 (code B ref 27512); Wed, 28 Jun 2017 16:09:02 +0000 Original-Received: (at 27512) by debbugs.gnu.org; 28 Jun 2017 16:08:10 +0000 Original-Received: from localhost ([127.0.0.1]:42815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQFVh-0007K2-Vi for submit@debbugs.gnu.org; Wed, 28 Jun 2017 12:08:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQFVg-0007Jp-5X for 27512@debbugs.gnu.org; Wed, 28 Jun 2017 12:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQFVW-0007Yw-Uh for 27512@debbugs.gnu.org; Wed, 28 Jun 2017 12:08:02 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQFVW-0007Ys-Qt; Wed, 28 Jun 2017 12:07:58 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1578 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dQFVW-0004YH-57; Wed, 28 Jun 2017 12:07:58 -0400 In-reply-to: (message from =?UTF-8?Q?=E4=BB=87=E4=B9=8B=E4=B8=9C?= on Wed, 28 Jun 2017 11:12:09 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:133991 Archived-At: > From: 仇之东 <0x4ec7@gmail.com> > Date: Wed, 28 Jun 2017 11:12:09 +0800 > > It was reported here firstly, https://github.com/abo-abo/swiper/issues/984 > I cannot repreduce it since it happens occasionally. > > Here are the crash logs: > Process: Emacs [30324] > Path: /usr/local/Cellar/emacs/25.2/Emacs.app/Contents/MacOS/Emacs > Identifier: org.gnu.Emacs > Version: Version 25.2 (9.0) > Code Type: X86-64 (Native) > Parent Process: ??? [1] > Responsible: Emacs [30324] > User ID: 501 > > Date/Time: 2017-06-27 15:23:54.286 +0800 > OS Version: Mac OS X 10.12.5 (16F73) > Report Version: 12 > Anonymous UUID: D452D42E-CF25-A6F0-266B-A8E0C3BEE907 > > Sleep/Wake UUID: 98E20E1E-8DBC-451F-830A-A2061184FEC7 > > Time Awake Since Boot: 650000 seconds > Time Since Wake: 17000 seconds > > System Integrity Protection: enabled > > 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 0x00007fffe23c1d42 __pthread_kill + 10 > 1 libsystem_pthread.dylib 0x00007fffe24af457 pthread_kill + 90 > 2 libsystem_c.dylib 0x00007fffe22d8497 raise + 26 > 3 org.gnu.Emacs 0x000000010009a939 terminate_due_to_signal + 138 > 4 org.gnu.Emacs 0x00000001000b19b0 emacs_abort + 19 > 5 org.gnu.Emacs 0x0000000100162050 ns_term_shutdown + 122 > 6 org.gnu.Emacs 0x000000010009aaf4 shut_down_emacs + 262 > 7 org.gnu.Emacs 0x000000010009a904 terminate_due_to_signal + 85 > 8 org.gnu.Emacs 0x00000001000b19b0 emacs_abort + 19 > 9 org.gnu.Emacs 0x00000001000b1aff get_child_status + 173 > 10 org.gnu.Emacs 0x000000010013e6ab handle_child_signal + 70 > 11 org.gnu.Emacs 0x00000001000b29c9 deliver_process_signal + 52 This says that the waitpid function in the following snippet returned with a value of errno that is not EINTR, in which case Emacs commits suicide. static pid_t get_child_status (pid_t child, int *status, int options, bool interruptible) { pid_t pid; /* Invoke waitpid only with a known process ID; do not invoke waitpid with a nonpositive argument. Otherwise, Emacs might reap an unwanted process by mistake. For example, invoking waitpid (-1, ...) can mess up glib by reaping glib's subprocesses, so that another thread running glib won't find them. */ eassert (child > 0); while ((pid = waitpid (child, status, options)) < 0) { /* Check that CHILD is a child process that has not been reaped, and that STATUS and OPTIONS are valid. Otherwise abort, as continuing after this internal error could cause Emacs to become confused and kill innocent-victim processes. */ if (errno != EINTR) emacs_abort (); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Can you tell what is the value of errno when this happens? You could do that by running Emacs under a debugger, setting a breakpoint on the line marked above, and when the breakpoint breaks the next time, examine the value of errno and report it. Thanks.