From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Live System User Newsgroups: gmane.emacs.devel Subject: Re: Does anybody know how to debug a live Emacs process? Date: Thu, 28 Apr 2016 06:24:36 -0400 Message-ID: <87inz2vxnf.fsf@aol.com> References: <874mamutlu.fsf@aol.com> <83d1paxijn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1461839126 32678 80.91.229.3 (28 Apr 2016 10:25:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 10:25:26 +0000 (UTC) Cc: Eli Zaretskii To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 28 12:25:18 2016 Return-path: Envelope-to: ged-emacs-devel@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 1avj8G-0007Ec-Bc for ged-emacs-devel@m.gmane.org; Thu, 28 Apr 2016 12:25:16 +0200 Original-Received: from localhost ([::1]:47828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avj8F-0003Yn-QI for ged-emacs-devel@m.gmane.org; Thu, 28 Apr 2016 06:25:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avj7w-0003S8-Ei for emacs-devel@gnu.org; Thu, 28 Apr 2016 06:25:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avj7t-000394-95 for emacs-devel@gnu.org; Thu, 28 Apr 2016 06:24:56 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avj7t-00038s-23 for emacs-devel@gnu.org; Thu, 28 Apr 2016 06:24:53 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1avj7q-00076t-Ea for emacs-devel@gnu.org; Thu, 28 Apr 2016 12:24:50 +0200 Original-Received: from c-50-163-96-131.hsd1.ma.comcast.net ([50.163.96.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2016 12:24:50 +0200 Original-Received: from nyc4bos by c-50-163-96-131.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2016 12:24:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-50-163-96-131.hsd1.ma.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) Cancel-Lock: sha1:CLfra/agycaFLmtnXjd9GAdOwTg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203397 Archived-At: Eli Zaretskii writes: Hi, >> From: Live System User >> Date: Thu, 28 Apr 2016 02:37:17 -0400 >> >> I have a live Emacs process that is stuck in a state which only >> displays: >> >> Invalid argument # in ‘get-device-terminal’ >> >> in the echo area, including when trying to execute M-x. >> >> I was hoping to solicit assistance to help obtain information to >> help Emacs and opened Bug#23378 on Monday. > > Attach the debugger to the running process, like this: > > gdb -p PID > > where PID is the process number of the Emacs process, you should be > able to see it in the display produced by the 'top' or 'ps' command. > > If GDB succeeds in attaching to the process, it will stop it and > display a "(gdb)" prompt. Then type at that prompt: > > thread apply all bt full > > Then file a bug report with everything that was displayed by GDB. > > Some additional information about debugging Emacs is available in the > file etc/DEBUG that is part of the distribution. I've added the GDB backtrace info to Bug#23378, as requested. Thanks.