From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yair F Newsgroups: gmane.emacs.bugs Subject: bug#6621: Emacs crash when trying to report emacs crash Date: Thu, 22 Jul 2010 22:55:24 +0300 Message-ID: References: <83d3urshi9.fsf@gnu.org> <834og3s1r0.fsf@gnu.org> <83pqyqqx9y.fsf@gnu.org> <83k4oxhk1c.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1279829264 20431 80.91.229.12 (22 Jul 2010 20:07:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 20:07:44 +0000 (UTC) Cc: 6621@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 22 22:07:41 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 1Oc23N-0005BS-BF for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 22:07:38 +0200 Original-Received: from localhost ([127.0.0.1]:51025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc23L-0006k1-LB for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 16:07:35 -0400 Original-Received: from [140.186.70.92] (port=58820 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc23A-0006ik-Bi for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:07:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oc238-0008WD-L7 for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:07:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56761) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc238-0008W8-JR for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:07:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oc1s9-00036m-Qy; Thu, 22 Jul 2010 15:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yair F Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2010 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6621 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6621-submit@debbugs.gnu.org id=B6621.127982853211937 (code B ref 6621); Thu, 22 Jul 2010 19:56:01 +0000 Original-Received: (at 6621) by debbugs.gnu.org; 22 Jul 2010 19:55:32 +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 1Oc1rg-00036U-5R for submit@debbugs.gnu.org; Thu, 22 Jul 2010 15:55:32 -0400 Original-Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc1rd-00036P-R2 for 6621@debbugs.gnu.org; Thu, 22 Jul 2010 15:55:30 -0400 Original-Received: by wwb18 with SMTP id 18so157428wwb.15 for <6621@debbugs.gnu.org>; Thu, 22 Jul 2010 12:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=NoE/fYeWs7iVqfVbZljbipM75zF8qn6CjwDStK47oNM=; b=BjYSOl70A8HeFmFzGcVw61QSJQ5wfhQxe86OPoZqaKrk89WmUj61O1wKJJWZbQukyn P7uqsDsvMxdtHjEGJYX/bRKxrsHscNX2zJqy2caQvpNnSD4uhfgdUOTM1cjlf7T6HklZ 3DipmZEXcwPH5+baHIiPaRayr9t8gH0xeleLE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mgArMdILB6Sw4e7GpuSRT/U+IKHxa1J1G4Qr4Szqch0DGPdXHul7+n3NJU0qWsB7al ybJ6zFGNLp3QfD6w3wyZDaaki7BuEnw/8bKecrRY9j7T9j3oBiP4hdG2lsq8zXuJkkeo /Y/FSHFvGOB5GoN+wN+nuc1ihisZ2aqLNikVc= Original-Received: by 10.216.178.149 with SMTP id f21mr2330137wem.40.1279828524531; Thu, 22 Jul 2010 12:55:24 -0700 (PDT) Original-Received: by 10.216.164.133 with HTTP; Thu, 22 Jul 2010 12:55:24 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 22 Jul 2010 15:56:01 -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:38775 Archived-At: Eli, Since Handa-san is appearnly unavailable I tried to investigate the crash myself. The problem that I know nothing about emacs' structure. All I can do is send the debug session. If you think that you can instruct me more on how to debug it let me know. I'll try to get something more meaningful. br 6138 if it->position.charpos==150 Breakpoint 7 at 0x809ca12: file xdisp.c, line 6138. (gdb) c Continuing. Breakpoint 7, set_iterator_to_next (it=0xbfffdeb4, reseat_p=1) at xdisp.c:6142 (gdb) p it->position.charpos $7 = 150 (gdb) pit cur=150[276] pos=150[276] start=128[235] end=151 stop=151 face=15 MB ch='@' vpos=6 hpos=17 y=102 lvy=646 x=114 vx=0-560 w=8 a+d=13+4=17 max=13+4=17 (gdb) p it->what $8 = IT_CHARACTER (gdb) p *it $9 = { window = 144783445, w = 0x8a13850, f = 0x8a136d0, method = GET_FROM_BUFFER, stop_charpos = 151, prev_stop = 0, base_level_stop = 0, end_charpos = 151, s = 0x0, string_nchars = 0, region_beg_charpos = -1, region_end_charpos = -1, redisplay_end_trigger_charpos = 0, multibyte_p = 1, header_line_p = 0, string_from_display_prop_p = 0, ellipsis_p = 0, avoid_cursor_p = 0, dp = 0x0, dpvec = 0x0, dpend = 0xbfffdf0c, dpvec_char_len = 1, dpvec_face_id = 16, saved_face_id = 15, ctl_chars = {376, 256, 0 }, start = { pos = { charpos = 128, bytepos = 235 }, overlay_string_index = -1, string_pos = { charpos = -1, bytepos = -1 }, dpvec_index = -1 }, current = { pos = { charpos = 150, bytepos = 276 }, overlay_string_index = -1, string_pos = { charpos = -1, bytepos = -1 }, dpvec_index = -1 }, n_overlay_strings = 0, overlay_strings = {0 }, string_overlays = {0 }, string = 142119346, from_overlay = 0, stack = {{ string = 0, string_nchars = 0, end_charpos = 0, stop_charpos = 0, prev_stop = 0, base_level_stop = 0, cmp_it = { stop_pos = 0, id = 0, ch = 0, rule_idx = 0, lookback = 0, nglyphs = 0, reversed_p = 0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0, slice = { x = 0, y = 0, width = 0, height = 0 }, image_id = 0 }, comp = { object = 0 }, stretch = { object = 0 } }, position = { charpos = 0, bytepos = 0 }, current = { pos = { charpos = 0, bytepos = 0 }, overlay_string_index = 0, string_pos = { charpos = 0, bytepos = 0 }, dpvec_index = 0 }, from_overlay = 0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, multibyte_p = 0, string_from_display_prop_p = 0, display_ellipsis_p = 0, avoid_cursor_p = 0, line_wrap = TRUNCATE, voffset = 0, space_width = 0, font_height = 0 }, { string = 0, string_nchars = 0, end_charpos = 0, stop_charpos = 0, prev_stop = 0, base_level_stop = 0, cmp_it = { stop_pos = 0, id = 0, ch = 0, rule_idx = 0, lookback = 0, nglyphs = 0, reversed_p = 0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0, slice = { x = 0, y = 0, width = 0, height = 0 }, image_id = 0 }, comp = { object = 0 }, stretch = { object = 0 } }, position = { charpos = 0, bytepos = 0 }, current = { pos = { charpos = 0, bytepos = 0 }, overlay_string_index = 0, string_pos = { charpos = 0, bytepos = 0 }, dpvec_index = 0 }, from_overlay = 0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, multibyte_p = 0, string_from_display_prop_p = 0, display_ellipsis_p = 0, avoid_cursor_p = 0, line_wrap = TRUNCATE, voffset = 0, space_width = 0, font_height = 0 }, { string = 0, string_nchars = 0, end_charpos = 0, stop_charpos = 0, prev_stop = 0, base_level_stop = 0, cmp_it = { stop_pos = 0, id = 0, ch = 0, rule_idx = 0, lookback = 0, nglyphs = 0, reversed_p = 0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0, slice = { x = 0, y = 0, width = 0, height = 0 }, image_id = 0 }, comp = { object = 0 }, stretch = { object = 0 } }, position = { charpos = 0, bytepos = 0 }, current = { pos = { charpos = 0, bytepos = 0 }, overlay_string_index = 0, string_pos = { charpos = 0, bytepos = 0 }, dpvec_index = 0 }, from_overlay = 0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, multibyte_p = 0, string_from_display_prop_p = 0, display_ellipsis_p = 0, avoid_cursor_p = 0, line_wrap = TRUNCATE, voffset = 0, space_width = 0, font_height = 0 }, { string = 0, string_nchars = 0, end_charpos = 0, stop_charpos = 0, prev_stop = 0, base_level_stop = 0, cmp_it = { stop_pos = 0, id = 0, ch = 0, rule_idx = 0, lookback = 0, nglyphs = 0, reversed_p = 0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0, slice = { x = 0, y = 0, width = 0, height = 0 }, image_id = 0 }, comp = { object = 0 }, stretch = { object = 0 } }, position = { charpos = 0, bytepos = 0 }, current = { pos = { charpos = 0, bytepos = 0 }, overlay_string_index = 0, string_pos = { charpos = 0, bytepos = 0 }, dpvec_index = 0 }, from_overlay = 0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, multibyte_p = 0, string_from_display_prop_p = 0, display_ellipsis_p = 0, avoid_cursor_p = 0, line_wrap = TRUNCATE, voffset = 0, space_width = 0, font_height = 0 }, { string = 0, string_nchars = 0, end_charpos = 0, stop_charpos = 0, prev_stop = 0, base_level_stop = 0, cmp_it = { stop_pos = 0, id = 0, ch = 0, rule_idx = 0, lookback = 0, nglyphs = 0, reversed_p = 0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0, slice = { x = 0, y = 0, width = 0, height = 0 }, image_id = 0 }, comp = { object = 0 }, stretch = { object = 0 } }, position = { charpos = 0, bytepos = 0 }, current = { pos = { charpos = 0, bytepos = 0 }, overlay_string_index = 0, string_pos = { charpos = 0, bytepos = 0 }, dpvec_index = 0 }, from_overlay = 0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, multibyte_p = 0, string_from_display_prop_p = 0, display_ellipsis_p = 0, avoid_cursor_p = 0, line_wrap = TRUNCATE, voffset = 0, space_width = 0, font_height = 0 }}, sp = 0, selective = 0, what = IT_CHARACTER, face_id = 15, selective_display_ellipsis_p = 1, ctl_arrow_p = 1, face_box_p = 0, start_of_box_run_p = 0, end_of_box_run_p = 0, overlay_strings_at_end_processed_p = 0, ignore_overlay_strings_at_pos_p = 0, glyph_not_available_p = 0, starts_in_middle_of_char_p = 0, face_before_selective_p = 0, constrain_row_ascent_descent_p = 0, line_wrap = WINDOW_WRAP, base_face_id = 0, c = 64, len = 1, cmp_it = { stop_pos = 151, id = -1, ch = -2, rule_idx = 2, lookback = 1, nglyphs = 2, reversed_p = 0, charpos = 149, nchars = 1, nbytes = 2, from = 1, to = 2, width = 0 }, char_to_display = 64, image_id = 0, slice = { x = 142119346, y = 142119346, width = 142119346, height = 142119346 }, space_width = 142119346, voffset = 0, tab_width = 8, font_height = 142119346, object = 149209493, position = { charpos = 150, bytepos = 276 }, truncation_pixel_width = 0, continuation_pixel_width = 0, first_visible_x = 0, last_visible_x = 560, last_visible_y = 646, extra_line_spacing = 0, max_extra_line_spacing = 0, override_ascent = -1, override_descent = 0, override_boff = 0, glyph_row = 0x8fb8448, area = TEXT_AREA, nglyphs = 1, pixel_width = 8, ascent = 13, descent = 4, max_ascent = 13, max_descent = 4, phys_ascent = 10, phys_descent = 2, max_phys_ascent = 13, max_phys_descent = 4, current_x = 114, continuation_lines_width = 0, eol_pos = { charpos = 0, bytepos = 0 }, current_y = 102, first_vpos = 0, vpos = 6, hpos = 17, left_user_fringe_bitmap = 0, right_user_fringe_bitmap = 0, left_user_fringe_face_id = 0, right_user_fringe_face_id = 0, bidi_p = 0, bidi_it = { bytepos = 0, charpos = 0, ch = 0, ch_len = 0, type = UNKNOWN_BT, type_after_w1 = UNKNOWN_BT, orig_type = UNKNOWN_BT, resolved_level = 0, invalid_levels = 0, invalid_rl_levels = 0, prev_was_pdf = 0, prev = { bytepos = 0, charpos = 0, type = UNKNOWN_BT, type_after_w1 = UNKNOWN_BT, orig_type = UNKNOWN_BT }, last_strong = { bytepos = 0, charpos = 0, type = UNKNOWN_BT, type_after_w1 = UNKNOWN_BT, orig_type = UNKNOWN_BT }, next_for_neutral = { bytepos = 0, charpos = 0, type = UNKNOWN_BT, type_after_w1 = UNKNOWN_BT, orig_type = UNKNOWN_BT }, prev_for_neutral = { bytepos = 0, charpos = 0, type = UNKNOWN_BT, type_after_w1 = UNKNOWN_BT, orig_type = UNKNOWN_BT }, next_for_ws = { bytepos = 0, charpos = 0, type = UNKNOWN_BT, type_after_w1 = UNKNOWN_BT, orig_type = UNKNOWN_BT }, next_en_pos = 0, ignore_bn_limit = 0, sor = NEUTRAL_DIR, scan_dir = 0, stack_idx = 0, level_stack = {{ level = 0, override = NEUTRAL_DIR } }, first_elt = 0, paragraph_dir = NEUTRAL_DIR, new_paragraph = 0, separator_limit = 0 }, paragraph_embedding = NEUTRAL_DIR } (gdb) s (gdb) s Here we are else if (it->cmp_it.id >= 0) (gdb) p it->cmp_it $10 = { stop_pos = 151, id = -1, ch = -2, rule_idx = 2, lookback = 1, nglyphs = 2, reversed_p = 0, charpos = 149, nchars = 1, nbytes = 2, from = 1, to = 2, width = 0 } (gdb) n Before xassert (it->len != 0); (gdb) p it->len $11 = 1 These are the damaging lines: IT_BYTEPOS (*it) += it->len; IT_CHARPOS (*it) += 1; (gdb) n (gdb) n (gdb) n (gdb) n Finally this fails: xassert (IT_BYTEPOS (*it) == CHAR_TO_BYTE (IT_CHARPOS (*it))); Breakpoint 1, abort () at emacs.c:430 (gdb) up #1 0x0809ce55 in set_iterator_to_next (it=0xbfffdeb4, reseat_p=1) at xdisp.c:6253 (gdb)