From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Emacs crashes suddenly Date: Mon, 05 Dec 2011 21:48:04 +0100 Message-ID: <87r50isq2j.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323118114 17214 80.91.229.12 (5 Dec 2011 20:48:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2011 20:48:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 05 21:48:30 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RXfSf-0005UI-00 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Dec 2011 21:48:29 +0100 Original-Received: from localhost ([::1]:52273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXfSe-00071a-Hb for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Dec 2011 15:48:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXfSZ-00070t-JV for help-gnu-emacs@gnu.org; Mon, 05 Dec 2011 15:48:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXfSY-0007Ve-K8 for help-gnu-emacs@gnu.org; Mon, 05 Dec 2011 15:48:23 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:32930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXfSY-0007VY-D2 for help-gnu-emacs@gnu.org; Mon, 05 Dec 2011 15:48:22 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RXfSW-0005Qo-TQ for help-gnu-emacs@gnu.org; Mon, 05 Dec 2011 21:48:20 +0100 Original-Received: from 91-67-11-43-dynip.superkabel.de ([91.67.11.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Dec 2011 21:48:20 +0100 Original-Received: from tassilo by 91-67-11-43-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Dec 2011 21:48:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91-67-11-43-dynip.superkabel.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:Uzm/F3u2LSd3hVQ0ImaSIAOCdhI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83134 Archived-At: "Pablo S.M." writes: Hi Pablo, > My question is: how can I find a way Emacs tells me at least the crash > reason? If I start emacs with gdb I don't see anything special, maybe > because I have to compile it with some options? Yes, at least with -O0 and -ggdb. And even though you have installed emacs into /usr/ or /usr/local/, you should invoke gdb in the src/ directory where you've compiled emacs, because that contain some gdb initialization files. When emacs crashes, use `bt full' and `xbacktrace' to get some meaningful information. So something along the lines of: $ cd ~/sources/emacs/src $ gdb /usr/bin/emacs gdb> run [do your usual work in emacs, and when it crashes, do...] gdb> bt full [full C backtrace] gdb> xbacktrace [lisp backtrace] See etc/DEBUG for details on how to debug emacs: http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/etc/DEBUG Bye, Tassilo