[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gtk3, emacs 24 and gnome shell

From: Michael Welsh Duggan
Subject: Re: gtk3, emacs 24 and gnome shell
Date: Fri, 28 Oct 2011 19:30:03 -0400
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Rasmus Pank Roulund <address@hidden> writes:

> Tassilo Horn <address@hidden> writes:
>> Hi Rasmus,
>>>> Run it in gdb.  Compile it without optimizations and -ggdb in CFLAGS and
>>>> then run it like so:
>>>>   $ cd path/to/emacs/src/
>>>>   $ gdb emacs
>>>>   gdb> run
>>>> Then you'll get C and lisp backtraces when emacs crashes.  (It's
>>>> important to start emacs from its src directory, because that contains
>>>> some GDB setup scripts.)
>>> I run the program using gdb etc. as suggested above, but no message is
>>> echoed upon a crash.
>> It shoult at least say that emacs has crashed somehow.
>>> Do I have to issue some command to get a backtrace?
>> Yes: bt full
> It says nothing. 
> ┏━━━
> ┃ (gdb) bt full
> ┃ No stack.
> ┃ Lisp Backtrace:
> ┃ Cannot access memory at address 0x7fffffffcb98
> ┗━━━
> I started Emacs with run --daemon.
> Emacs often crash after returning from suspend, although not in any
> deterministic sense.

In order to debug when running as a daemon, you need to add something
like the following to your src/.gdbinit file:

# Follow emacs when running using --daemon.  We need to follow the
# child of the daemonizing fork, and go back to following parents
# shortly afterward.
break main
  set follow-fork-mode child
break init_signals
  set follow-fork-mode parent

Michael Welsh Duggan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]