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: Tue, 30 Mar 2010 10:06:23 -0700 Message-ID: <2a4ba2fd1003301006w23d9110ch87068e1a6862a687@mail.gmail.com> References: <2a4ba2fd1003251154w52283ce8w9a728b4d1e1c4170@mail.gmail.com> <2a4ba2fd1003291508t5fccd372h2c13bbd3f19f83f7@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 1269969993 14539 80.91.229.12 (30 Mar 2010 17:26:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2010 17:26:33 +0000 (UTC) Cc: 5802@debbugs.gnu.org To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 30 19:26:29 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 1NwfCt-0004Lp-TQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 19:26:28 +0200 Original-Received: from localhost ([127.0.0.1]:51938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwfCs-0008EY-RP for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 13:26:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwfCE-0007zy-19 for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 13:25:46 -0400 Original-Received: from [140.186.70.92] (port=34304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwfCB-0007zR-5L for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 13:25:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwfC7-0003qD-TA for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 13:25:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47019) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwfC7-0003q5-Oy for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 13:25:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nweu6-0002h9-Cb; Tue, 30 Mar 2010 13:07:02 -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: Tue, 30 Mar 2010 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5802 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5802-submit@debbugs.gnu.org id=B5802.126996881110352 (code B ref 5802); Tue, 30 Mar 2010 17:07:02 +0000 Original-Received: (at 5802) by debbugs.gnu.org; 30 Mar 2010 17:06:51 +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 1Nwetv-0002gv-LZ for submit@debbugs.gnu.org; Tue, 30 Mar 2010 13:06:51 -0400 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwets-0002gp-Ug for 5802@debbugs.gnu.org; Tue, 30 Mar 2010 13:06:49 -0400 Original-Received: by pvh1 with SMTP id 1so6275757pvh.3 for <5802@debbugs.gnu.org>; Tue, 30 Mar 2010 10:06:43 -0700 (PDT) Original-Received: by 10.231.14.193 with HTTP; Tue, 30 Mar 2010 10:06:23 -0700 (PDT) In-Reply-To: Original-Received: by 10.115.117.40 with SMTP id u40mr872883wam.202.1269968803463; Tue, 30 Mar 2010 10:06:43 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Mar 2010 13:07:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:35817 Archived-At: On Tue, Mar 30, 2010 at 8:46 AM, Dan Nicolaescu wrote: > Ryan Thompson writes: > >> 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. > > This is very likely due to a long standing bug in Gtk+, see: > http://bugzilla.gnome.org/show_bug.cgi?id=85715 > > Please compile emacs using > > ./configure --with-x-toolkit=lucid > > and try to reproduce the problem you are seeing with that emacs. > I tried that; same problem. Would you like a stack trace?