From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs Subject: bug#29843: 25.3; Emacs crash when running emacsclient Date: Mon, 25 Dec 2017 10:22:16 -0800 Message-ID: <16338.1514226136@alto> References: <11278.1514147346@alto> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: blaine.gmane.org 1514226081 23421 195.159.176.226 (25 Dec 2017 18:21:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Dec 2017 18:21:21 +0000 (UTC) Cc: 29843@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 25 19:21:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTXN9-0005IQ-DF for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 19:21:11 +0100 Original-Received: from localhost ([::1]:57938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTXP6-0001jS-Dx for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 13:23:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTXP0-0001iu-9x for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 13:23:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTXOw-000459-Ay for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 13:23:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43395) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTXOw-000451-7E for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 13:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eTXOw-0000JP-0I for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 13:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Dec 2017 18:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29843-submit@debbugs.gnu.org id=B29843.15142261411134 (code B ref 29843); Mon, 25 Dec 2017 18:23:01 +0000 Original-Received: (at 29843) by debbugs.gnu.org; 25 Dec 2017 18:22:21 +0000 Original-Received: from localhost ([127.0.0.1]:52075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTXOH-0000IE-7I for submit@debbugs.gnu.org; Mon, 25 Dec 2017 13:22:21 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]:55605 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTXOF-0000I4-Ha for 29843@debbugs.gnu.org; Mon, 25 Dec 2017 13:22:20 -0500 Original-Received: from alto (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id vBPIMGan034718; Mon, 25 Dec 2017 10:22:17 -0800 (PST) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be alto In-Reply-To: Your message of "Mon, 25 Dec 2017 18:03:41 +0200." <83vaguiyle.fsf@gnu.org> X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.3.3 Content-ID: <16337.1514226136.1@alto> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141497 Archived-At: Eli Zaretskii wrote: > This segfault is here: > > static void > reconsider_clip_changes (struct window *w) > { > struct buffer *b = XBUFFER (w->contents); > > if (b->clip_changed > && w->window_end_valid > && w->current_matrix->buffer == b > && w->current_matrix->zv == BUF_ZV (b) > && w->current_matrix->begv == BUF_BEGV (b)) <<<<<<<<<<<<<<<<<< > b->clip_changed = false; > > So either w or b is a NULL or garbled pointer. Can you tell which > one? (Let me know if you need help with GDB commands to do that.) Hmm, I'm guessing that b is null. w->contents is zero, but I'm having some trouble figuring out what XBUFFER(0) would return, and gdb won't display b directly. I can't tell if w is garbled. (gdb) up 7 #7 reconsider_clip_changes (w=w@entry=0x3764378) at xdisp.c:13452 13452 if (b->clip_changed (gdb) print w $1 = (struct window *) 0x3764378 (gdb) print *w $2 = {header = {size = 4611686018494648343}, frame = 58081653, next = 58082661, prev = 0, parent = 0, normal_lines = 72039007, normal_cols = 72038999, new_total = 2, new_normal = 2, new_pixel = 2, contents = 0, start = 55248673, pointm = 55248593, old_pointm = 55248553, temslot = 0, vertical_scroll_bar = 0, vertical_scroll_bar_type = 43344, horizontal_scroll_bar = 0, horizontal_scroll_bar_type = 43344, display_table = 0, dedicated = 0, redisplay_end_trigger = 0, combination_limit = 112076805, window_parameters = 0, current_matrix = 0x0, desired_matrix = 0x0, prev_buffers = 115608467, next_buffers = 0, use_time = 2567, sequence_number = 151, pixel_left = 0, pixel_top = 0, left_col = 0, top_line = 0, pixel_width = 672, pixel_height = 560, total_cols = 84, total_lines = 35, hscroll = 0, min_hscroll = 0, hscroll_whole = 0, last_modified = 98, last_overlay_modified = 35, last_point = 1, base_line_number = 0, base_line_pos = 0, column_number_displayed = -1, nrows_scale_factor = 1, ncols_scale_factor = 1, cursor = {x = 0, y = 0, hpos = 0, vpos = 0}, phys_cursor = {x = 0, y = 0, hpos = 0, vpos = 0}, output_cursor = {x = 0, y = 0, hpos = 0, vpos = 0}, last_cursor_vpos = 0, phys_cursor_type = NO_CURSOR, phys_cursor_width = -1, phys_cursor_ascent = 0, phys_cursor_height = 0, left_fringe_width = -1, right_fringe_width = -1, left_margin_cols = 0, right_margin_cols = 0, scroll_bar_width = -1, scroll_bar_height = -1, mode_line_height = 16, header_line_height = -1, window_end_pos = 0, window_end_vpos = 14, mini = false, horizontal = false, update_mode_line = false, last_had_star = false, start_at_line_beg = true, force_start = false, optional_new_start = false, phys_cursor_on_p = false, cursor_off_p = false, last_cursor_off_p = false, must_be_updated_p = false, pseudo_window_p = false, fringes_outside_margins = false, window_end_valid = false, redisplay = true, suspend_auto_hscroll = false, vscroll = 0, window_end_bytepos = 0} (gdb) print b $3 = (gdb) print w.contents $4 = 0 [...] (gdb) print w.window_end_valid $6 = false (gdb) print w.current_matrix $7 = (struct glyph_matrix *) 0x0 (gdb) print /x w.header.size $8 = 0x4000000004025017 mike