all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: 仇之东 <0x4ec7@gmail.com>
Cc: 27512@debbugs.gnu.org
Subject: bug#27512: 25.2; Crash when working with counsel
Date: Wed, 28 Jun 2017 19:07:41 +0300	[thread overview]
Message-ID: <83vangqenm.fsf@gnu.org> (raw)
In-Reply-To: <CAFhtAJhm6ThT3-+byHYSUn6hz6aj1+6=ee+xttk2rdWdJCnnAA@mail.gmail.com> (message from 仇之东 on Wed, 28 Jun 2017 11:12:09 +0800)

> 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.





  reply	other threads:[~2017-06-28 16:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-28  3:12 bug#27512: 25.2; Crash when working with counsel 仇之东
2017-06-28 16:07 ` Eli Zaretskii [this message]
     [not found]   ` <CAFhtAJhc_Fet4UWi17Ff9JHiFg4u0+hdZHS0H-eW6ExZy924Ag@mail.gmail.com>
2017-06-29 14:33     ` Eli Zaretskii
2017-07-01 20:17       ` Paul Eggert
2017-07-02  2:31         ` 仇之东
2017-07-02 14:07           ` Eli Zaretskii
2017-06-29 17:26 ` 0x4ec7

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83vangqenm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=0x4ec7@gmail.com \
    --cc=27512@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.