From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Thompson Newsgroups: gmane.emacs.bugs Subject: bug#5802: emacsclient -c crashes emacs --daemon intermittently; have strace Date: Mon, 29 Mar 2010 15:08:21 -0700 Message-ID: <2a4ba2fd1003291508t5fccd372h2c13bbd3f19f83f7@mail.gmail.com> References: <2a4ba2fd1003251154w52283ce8w9a728b4d1e1c4170@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1269958506 31460 80.91.229.12 (30 Mar 2010 14:15:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2010 14:15:06 +0000 (UTC) To: 5802@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 30 16:15:02 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NwcDV-00038S-6z for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 16:14:53 +0200 Original-Received: from localhost ([127.0.0.1]:48317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwcDU-00046v-JR for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 10:14:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwNsU-0004Mb-8F for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 18:56:14 -0400 Original-Received: from [140.186.70.92] (port=58993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwNsQ-0004MT-Mp for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 18:56:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwNsM-0005pL-8D for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 18:56:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43795) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwNsM-0005pH-5i for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 18:56:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NwNZ0-0005lQ-Hx; Mon, 29 Mar 2010 18:36:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ryan Thompson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Mar 2010 22:36:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5802 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.126990214822027 (code B ref -1); Mon, 29 Mar 2010 22:36:06 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2010 22:35:48 +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 1NwNYf-0005iv-Tu for submit@debbugs.gnu.org; Mon, 29 Mar 2010 18:35:47 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwN97-00055a-SS for submit@debbugs.gnu.org; Mon, 29 Mar 2010 18:09:22 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:49615) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NwN93-0002Du-J6 for submit@debbugs.gnu.org; Mon, 29 Mar 2010 18:09:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwN92-0006hR-VI for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 18:09:17 -0400 Original-Received: from [140.186.70.92] (port=59907 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwN8j-0006Oc-GS for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 18:09:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwN8V-0007wC-Qd for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 18:08:57 -0400 Original-Received: from mail-yx0-f190.google.com ([209.85.210.190]:50233) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwN8V-0007vq-KB for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 18:08:43 -0400 Original-Received: by yxe28 with SMTP id 28so1096089yxe.27 for ; Mon, 29 Mar 2010 15:08:42 -0700 (PDT) Original-Received: by 10.231.14.193 with HTTP; Mon, 29 Mar 2010 15:08:21 -0700 (PDT) In-Reply-To: <2a4ba2fd1003251154w52283ce8w9a728b4d1e1c4170@mail.gmail.com> Original-Received: by 10.90.57.20 with SMTP id f20mr1754777aga.89.1269900521319; Mon, 29 Mar 2010 15:08:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 29 Mar 2010 18:35:44 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 29 Mar 2010 18:36:06 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 30 Mar 2010 10:12: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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35808 Archived-At: I am trying to set myself up using emacs --daemon so that I can easily manage multiple emacs frames within one process. However, I have hit a significant stumbling block. If I run emacs --daemon (or emacs -nw and then do (server-start) ) and then repeatedly run emacsclient -c and clost the resulting window, emacs will randomly crash. Sometimes it happens on the first time that I run emacsclient -c, sometimes on the 20th. I use Ubuntu 9.10, and I have reported this bug in Launchpad. However, I have also compiled both emacs 23.1 and trunk from vanilla sources, and both of these exhibit the same bug as the Ubuntu-packaged versions. I have generated some stack traces by the following procedure, as described at https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/543611 Open two terminals. In the first terminal, run the following commands to start emacs with strace: $ mkdir -p /tmp/emacs-strace $ strace -o /tmp/emacs-strace/trace-`date +%s`.log emacs -Q -nw When emacs has started, do M-x server-start so that emacsclient can work. Now, in the second terminal, run the following command: $ x=0; while emacsclient -c ; do x=$(( $x + 1 )); done; echo "Created $x windows before crash." Now, an emacs window will open. Close it. Each time you close a window, a new emacs window will open. Keep closing each one that appears. If emacs exhibits the bug, then eventually you will close one window, and emacs will crash when it tries to create the next one. At this point, you can go get your stack trace in /tmp/emacs-strace. I have generated several traces in this way, and in each one, the last 50 lines are identical except that certain hexadecimal numbers have changed. I tried sending this message with one of the traces attached, but I guess it was too large. Please reply to tell me how I can send a trace.