From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#4078: 23.1; Forcibly breaking 'emacsclient -c' X connections can crash emacs. Date: Sat, 8 Aug 2009 12:05:56 -0700 (PDT) Message-ID: <200908081905.n78J5uv8006287@godzilla.ics.uci.edu> References: <200908072250.n77MoEEM007300@outgoing.mit.edu> Reply-To: Dan Nicolaescu , 4078@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249759633 28726 80.91.229.12 (8 Aug 2009 19:27:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Aug 2009 19:27:13 +0000 (UTC) Cc: 4078@emacsbugs.donarmstrong.com To: Nelson Elhage Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 08 21:27:05 2009 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.50) id 1MZrZI-0001bT-BS for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Aug 2009 21:27:04 +0200 Original-Received: from localhost ([127.0.0.1]:33753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZrZH-0005wJ-PG for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Aug 2009 15:27:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZrZ9-0005v9-T5 for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 15:26:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZrZ5-0005qi-JO for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 15:26:55 -0400 Original-Received: from [199.232.76.173] (port=39192 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZrZ5-0005qc-41 for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 15:26:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58347) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MZrZ4-0006YT-GJ for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2009 15:26:50 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n78JQmFG008319; Sat, 8 Aug 2009 12:26:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n78JF4dw007075; Sat, 8 Aug 2009 12:15:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 08 Aug 2009 19:15:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4078 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4078-submit@emacsbugs.donarmstrong.com id=B4078.12497583706411 (code B ref 4078); Sat, 08 Aug 2009 19:15:04 +0000 Original-Received: (at 4078) by emacsbugs.donarmstrong.com; 8 Aug 2009 19:06:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n78J69lG006387 for <4078@emacsbugs.donarmstrong.com>; Sat, 8 Aug 2009 12:06:10 -0700 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n78J5uVR019536; Sat, 8 Aug 2009 12:05:56 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n78J5uv8006287; Sat, 8 Aug 2009 12:05:56 -0700 (PDT) In-Reply-To: <200908072250.n77MoEEM007300@outgoing.mit.edu> (Nelson Elhage's message of "Fri, 7 Aug 2009 18:50:14 -0400 (EDT)") Original-Lines: 33 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n78J5uVR019536 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 08 Aug 2009 15:26:55 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:30007 Archived-At: Nelson Elhage writes: > Steps to reproduce: > (1) Run 'emacs --daemon' or 'emacs -nw' > (2) M-x server-start > (3) Run 'emacsclient -c' > (4) Run 'xkill' and click on the Emacs X window > (5) Run 'emacsclient -c' again > > Expected behavior: > > Another emacs X window pops up. > > Observed behavior: > > * A window pops up, but remains blank and non-responsive. > * The 'emacs -nw' window outputs an infinite stream of > (process:11200): GLib-WARNING (recursed) **: g_main_context_prepare() called recursively from within a source's check() or prepare() member > > At this point, 'emacsclient -t' still works properly, and killing the > new '-c' session seems to usually stop the GLib spew. > > > I captured a backtrace of emacs, interrupted while it was spewing that > warning endlessly. I appear to have caught it while logging the error, > so hopefully the stack is relevant. This is 100% reproducible for me, > so I can happily provide other stack traces if they would be useful. This is a long standing Gtk+ bug: http://bugzilla.gnome.org/show_bug.cgi?id=85715 If you configure emacs using --with-x-toolkit=lucid this problem will not happen.