emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daimrod <daimrod@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: Eric Abrahamsen <eric@ericabrahamsen.net>, emacs-orgmode@gnu.org
Subject: Re: still seeing semi-regular lockups
Date: Thu, 15 May 2014 18:30:50 +0900	[thread overview]
Message-ID: <87ha4r1j91.fsf@tanger.home> (raw)
In-Reply-To: <87siobtn1i.fsf@bzg.ath.cx> (Bastien's message of "Thu, 15 May 2014 11:21:29 +0200")

[-- Attachment #1: Type: text/plain, Size: 2813 bytes --]

Bastien <bzg@gnu.org> writes:

> Hi Eric,
>
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> After Nicolas made the last round of improvements to the caching
>> mechanism I got far fewer hangs with Org, but they are still happening.
>> Maybe once a day or so, on average, editing something in an Org buffer
>> causes emacs to hang, and my fans to spin up, and there we are until I
>> kill emacs.
>
> I've seen hiccups here and there, but generally, what happens is an
> error, not an infinite hanging.
>
>> It happens often enough that I guess it's worth running emacs under some
>> kind of debugger -- at least, I assume that's the best way of catching
>> the bug. I'm not really sure how to go hunting, though, so if anyone had
>> any advice in this direction, that would be great.
>
> I'd hunt for some infloop in parsing -- but cannot detail more than
> that, problably Nicolas could.
>
>> In the meantime, is there any way of interrupting emacs so it quits
>> whatever its doing, without having to kill it? I've played around with
>> sending different signals using "kill", just for fun, but everything
>> I've tried either does nothing, or kills emacs altogether.
>
> I have no suggestion here either, sorry :/

I have also semi-regular lockup with org-mode. I have opened a bug on
debbugs and here is what Stefan told me to try to debug this:

> You can try `debug-on-event'.
> 
> There's jit-lock-debug-mode but it doesn't disable inhibit-quit.
> So you'll need to additionally use
> 
>    (advice-add 'jit-lock--debug-fontify :around
>      (lambda (fun &rest args)
>        (with-local-quit (apply fun args))))
> 
> Of course sometimes this doesn't work because jit-lock-debug-mode
> changes the way things are executed and the bug may not manifest itself
> any more, but it's worth a try.
> 
> Another source of info is to
> 
>   M-x trace-function RET org-adaptive-fill-function RET
>   M-x trace-function RET org-element-at-point RET
>   M-x trace-function RET org-element--cache-sync RET
>   M-x trace-function RET org-element--cache-process-request RET
> 
> Then reproduce the hang, then break the hang somehow (maybe with the
> jit-lock-debug hack above, or maybe with debug-on-event, or with C-g C-g
> C-g, ...), then look at the *trace..* buffer.

I'll try to see what I can find this week end and report back.

By the way, if you want to see in which part the infloop occurs, you can
attach a gdb debugger to the running emacs, source the
<path-to-emacs-source>/src/.gdbinit file and use the `xbacktrace' command.

$ gdb <path-to-emacs-executable> <emacs-pid>
gdb) source <path-to-emacs-source>/src/.gdbinit
...
gdb) xbacktrace

You can also use the `bt' command but it contains much more noise.

-- 
Daimrod/Greg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2014-05-15  9:31 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14  8:39 still seeing semi-regular lockups Eric Abrahamsen
2014-05-15  9:21 ` Bastien
2014-05-15  9:30   ` Daimrod [this message]
2014-05-15  9:46     ` Bastien
2014-05-15 10:31     ` Eric Abrahamsen
2014-05-15 10:37       ` Daimrod
2014-05-15 10:43         ` Eric Abrahamsen
2014-05-19 14:21     ` Daimrod
2014-05-20  8:25       ` Eric Abrahamsen
2014-05-20  8:55         ` Daimrod
2014-05-20 11:16           ` Eric Abrahamsen
2014-06-24  8:48             ` Nicolas Goaziou
2014-06-24 14:28               ` Eric Abrahamsen
2014-06-25  4:09                 ` Matt Lundin
2014-06-25  5:39                   ` Matt Lundin
2014-06-25  7:32                   ` Sebastien Vauban
2014-06-27 13:00                     ` Nicolas Goaziou
2014-06-25  7:38                   ` Daimrod
2014-06-25  8:22                     ` Eric Abrahamsen
2014-06-25  8:30                       ` Bastien
2014-06-25  8:40                         ` Eric Abrahamsen
2014-06-25 13:47                     ` Matt Lundin
2014-06-26  2:58                     ` Matt Lundin
2014-06-26  3:00                       ` Matt Lundin
2014-06-27 12:56                       ` Nicolas Goaziou
2014-06-27 13:37                         ` Alan Schmitt
2014-06-27 22:31                           ` Nicolas Goaziou
2014-06-28 19:27                 ` Eric Abrahamsen
2014-06-29  1:39                   ` York Zhao
2014-06-29  2:23                     ` Eric Abrahamsen
2014-06-30  1:15                       ` York Zhao
2014-06-30  1:43                         ` York Zhao
2014-06-30 20:20                           ` Alan Schmitt
2014-07-01  0:43                           ` York Zhao
2014-07-01  7:38                             ` Nicolas Goaziou
2014-07-01 17:14                               ` York Zhao
2014-07-01 21:15                                 ` York Zhao
2014-07-02  8:01                                   ` Nicolas Goaziou
2014-07-03  1:03                                     ` York Zhao
2014-07-06  7:28                                       ` Nicolas Goaziou
2014-07-06 14:40                                         ` York Zhao
2014-07-06 21:05                                           ` York Zhao
2014-07-06 21:31                                             ` Nicolas Goaziou
2014-07-07  0:16                                               ` York Zhao
2014-07-07  5:27                                                 ` Nicolas Goaziou
2014-07-25 14:33                                                   ` Sebastien Vauban
2014-07-07  1:43                                           ` York Zhao
2014-07-07  5:33                                             ` Nicolas Goaziou
2014-07-07 15:10                                               ` York Zhao
2014-07-03 15:31                                 ` York Zhao
2014-07-03 15:55                                   ` York Zhao
2014-07-06  7:19                                   ` Nicolas Goaziou
2014-07-06 14:29                                     ` York Zhao
2014-07-15  2:30                             ` York Zhao
2014-07-19  3:17                               ` Matt Lundin
2014-07-19 14:12                                 ` York Zhao
2014-06-29 13:58                     ` Nicolas Goaziou
2014-05-29  3:01       ` Daimrod
2014-05-30  9:17         ` Nicolas Goaziou
2014-05-30 14:35           ` Daimrod
2014-06-11 11:53             ` Daimrod
2014-06-11 21:30               ` Nicolas Goaziou
2014-06-11 22:18                 ` Daimrod
2014-06-14  7:43                   ` Nicolas Goaziou
2014-06-14 23:55                     ` Daimrod
2014-06-22  7:58                       ` Nicolas Goaziou
2014-06-04  4:47     ` Eric Abrahamsen
2014-06-05  4:29       ` Daimrod
  -- strict thread matches above, loose matches on Subject: below --
2014-05-14 11:06 dieter
2014-05-15  2:29 ` Eric Abrahamsen

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87ha4r1j91.fsf@tanger.home \
    --to=daimrod@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric@ericabrahamsen.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).