From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Veksler Newsgroups: gmane.emacs.bugs Subject: bug#9720: gdb-mi hangs Date: Mon, 10 Oct 2011 20:50:50 +0200 Message-ID: <4E933E8A.7070802@tx.technion.ac.il> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090202070202030402080202" X-Trace: dough.gmane.org 1318274455 29811 80.91.229.12 (10 Oct 2011 19:20:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2011 19:20:55 +0000 (UTC) To: 9720@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 10 21:20:51 2011 Return-path: Envelope-to: geb-bug-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 1RDLP4-0004IA-NH for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Oct 2011 21:20:46 +0200 Original-Received: from localhost ([::1]:36779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDLP4-0002jJ-50 for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Oct 2011 15:20:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDL0x-0006Su-EQ for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 14:55:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDL0w-0006I1-4D for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 14:55:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDL0w-0006Hx-2b for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 14:55:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RDL18-000261-FX for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 14:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Veksler Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Oct 2011 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9720 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13182729558042 (code B ref -1); Mon, 10 Oct 2011 18:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Oct 2011 18:55:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RDL10-00025e-TD for submit@debbugs.gnu.org; Mon, 10 Oct 2011 14:55:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RDKwa-0001yu-K6 for submit@debbugs.gnu.org; Mon, 10 Oct 2011 14:51:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDKwH-000554-Ki for submit@debbugs.gnu.org; Mon, 10 Oct 2011 14:51:02 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:54004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDKwH-000550-IC for submit@debbugs.gnu.org; Mon, 10 Oct 2011 14:51:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDKwG-0005Fb-4b for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 14:51:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDKwE-00054e-P7 for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 14:51:00 -0400 Original-Received: from mailgw12.technion.ac.il ([132.68.225.12]:6534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDKwE-000548-FG for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 14:50:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0CAEU9k06ERAG2gWdsb2JhbABDqEIBARYmJYJFDTANFhgDAgECAVgGAgEBoQ6fVIdDBI5VikuMKw X-IronPort-AV: E=Sophos;i="4.68,518,1312146000"; d="scan'208";a="60638633" Original-Received: from tx2.technion.ac.il (HELO techunix.technion.ac.il) ([132.68.1.182]) by mailgw12.technion.ac.il with ESMTP; 10 Oct 2011 20:50:52 +0200 Original-Received: from [127.0.0.1] (tx1.technion.ac.il [132.68.1.180]) by techunix.technion.ac.il (Postfix) with ESMTP id 6F01832C02C for ; Mon, 10 Oct 2011 20:50:51 +0200 (IST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b2 Thunderbird/3.1.15 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 10 Oct 2011 14:55:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 10 Oct 2011 14:56:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Mon, 10 Oct 2011 15:20:43 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52485 Archived-At: This is a multi-part message in MIME format. --------------090202070202030402080202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, The behavior I see seems to be related to bug 6962. I attach a backtrace of the emacs process. While trying out the latest emacs from the git repository (similarly, gdb from git) I encountered an hang. This happens when I debug my C++ code under the new gdb-mi interface. I am no git expert and can't tell you the exact version of emacs. The last commit on my sandbox repository is: commit 520888a9da6c3c27122c2597f757e88c81b97989 Author: Paul Eggert Date: Fri Oct 7 00:23:44 2011 -0700 The hang happens when the inferior terminates. Sometimes it helps to kill the GDB process and press ctrl-g. It did not help this time. --- Thanks Michael --------------090202070202030402080202 Content-Type: text/plain; name="trace" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="trace" (gdb) bt #0 0x00000035874d9073 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:82 #1 0x00000000004ec183 in xg_select (max_fds=9, rfds=0x7fff5de2b3f0, wfds= 0x7fff5de2b370, efds=0x0, timeout=0x7fff5de2b550) at xgselect.c:100 #2 0x00000000005addb5 in wait_reading_process_output (time_limit=-1, microsecs=0, read_kbd=0, do_display=0, wait_for_cell=11942274, wait_proc= 0x3846cb0, just_wait_proc=0) at process.c:4599 #3 0x00000000005b09be in Faccept_process_output (process=59010229, seconds=, millisec=, just_this_one=) at process.c:3985 #4 0x000000000056f2fb in Ffuncall (nargs=, args=) at eval.c:2985 #5 0x00000000005a8376 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=, args=) at bytecode.c:785 #6 0x000000000056e764 in eval_sub (form=) at eval.c:2328 #7 0x00000000005719fc in internal_lisp_condition_case (var=11942274, bodyform= 58333670, handlers=58333798) at eval.c:1453 #8 0x00000000005a7a25 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=, args=) at bytecode.c:981 #9 0x000000000056ed4a in funcall_lambda (fun=58406821, nargs=0, arg_vector= 0x7fff5de2bb88) at eval.c:3205 #10 0x000000000056f16b in Ffuncall (nargs=1, args=0x7fff5de2bb80) at eval.c:3035 ---Type to continue, or q to quit--- #11 0x00000000005a8376 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=, args=) at bytecode.c:785 #12 0x000000000056ed4a in funcall_lambda (fun=58389461, nargs=0, arg_vector= 0x7fff5de2bd50) at eval.c:3205 #13 0x000000000056f16b in Ffuncall (nargs=1, args=0x7fff5de2bd48) at eval.c:3035 #14 0x000000000056f5d8 in call0 (fn=58359826) at eval.c:2728 #15 0x000000000056d481 in internal_condition_case (bfun= 0x4f97f0 , handlers=11942322, hfun= 0x4faef0 ) at eval.c:1499 #16 0x00000000004fae9a in safe_run_hook_funcall (nargs=, args=) at keyboard.c:1921 #17 0x000000000056dafc in run_hook_with_args (nargs=1, args=0x7fff5de2bf38, funcall=0x4fae60 ) at eval.c:2680 #18 0x00000000004fc66f in safe_run_hooks (hook=58359826) at keyboard.c:1938 #19 0x000000000050866e in command_loop_1 () at keyboard.c:1356 #20 0x000000000056d481 in internal_condition_case (bfun= 0x507660 , handlers=11994418, hfun=0x4fc4b0 ) at eval.c:1499 #21 0x00000000004faede in command_loop_2 (ignore=) at keyboard.c:1158 #22 0x000000000056d368 in internal_catch (tag=Cannot access memory at address 0xffffffffffffffea ) at eval.c:1256 #23 0x00000000004fbf6a in command_loop () at keyboard.c:1137 #24 recursive_edit_1 () at keyboard.c:757 #25 0x00000000004fc2ac in Frecursive_edit () at keyboard.c:821 ---Type to continue, or q to quit--- #26 0x00000000004f6a40 in main (argc=, argv=) at emacs.c:1706 (gdb) --------------090202070202030402080202--