From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Does anybody know how to debug a live Emacs process? Date: Thu, 28 Apr 2016 11:07:56 +0300 Message-ID: <83d1paxijn.fsf@gnu.org> References: <874mamutlu.fsf@aol.com> Reply-To: Eli Zaretskii 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 1461830906 28214 80.91.229.3 (28 Apr 2016 08:08:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 08:08:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Live System User Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 28 10:08:21 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 1avgzi-0006Du-HL for ged-emacs-devel@m.gmane.org; Thu, 28 Apr 2016 10:08:18 +0200 Original-Received: from localhost ([::1]:47126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avgzh-0000AF-Oc for ged-emacs-devel@m.gmane.org; Thu, 28 Apr 2016 04:08:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avgze-00008I-Cs for emacs-devel@gnu.org; Thu, 28 Apr 2016 04:08:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avgzZ-0005Oo-Cd for emacs-devel@gnu.org; Thu, 28 Apr 2016 04:08:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avgzZ-0005Ok-A1; Thu, 28 Apr 2016 04:08:09 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3601 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1avgzY-0007Tm-Kg; Thu, 28 Apr 2016 04:08:09 -0400 In-reply-to: <874mamutlu.fsf@aol.com> (message from Live System User on Thu, 28 Apr 2016 02:37:17 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:203396 Archived-At: > 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. Thanks.