From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: Re: Debugging printing to stderr prior glyph row values .... Date: Thu, 23 May 2019 17:03:36 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="266058"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 24 02:03:50 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTxgc-00177J-Ne for ged-emacs-devel@m.gmane.org; Fri, 24 May 2019 02:03:50 +0200 Original-Received: from localhost ([127.0.0.1]:44970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTxgb-0005SX-P8 for ged-emacs-devel@m.gmane.org; Thu, 23 May 2019 20:03:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTxgS-0005Qp-QR for emacs-devel@gnu.org; Thu, 23 May 2019 20:03:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTxgR-0006Ra-KC for emacs-devel@gnu.org; Thu, 23 May 2019 20:03:40 -0400 Original-Received: from gateway34.websitewelcome.com ([192.185.148.164]:45024) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hTxgQ-0006Pp-O5 for emacs-devel@gnu.org; Thu, 23 May 2019 20:03:39 -0400 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway34.websitewelcome.com (Postfix) with ESMTP id E53893A3DE for ; Thu, 23 May 2019 19:03:37 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id TxgPhtIKT2PzOTxgPhH9Ky; Thu, 23 May 2019 19:03:37 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ksfehlbRrkQvu2QU9zpMYv7BCDrM4rZVIqgx2GnaVNQ=; b=bqsrAstDhSLkLVvvovu0rV0wpd isu49Mt0ldmB5GT23dLwmyNWdx/bHitvJsWTXvAHvocrJpvqBx16l4L2at1kK9O1bB3kaZrdUA9WC sU5g8zHHjqiv8sFIEAqzPh1GUukxFC03WPYhrKG8ZGKDL8UamaQy8Z2hoA2Bcpq0EVD0evV7eVWz9 smDju4wGaripDO66f2I1ZxOI8oNlOMEzbHlUAomrsVB87M9G3MfWfaKZ6JLR8PNomOS08jy96YlTT rHWCiTCo2UHVSKyUj5NN4mkIwpPivBzSx9FNSuEnBzmpZ6+B+1wznmPgP4PJOr9h6bzvTnthu4xjf dRVtpHGQ==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51894 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1hTxgP-004DVl-3X; Thu, 23 May 2019 19:03:37 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1hTxgP-004DVl-3X X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:51894 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.148.164 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236954 Archived-At: I got it to crash ... again. "pgrowx previous_row" from gdb prints nothing and returns to a new gdb command prompt. [CAVEAT: I wanted a crash, so I did not insert a test for the 'used' member being greater than zero.] Program received signal SIGSEGV, Segmentation fault. 0x0000000100045d3b in mc_draw_row (w=0x11b88b838, matrix=0x11b1d3210, row=0x105c89200, start=0x105d24e00, x=0, hpos_length=1, vpos=18, bottom_vpos=40, active_p=true, cursor_matrix=0x1011319c0, fc_x=770, ch_foreground=..., fc_foreground=..., mc_zv=16, mc_zv_byte=16, draw_p=false, from_where=SCRIBE_ONE) at xdisp.c:4605 4605 fprintf (stderr, "\nA. vpos (%d) | glyph->charpos (%d) | posint (%d) | zv (%d) | zv_byte (%d)\n\ (gdb) pp w->contents # (gdb) pgrowx previous_row (gdb) pgrowx row TEXT: 1 glyphs 0 0: CHAR[ ] pos=-1 blev=0,btyp=UNDEF w=11 a+d=16+4 MB (gdb) print vpos $1 = 18 (gdb) print previous_row $2 = (struct glyph_row *) 0x105c89100 (gdb) print *previous_row $3 = { glyphs = {0x11a800000, 0x11a800000, 0x11a803520, 0x11a803520}, used = {0, 0, 0, 0}, hash = 0, x = 0, y = 344, pixel_width = 11, ascent = 16, height = 20, phys_ascent = 0, phys_height = 0, visible_height = 20, extra_line_spacing = 0, start = { pos = { charpos = 16, bytepos = 16 }, overlay_string_index = -1, string_pos = { charpos = -1, bytepos = -1 }, dpvec_index = -1 }, end = { pos = { charpos = 16, bytepos = 16 }, overlay_string_index = -1, string_pos = { charpos = -1, bytepos = -1 }, dpvec_index = -1 }, minpos = { charpos = 16, bytepos = 16 }, maxpos = { charpos = 16, bytepos = 16 }, overlay_arrow_bitmap = 0, left_user_fringe_bitmap = 0, right_user_fringe_bitmap = 0, left_fringe_bitmap = 0, right_fringe_bitmap = 0, left_user_fringe_face_id = 0, right_user_fringe_face_id = 0, left_fringe_face_id = 0, right_fringe_face_id = 0, left_fringe_offset = 0, right_fringe_offset = 0, fringe_bitmap_periodic_p = false, redraw_fringe_bitmaps_p = true, enabled_p = true, truncated_on_left_p = false, truncated_on_right_p = false, continued_p = false, displays_text_p = false, ends_at_zv_p = true, fill_line_p = false, indicate_empty_line_p = false, contains_overlapping_glyphs_p = false, full_width_p = false, mode_line_p = false, overlapped_p = false, ends_in_middle_of_char_p = false, starts_in_middle_of_char_p = false, overlapping_p = false, mouse_face_p = false, ends_in_newline_from_string_p = false, exact_window_width_line_p = false, cursor_in_fringe_p = false, ends_in_ellipsis_p = false, indicate_bob_p = false, indicate_top_line_p = false, indicate_eob_p = false, indicate_bottom_line_p = false, reversed_p = false, continuation_lines_width = 0, clip = 0x0 } ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > Date: [05-23-2019 11:38:25] <23 May 2019 21:38:25 +0300> > From: Eli Zaretskii > To: Keith David Bershatsky > CC: emacs-devel@gnu.org > Subject: Re: Debugging printing to stderr prior glyph row values .... > > > Date: Thu, 23 May 2019 10:23:03 -0700 > > From: Keith David Bershatsky > > Cc: emacs-devel@gnu.org > > > I will add a test for the `used` row member to ensure that it is positive. The crashing reported in the initial post only happens somtimes, so I'll need to do some further testing. > > Did you look at the problematic row with the GDB command "pgrowx"? > It's important to understand what kind of glyphs are in that row and > how many of them do you have there. > > * * *