From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs 24 crashes Date: Sun, 22 Apr 2012 18:34:52 +0300 Message-ID: <83aa23hjab.fsf@gnu.org> References: <8762csssnd.fsf@googlemail.com> <83ehrgh47z.fsf@gnu.org> <87bomk5bh8.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1335108967 21370 80.91.229.3 (22 Apr 2012 15:36:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 Apr 2012 15:36:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 22 17:36:07 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SLypX-0002Os-Q3 for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Apr 2012 17:36:03 +0200 Original-Received: from localhost ([::1]:50890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLypX-0005Nm-4a for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Apr 2012 11:36:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLypH-0004uf-Hs for help-gnu-emacs@gnu.org; Sun, 22 Apr 2012 11:35:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLypF-00033D-MU for help-gnu-emacs@gnu.org; Sun, 22 Apr 2012 11:35:47 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:48092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLypF-000332-Dk for help-gnu-emacs@gnu.org; Sun, 22 Apr 2012 11:35:45 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M2W00G000EJZT00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sun, 22 Apr 2012 18:34:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.249.186]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2W00GVP0LVZ110@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sun, 22 Apr 2012 18:34:43 +0300 (IDT) In-reply-to: <87bomk5bh8.fsf@googlemail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 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:84597 Archived-At: > From: Thorsten > Date: Sun, 22 Apr 2012 12:04:19 +0200 > > Emacs aborting itself is especially annoying when you have a setting > with one Emacs daemon but lots of Emacs clients, i.e. when using WMs > like tmux or stumpwm to manage the Emacs windows. It is _always_ annoying. At least Emacs auto-saves everything, so you don't lose too much. > > The way to find out why is to run Emacs under a debugger. Then, when > > Emacs aborts, the debugger will kick in, and you will be able to poke > > around for reasons. > > That would be something like: > > ,--------------- > | gdb run emacsd > `--------------- > > ? No, I don't think so. (emacsd is a shell script, right?) The best way is to start Emacs as you normally would, then find out the PID (process ID) of the running Emacs process, and type "gdb -p PID" from a shell prompt. GDB will attach itself to Emacs; then, when GDB shows its prompt, type "continue", hit Enter, and use Emacs as usual.