From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#15025: emacs --daemon stuck in infinite loop Date: Fri, 09 Aug 2013 06:34:14 +0400 Message-ID: <52045526.8060404@yandex.ru> References: <4jpptql6gy.fsf@fencepost.gnu.org> <5201AD43.4040105@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376015719 32377 80.91.229.3 (9 Aug 2013 02:35:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 02:35:19 +0000 (UTC) Cc: 15025@debbugs.gnu.org To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 09 04:35:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1V7cXw-0008BL-Fc for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 04:35:20 +0200 Original-Received: from localhost ([::1]:50950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7cXw-0005WG-3l for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 22:35:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7cXm-0005QY-BN for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 22:35:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7cXf-0007lT-1Y for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 22:35:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7cXe-0007kp-UU for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 22:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V7cXd-00054E-Mi for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 22:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Aug 2013 02:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15025-submit@debbugs.gnu.org id=B15025.137601566919418 (code B ref 15025); Fri, 09 Aug 2013 02:35:01 +0000 Original-Received: (at 15025) by debbugs.gnu.org; 9 Aug 2013 02:34:29 +0000 Original-Received: from localhost ([127.0.0.1]:48378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7cX6-000537-OX for submit@debbugs.gnu.org; Thu, 08 Aug 2013 22:34:29 -0400 Original-Received: from forward9l.mail.yandex.net ([84.201.143.142]:59919) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7cX3-00052n-QR for 15025@debbugs.gnu.org; Thu, 08 Aug 2013 22:34:27 -0400 Original-Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward9l.mail.yandex.net (Yandex) with ESMTP id 4B593E60D8E; Fri, 9 Aug 2013 06:34:19 +0400 (MSK) Original-Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id F15441B6073C; Fri, 9 Aug 2013 06:34:18 +0400 (MSK) Original-Received: from 50.gprs.mts.ru (50.gprs.mts.ru [213.87.134.50]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id hEt5p0Ov6p-YIqiaA9k; Fri, 9 Aug 2013 06:34:18 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1376015658; bh=M8qpaHA6sjQEsl1NYtmRhTiAxX8/e/HAGoJNGCR8XYc=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Jv9+CVRuFr+CmUFv3+8PDRpHDjJRQ8JtEgkxrL9/R1eWoRkpr3KWYPy4eZXUYSLS3 +AVdLEjEuvPmBoYMJJHDYqd2kEuIBfbDPvcUWM+ed5Eh9vXha/xDjYts08otldFa9t 72xCTIAn1V59rQ98qIh72fwmi4uwk2NsfumPWfDY= Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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:77117 Archived-At: On 08/09/2013 05:23 AM, Dan Nicolaescu wrote: > What should I look for when that happens? > next_frame has that loop "while (passed < 2)" where emacs gets stuck, > but prev_frame does not. Any idea what can it make it get stuck there? Hm... strange values (dead frame?) in Vframe_list may be a reason. Next time when it's get stuck, attach gdb and examine: 1) `frame' arg of next_frame; 2) each entry in Vframe_list, like this: (gdb) call debug_print (Vframe_list) (#) (gdb) p *(struct frame *)0x102d390 $1 = {header = {size = 4611686018477891605}, name = {i = 12705553}, icon_name = {i = 10920482}, title = {i = 10920482}, focus_frame = {i = 10920482}, root_window = {i = 16966565}, selected_window = {i = 16966565}, minibuffer_window = {i = 16966997}, param_alist = {i = 19029702}, scroll_bars = {i = 17338645}, condemned_scroll_bars = {i = 10920482}, menu_bar_items = {i = 17188581}, face_alist = {i = 19032150}, menu_bar_vector = {i = 42561837}, buffer_predicate = {i = 10920482}, buffer_list = {i = 19028102}, buried_buffer_list = {i = 10920482}, tool_bar_window = {i = 10920482}, tool_bar_items = {i = 14190525}, tool_bar_position = {i = 10970402}, desired_tool_bar_string = {i = 10920482}, current_tool_bar_string = {i = 10920482}, face_cache = 0xc2f6a0, menu_bar_items_used = 0, namebuf = 0x0, current_pool = 0x0, desired_pool = 0x0, desired_matrix = 0x0, current_matrix = 0x0, glyphs_initialized_p = 1, resized_p = 0, force_flush_display_p = 0, default_face_done_p = 1, already_hscrolled_p = 0, updated_p = 1, minimize_tool_bar_window_p = 0, external_tool_bar = 1, tool_bar_lines = 0, n_tool_bar_rows = 0, n_tool_bar_items = 13, decode_mode_spec_buffer = 0xc69d20 "", insert_line_cost = 0x0, delete_line_cost = 0x0, insert_n_lines_cost = 0x0, delete_n_lines_cost = 0x0, text_lines = 34, text_cols = 80, total_lines = 0, total_cols = 84, new_text_lines = 0, new_text_cols = 0, left_pos = 0, top_pos = 0, pixel_height = 612, pixel_width = 756, x_pixels_diff = 600, y_pixels_diff = 85, win_gravity = 1, size_hint_flags = 0, border_width = 0, internal_border_width = 0, column_width = 9, line_height = 18, output_method = output_x_window, terminal = 0xf7cab8, output_data = {tty = 0xc1e160, x = 0xc1e160, w32 = 0xc1e160, ns = 0xc1e160, nothing = 12706144}, font_driver_list = 0x136d520, font_data_list = 0xc7c1c0, fringe_cols = 2, left_fringe_width = 9, right_fringe_width = 9, want_fullscreen = FULLSCREEN_NONE, menu_bar_lines = 0, external_menu_bar = 1, visible = 1, iconified = 0, garbaged = 0, has_minibuffer = 1, wants_modeline = 1, auto_raise = 0, auto_lower = 0, no_split = 0, explicit_name = 0, window_sizes_changed = 0, mouse_moved = 0, pointer_invisible = 0, vertical_scroll_bar_type = vertical_scroll_bar_right, desired_cursor = FILLED_BOX_CURSOR, cursor_width = 1, blink_off_cursor = DEFAULT_CURSOR, blink_off_cursor_width = 0, config_scroll_bar_width = 16, config_scroll_bar_cols = 2, scroll_bar_actual_width = 18, cost_calculation_baud_rate = 19200, alpha = {-1, -1}, gamma = 0, extra_line_spacing = 0, background_pixel = 16777215, foreground_pixel = 0} In particular, if you find the frame with zero f->terminal pointer, we have dead frames in the game, which is definitely wrong. Dmitry