From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 17 16:57:12 2024 Received: (at submit) by debbugs.gnu.org; 17 Jul 2024 20:57:12 +0000 Received: from localhost ([127.0.0.1]:36266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUBi3-00046h-0R for submit@debbugs.gnu.org; Wed, 17 Jul 2024 16:57:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:58698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUBhz-00046Y-OQ for submit@debbugs.gnu.org; Wed, 17 Jul 2024 16:57:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUBhw-0002xU-0r for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2024 16:57:04 -0400 Received: from fout3-smtp.messagingengine.com ([103.168.172.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUBhs-0001HJ-2H for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2024 16:57:03 -0400 Received: from compute8.internal (compute8.nyi.internal [10.202.2.227]) by mailfout.nyi.internal (Postfix) with ESMTP id D6892138014A for ; Wed, 17 Jul 2024 16:55:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute8.internal (MEProxy); Wed, 17 Jul 2024 16:55:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1721249755; x=1721336155; bh=XsFj5mdwarkY5OeBGPKiALGeBy++UfGv QJLo8iFchHk=; b=AP1HajZDe/5GQ7lE73q+tcub2y9jlVnvBy5cSoYNi9l1iN9u Xrka3jWm8jHEBB/gH8+/ZDF5LigTo8UObxY9jFIAeURevTMVFyDHH7p6/oCrljqD DzgPuoiH6Df1pYcas7U3gXTRlhy88EnMJsXlTCYyrdbZMWUBlDfdRTkt481JqN4H DQXzsFzY/AuhUJ8NLWyxAEfVUtd4jXHGiJKQkCVAGaCv1IqFwUhIq3U7crEL5fcE wmtMPcnh8RtjcI73nqBJfYAaXXFra73aCOX/A5Vjnm2nrJ0/qoKwsoXfkOt1Jpbu i6APmCBFnLgYNMGbqfujKxHT6VTYKeVVAbA1Hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1721249755; x=1721336155; bh=XsFj5mdwarkY5OeBGPKiALGeBy++UfGvQJL o8iFchHk=; b=LrX0VZmSlxCWvtDtGJ6Zl+RGH+CSr9FhsrodxtC7h50NhmTECPv ffpbLfXQHGbrF/nZHH4KLJ0VI32ZyDbMmLjc/2Nifo7TQvTv95oRnxJxaBYbwlB3 dJENnyxTaidwRyB0mIMQrwEibNUSf4g1n1KqaFu5S+oz/JsyxO6n/GjX7KR189O7 hjD/8JKUUxmI9vW9joWy/WYpKWrFr0Sx/Ap7U6uHkTxHTyOlDp2IRb8Gqz7Qt5I+ PoeYlXzsQIOsBrHHlIQRx51s93TK58J1KKYKAOznCdoots9WoA2bfAsIqWgoN/HU 0LTq1l5T9gXnVD+RI2xC2qmmbPqf/7peBQw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgeejgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddttd enucfhrhhomhepffhimhgrucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggv rdhnvghtqeenucggtffrrghtthgvrhhnpeeiteelvdfgieeuleeghffhueehkeetiedugf fhvefffffhjedugfetfeehhffhgeenucffohhmrghinhepshgvtghrvghtshgruhgtvgdr nhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe guihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 17 Jul 2024 16:55:53 -0400 (EDT) From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Intermittent crashing with recent emacs build Date: Wed, 17 Jul 2024 13:56:27 -0700 Message-ID: <87o76veo04.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=103.168.172.146; envelope-from=dima@secretsauce.net; helo=fout3-smtp.messagingengine.com X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FILL_THIS_FORM=0.001, FILL_THIS_FORM_LOAN=2.88, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) Hi. I'm running a bleeding-edge build of emacs. Using packages from: https://emacs.secretsauce.net/ Debian GNU/Linux. GTK+. Currently using a build from git as of 2024/07/09 (8e46f44ea0e). It is crashing periodically, with an unclear cause. This isn't a brand-new problem; I observed a similar crash with an earlier build: 2024/04/30 (d24981d27ce). After that crash I upgraded, and I see crashes still. Anecdotally, the 2024/04/30 build has been very stable. Today I started to debug a different issue: something about mu4e modeline updating is signalling args-out-of-range. To debug this I'm tweaking functions like (truncate-string-to-width), and re-evaluating them. This debugging isn't very interesting, but something about it is causing emacs to crash, with both builds. I just made a core. I cannot xbacktrace because (I think) I'm looking at a core, and not at a live process. If that would be helpful, I can probably get that. And I see the crash every 20min maybe, while debugging the mu4e modeline problem. Below is the backtrace. Hopefully this speaks to somebody. Thanks! (gdb) bt full #0 __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 tid = ret = 0 pd = old_mask = { __val = {0} } ret = #1 0x00007fc68a4a6b7f in __pthread_kill_internal (signo=6, threadid=) at ./nptl/pthread_kill.c:78 #2 0x00007fc68a4584e2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 ret = #3 0x0000561d3dcb9798 in terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40) at ./debian/build-x/src/emacs.c:469 #4 0x0000561d3dcb9d4e in emacs_abort () at ./debian/build-x/src/sysdep.c:2391 #5 0x0000561d3dcb6c34 in redisplay_window (window=, just_this_one_p=just_this_one_p@entry=false) at ./debian/build-x/src/xdisp.c:20086 w = 0x561d6bcb2bc8 f = buffer = old = lpoint = { charpos = , bytepos = } opoint = { charpos = , bytepos = } startp = { charpos = , bytepos = } update_mode_line = tem = it = { window = 0x0, w = 0x0, f = 0x0, method = GET_FROM_BUFFER, stop_charpos = 0, prev_stop = 0, base_level_stop = 0, end_charpos = 0, medium_narrowing_begv = 0, medium_narrowing_zv = 0, large_narrowing_begv = 0, large_narrowing_zv = 0, s = 0x0, string_nchars = 0, multibyte_p = false, tab_line_p = false, header_line_p = false, string_from_display_prop_p = false, string_from_prefix_prop_p = false, from_disp_prop_p = false, ellipsis_p = false, avoid_cursor_p = false, dp = 0x0, dpvec = 0x0, dpend = 0x0, dpvec_char_len = 0, dpvec_face_id = 0, saved_face_id = 0, ctl_chars = {0x0 }, start = { pos = { charpos = 0, bytepos = 0 }, overlay_string_index = 0, string_pos = { charpos = 0, bytepos = 0 }, dpvec_index = 0 }, current = { pos = { charpos = 0, bytepos = 0 }, overlay_string_index = 0, string_pos = { charpos = 0, bytepos = 0 }, dpvec_index = 0 }, n_overlay_strings = 0, overlay_strings_charpos = 0, overlay_strings = {0x0 }, string_overlays = {0x0 }, string = 0x0, from_overlay = 0x0, stack = {{ string = 0x0, 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 = false, parent_it = 0x0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0x0, slice = { x = 0x0, y = 0x0, width = 0x0, height = 0x0 }, image_id = 0 }, stretch = { object = 0x0 }, xwidget = { object = 0x0 } }, 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 = 0x0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, paragraph_embedding = NEUTRAL_DIR, multibyte_p = false, string_from_display_prop_p = false, string_from_prefix_prop_p = false, display_ellipsis_p = false, avoid_cursor_p = false, bidi_p = false, from_disp_prop_p = false, line_wrap = TRUNCATE, voffset = 0, space_width = 0x0, font_height = 0x0 }, { string = 0x0, 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 = false, parent_it = 0x0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0x0, slice = { x = 0x0, y = 0x0, width = 0x0, height = 0x0 }, image_id = 0 }, stretch = { object = 0x0 }, xwidget = { object = 0x0 } }, 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 = 0x0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, paragraph_embedding = NEUTRAL_DIR, multibyte_p = false, string_from_display_prop_p = false, string_from_prefix_prop_p = false, display_ellipsis_p = false, avoid_cursor_p = false, bidi_p = false, from_disp_prop_p = false, line_wrap = TRUNCATE, voffset = 0, space_width = 0x0, font_height = 0x0 }, { string = 0x0, 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 = false, parent_it = 0x0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0x0, slice = { x = 0x0, y = 0x0, width = 0x0, height = 0x0 }, image_id = 0 }, stretch = { object = 0x0 }, xwidget = { object = 0x0 } }, 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 = 0x0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, paragraph_embedding = NEUTRAL_DIR, multibyte_p = false, string_from_display_prop_p = false, string_from_prefix_prop_p = false, display_ellipsis_p = false, avoid_cursor_p = false, bidi_p = false, from_disp_prop_p = false, line_wrap = TRUNCATE, voffset = 0, space_width = 0x0, font_height = 0x0 }, { string = 0x0, 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 = false, parent_it = 0x0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0x0, slice = { x = 0x0, y = 0x0, width = 0x0, height = 0x0 }, image_id = 0 }, stretch = { object = 0x0 }, xwidget = { object = 0x0 } }, position = { charpos = 0, bytepos = 0 }, current = { pos = { charpos = 0, bytepos = 0 }, overlay_string_index = 0, string_pos = { charpos = 8589934595, bytepos = 395136991232 }, dpvec_index = 1 }, from_overlay = 0x0, area = ANY_AREA, method = 4294967295, paragraph_embedding = NEUTRAL_DIR, multibyte_p = false, string_from_display_prop_p = false, string_from_prefix_prop_p = false, display_ellipsis_p = false, avoid_cursor_p = false, bidi_p = false, from_disp_prop_p = false, line_wrap = TRUNCATE, voffset = 0, space_width = 0x0, font_height = 0x0 }, { string = 0x7ffd9fd78e10, string_nchars = 0, end_charpos = 0, stop_charpos = 0, prev_stop = 0, base_level_stop = 92, cmp_it = { stop_pos = 0, id = 0, ch = 0, rule_idx = 0, lookback = 0, nglyphs = 0, reversed_p = false, parent_it = 0x0, charpos = 524288, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, face_id = 0, u = { image = { object = 0x0, slice = { x = 0x0, y = 0x0, width = 0xffffffff, height = 0x0 }, image_id = 0 }, stretch = { object = 0x0 }, xwidget = { object = 0x0 } }, position = { charpos = 4294967296, bytepos = 47244640265 }, current = { pos = { charpos = 47244640259, bytepos = 42949672963 }, overlay_string_index = 42949672961, string_pos = { charpos = 1, bytepos = 0 }, dpvec_index = 0 }, from_overlay = 0x0, area = LEFT_MARGIN_AREA, method = GET_FROM_BUFFER, paragraph_embedding = NEUTRAL_DIR, multibyte_p = false, string_from_display_prop_p = false, string_from_prefix_prop_p = false, display_ellipsis_p = false, avoid_cursor_p = false, bidi_p = false, from_disp_prop_p = false, line_wrap = TRUNCATE, voffset = 0, space_width = 0x0, font_height = 0x0 }}, sp = 0, selective = 0, what = IT_CHARACTER, face_id = 0, selective_display_ellipsis_p = false, ctl_arrow_p = false, face_box_p = false, start_of_box_run_p = false, end_of_box_run_p = false, overlay_strings_at_end_processed_p = false, ignore_overlay_strings_at_pos_p = false, glyph_not_available_p = false, starts_in_middle_of_char_p = false, face_before_selective_p = false, constrain_row_ascent_descent_p = false, line_number_produced_p = false, align_visually_p = false, line_wrap = TRUNCATE, base_face_id = 0, c = 0, len = 0, cmp_it = { stop_pos = 0, id = 0, ch = 0, rule_idx = 0, lookback = 0, nglyphs = 0, reversed_p = false, parent_it = 0x0, charpos = 0, nchars = 0, nbytes = 0, from = 0, to = 0, width = 0 }, char_to_display = 0, glyphless_method = GLYPHLESS_DISPLAY_THIN_SPACE, image_id = 0, xwidget = 0x0, slice = { x = 0x0, y = 0x0, width = 0x0, height = 0x0 }, space_width = 0x0, voffset = 0, tab_width = 0, font_height = 0x0, object = 0x0, position = { charpos = 0, bytepos = 0 }, truncation_pixel_width = 0, continuation_pixel_width = 0, first_visible_x = 0, last_visible_x = 0, last_visible_y = 0, extra_line_spacing = 0, max_extra_line_spacing = 0, override_ascent = 0, override_descent = 0, override_boff = 0, glyph_row = 0x0, area = LEFT_MARGIN_AREA, nglyphs = 0, pixel_width = 0, ascent = 0, descent = 0, max_ascent = 0, max_descent = 0, phys_ascent = 0, phys_descent = 0, max_phys_ascent = 0, max_phys_descent = 0, current_x = 0, wrap_prefix_width = 0, continuation_lines_width = 0, eol_pos = { charpos = 0, bytepos = 0 }, current_y = 0, first_vpos = 0, vpos = 0, hpos = 0, lnum = 0, lnum_bytepos = 0, lnum_width = 0, lnum_pixel_width = 0, pt_lnum = 0, stretch_adjust = 0, left_user_fringe_bitmap = 0, right_user_fringe_bitmap = 0, left_user_fringe_face_id = 0, right_user_fringe_face_id = 0, bidi_p = false, bidi_it = { bytepos = 0, charpos = 0, ch = 0, nchars = 0, ch_len = 0, type = UNKNOWN_BT, type_after_wn = UNKNOWN_BT, orig_type = UNKNOWN_BT, resolved_level = 0 '\000', isolate_level = 0 '\000', invalid_levels = 0, invalid_isolates = 0, prev = { charpos = 0, type = UNKNOWN_BT, orig_type = UNKNOWN_BT }, last_strong = { charpos = 0, type = UNKNOWN_BT, orig_type = UNKNOWN_BT }, next_for_neutral = { charpos = 0, type = UNKNOWN_BT, orig_type = UNKNOWN_BT }, prev_for_neutral = { charpos = 0, type = UNKNOWN_BT, orig_type = UNKNOWN_BT }, next_for_ws = { charpos = 0, type = UNKNOWN_BT, orig_type = UNKNOWN_BT }, bracket_pairing_pos = 0, bracket_enclosed_type = UNKNOWN_BT, next_en_pos = 0, next_en_type = UNKNOWN_BT, sos = NEUTRAL_DIR, scan_dir = 0, disp_pos = 0, disp_prop = 0, stack_idx = 0, level_stack = {{ next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' } , { next_for_neutral_pos = 140727285151856, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 1, next_for_neutral_type = 0, last_strong_type = 7, prev_for_neutral_type = 1, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 140727285151848, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 6692952454725819392, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140727285151856, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 1, next_for_neutral_type = 5, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 384, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 3, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 94683592258741, next_for_neutral_type = 1, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140727285151856, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 5, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 94683591719329, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 4, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 94683593201994, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 6, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 22, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 33168, next_for_neutral_type = 5, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 6, next_for_neutral_type = 0, last_strong_type = 2, prev_for_neutral_type = 0, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 94683593203763, next_for_neutral_type = 5, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 94683623854741, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 6, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 94683593201994, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 6, next_for_neutral_type = 5, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140727285152152, next_for_neutral_type = 0, last_strong_type = 6, prev_for_neutral_type = 6, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 6, next_for_neutral_type = 1, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 94683623854741, next_for_neutral_type = 0, last_strong_type = 2, prev_for_neutral_type = 1, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 6692952454725819392, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 2, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 1, next_for_neutral_type = 1, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140490765053792, next_for_neutral_type = 0, last_strong_type = 5, prev_for_neutral_type = 3, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 6692952454725819392, next_for_neutral_type = 7, last_strong_type = 1, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140490764807742, next_for_neutral_type = 0, last_strong_type = 2, prev_for_neutral_type = 6, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 64424511301, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 94683879045328, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 6, level = 134 '\206', flags = 142 '\216' }, { next_for_neutral_pos = 1, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 7, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 7, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 140490770859150, next_for_neutral_type = 1, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 15, next_for_neutral_type = 4, last_strong_type = 7, prev_for_neutral_type = 7, level = 255 '\377', flags = 255 '\377' }, { next_for_neutral_pos = -168884986026394, next_for_neutral_type = 5, last_strong_type = 6, prev_for_neutral_type = 2, level = 237 '\355', flags = 133 '\205' }, { next_for_neutral_pos = 6692952454725819392, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 1, next_for_neutral_type = 1, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140490765053792, next_for_neutral_type = 1, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 35662986, next_for_neutral_type = 7, last_strong_type = 1, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140490764807742, next_for_neutral_type = 5, last_strong_type = 2, prev_for_neutral_type = 2, level = 196 '\304', flags = 63 '?' }, { next_for_neutral_pos = 64424511301, next_for_neutral_type = 7, last_strong_type = 7, prev_for_neutral_type = 7, level = 255 '\377', flags = 255 '\377' }, { next_for_neutral_pos = 94683879045328, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 6, level = 134 '\206', flags = 142 '\216' }, { next_for_neutral_pos = 1, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 2, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 2, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 140490770859150, next_for_neutral_type = 2, last_strong_type = 2, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 15, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = -196480571978419, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 7, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 1, next_for_neutral_type = 0, last_strong_type = 2, prev_for_neutral_type = 0, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 6, prev_for_neutral_type = 1, level = 253 '\375', flags = 61 '=' }, { next_for_neutral_pos = 6692952454725819392, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 0, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 1, next_for_neutral_type = 1, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140490765053792, next_for_neutral_type = 1, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 35662986, next_for_neutral_type = 7, last_strong_type = 1, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 140490764807742, next_for_neutral_type = 0, last_strong_type = 2, prev_for_neutral_type = 7, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 64424511301, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 94683879045328, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 6, level = 134 '\206', flags = 142 '\216' }, { next_for_neutral_pos = 1, next_for_neutral_type = 0, last_strong_type = 4, prev_for_neutral_type = 5, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 6, level = 215 '\327', flags = 159 '\237' }, { next_for_neutral_pos = 140490770859150, next_for_neutral_type = 1, last_strong_type = 6, prev_for_neutral_type = 5, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 15, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = -196480571978419, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }, { next_for_neutral_pos = 0, next_for_neutral_type = 0, last_strong_type = 0, prev_for_neutral_type = 0, level = 0 '\000', flags = 0 '\000' }}, string = { lstring = 0x0, s = 0x0, schars = 0, bufpos = 0, from_disp_str = false, unibyte = false }, w = 0x0, paragraph_dir = NEUTRAL_DIR, separator_limit = 0, first_elt = false, new_paragraph = false, frame_window_p = false }, paragraph_embedding = NEUTRAL_DIR, min_width_property = 0x0, min_width_start = 0 } current_matrix_up_to_date_p = false used_current_matrix_p = false temp_scroll_step = false rc = centering_position = -1 last_line_misfit = false beg_unchanged = end_unchanged = frame_line_height = margin = use_desired_matrix = itdata = 0x0 #6 0x0000561d3dd2db23 in redisplay_window_0 (window=window@entry=0x561d6bcb2bcd) at ./debian/build-x/src/xdisp.c:18032 #7 0x0000561d3de860da in internal_condition_case_1 (bfun=bfun@entry=0x561d3dd2daf0 , arg=arg@entry=0x561d6bcb2bcd, handlers=, hfun=hfun@entry=0x561d3dce3310 ) at ./debian/build-x/src/eval.c:1637 val = c = 0x561d3ef56ad0 #8 0x0000561d3dcdfb3a in redisplay_windows (window=0x561d6bcb2bcd) at ./debian/build-x/src/xdisp.c:18001 w = 0x561d6bcb2bc8 #9 0x0000561d3dd14ea3 in redisplay_internal () at ./debian/build-x/src/xdisp.c:17400 gcscrollbars = f = 0x561d6bcb2940 w = sw = fr = pending = must_finish = match_p = tlbufpos = { charpos = , bytepos = } tlendpos = { charpos = , bytepos = } number_of_visible_frames = sf = polling_stopped_here = true tail = 0x561d6e1ae933 frame = 0x561d6bcb2945 hscroll_retries = garbaged_frame_retries = consider_all_windows_p = update_miniwindow_p = #10 0x0000561d3dd16509 in redisplay () at ./debian/build-x/src/xdisp.c:16575 #11 0x0000561d3de018d7 in read_char (commandflag=1, map=map@entry=0x561d6dc6f213, prev_event=0x0, used_mouse_menu=used_mouse_menu@entry=0x7ffd9fd7bc8b, end_time=end_time@entry=0x0) at ./debian/build-x/src/keyboard.c:2678 echo_current = false c = local_getcjmp = {{ __jmpbuf = {94683599852320, 5898495886293811139, 140490622174464, 0, 1, 1, 5898495886388182979, 151695970901639107}, __mask_was_saved = 0, __saved_mask = { __val = {0, 140727285168672, 140490622174584, 140490622174584, 0, 0, 128770, 0, 32191, 32193, 6692952454725819392, 12884901888, 94683623736432, 94683615050064, 2, 140727285168720} } }} save_jump = {{ __jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = { __val = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94683592684623, 0, 0, 2, 94683592073760, 140727285162272} } }} tem = save = previous_echo_area_message = 0x0 also_record = 0x0 reread = false recorded = false polling_stopped_here = false orig_kboard = 0x561d3f9e1b40 #12 0x0000561d3de04ba2 in read_key_sequence (keybuf=keybuf@entry=0x7ffd9fd7bdf0, prompt=prompt@entry=0x0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false, disable_text_conversion_p=false) at ./debian/build-x/src/keyboard.c:10743 interrupted_kboard = 0x561d3f9e1b40 interrupted_frame = 0x561d6bcb2940 key = used_mouse_menu = false echo_local_start = 0 last_real_key_start = 0 keys_local_start = 0 new_binding = t = 0 echo_start = 0 keys_start = 0 current_binding = 0x561d6dc6f213 first_unbound = 31 mock_input = 0 used_mouse_menu_history = {false } fkey = { parent = 0x7fc6835340d3, map = 0x7fc6835340d3, start = 0, end = 0 } keytran = { parent = 0x7fc68609cdeb, map = 0x7fc68609cdeb, start = 0, end = 0 } indec = { parent = 0x7fc6835340e3, map = 0x7fc6835340e3, start = 0, end = 0 } shift_translated = delayed_switch_frame = original_uppercase_position = disabled_conversion = fake_prefixed_keys = 0x0 first_event = 0x0 second_event = #13 0x0000561d3de06d18 in command_loop_1 () at ./debian/build-x/src/keyboard.c:1429 cmd = keybuf = {0x561d6dc6f973, 0x5ce224cbfa82dc00, 0xa0, 0x60, 0x0, 0x0, 0x111f0, 0x561d3df83ba8, 0x7ffd9fd7bea0, 0x561d3de874b3 , 0x7ffd9fd7bec0, 0x2, 0xb, 0x111f0, 0x30, 0x561d6d06628d, 0x7fc68572e9cc, 0x561d6ca84763, 0x60, 0x7ffd9fd7bec0, 0x2, 0x7ffd9fd7e3ae, 0x7ffd9fd7bf20, 0x561d3ddfa492 , 0x0, 0x0, 0xb300, 0x561d3df83ba8, 0x7ffd9fd7bf40, 0x561d3de874b3 } i = last_pt = prev_modiff = 3094 prev_buffer = 0x561d6d066288 #14 0x0000561d3de8603e in internal_condition_case (bfun=bfun@entry=0x561d3de06b40 , handlers=handlers@entry=0x90, hfun=hfun@entry=0x561d3ddfa320 ) at ./debian/build-x/src/eval.c:1613 val = c = 0x561d3ef4cce0 #15 0x0000561d3ddf1e66 in command_loop_2 (handlers=handlers@entry=0x90) at ./debian/build-x/src/keyboard.c:1168 val = #16 0x0000561d3de85f97 in internal_catch (tag=tag@entry=0x12300, func=func@entry=0x561d3ddf1e30 , arg=arg@entry=0x90) at ./debian/build-x/src/eval.c:1292 val = c = 0x561d3efe0280 #17 0x0000561d3ddf1df1 in command_loop () at ./debian/build-x/src/keyboard.c:1146 #18 0x0000561d3ddf9e59 in recursive_edit_1 () at ./debian/build-x/src/keyboard.c:754 val = #19 0x0000561d3ddfa21c in Frecursive_edit () at ./debian/build-x/src/keyboard.c:837 buffer = #20 0x0000561d3dcc2f9d in main (argc=2, argv=0x7ffd9fd7c2e8) at ./debian/build-x/src/emacs.c:2624 stack_bottom_variable = 0x561d3eecc050 old_argc = no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = dump_mode = skip_args = 1 temacs = 0x0 attempt_load_pdump = only_version = false rlim = { rlim_cur = 10022912, rlim_max = 18446744073709551615 } lc_all = sockfd = -1 module_assertions = From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 17 21:45:58 2024 Received: (at 72165) by debbugs.gnu.org; 18 Jul 2024 01:45:58 +0000 Received: from localhost ([127.0.0.1]:36451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUGDW-00036s-HD for submit@debbugs.gnu.org; Wed, 17 Jul 2024 21:45:58 -0400 Received: from fout7-smtp.messagingengine.com ([103.168.172.150]:60253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUGDS-00036c-9j for 72165@debbugs.gnu.org; Wed, 17 Jul 2024 21:45:56 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id 4032E13801A6 for <72165@debbugs.gnu.org>; Wed, 17 Jul 2024 21:45:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 17 Jul 2024 21:45:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1721267145; x=1721353545; bh=tEhChJXzSgHIKSqQIj+P0+pOtKHQKR9g mrp/SWqNz0U=; b=I0ApgdXpHOpvhhkzYGGPkoh/7h2Ygf+jkDXxF8gN9/5O9mDx zGXL3sFwTbnIQAPsbqJuGEVPff9/vKanHX2guIPrzXYkmBQBZI+3ZiR95PKFHkjh F1GPiwonsWbeeT9PVPMRG0BjatLuC5vinpXAT3MXBVTk2dp69MLg0K3RshhcT5HX NQSN9SSZvDTTsISJxeipKQV4IsSuMjfOvhp42gM6UazAhLFEcvN+Whof7oQlwR34 jhlWB47rRtDlpeZHnWze7j4nuyW3dft0afvl8ykQMZHmatSfo9+xHrGf4HDArZVB PxIIvhG0PyAea7bEIWFBJWky6ecgxMImFPzE5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1721267145; x=1721353545; bh=tEhChJXzSgHIKSqQIj+P0+pOtKHQKR9gmrp /SWqNz0U=; b=IQ58ZwAfDHiZyfYiSFC3bMuMVlLq7BXSLR5Tv3QjIiXlSCi6aRa VQKa4MqGd6oWRAgYqPxxhbPePk6EHVl8wROkrZJBTvsFqRWOhAia7W5Jc1xIn/mG lMJqlKjycBAwbeN31lFovnoLwdyEEYNtcjTszpaDuQZP7sxvv9jpa/WwPDqgutCY V8abeAT0j4j1gTVH5mW31GopMmAWlY9vMxy+S4E+Xn6PbErDT+eAuAj59Igt/x5U q8bYsCvX8yHFmpPX4ORiQTlZ38vccSiyaspVgA/8E1VxasVv8P5I/ViPwdD4RXll Qr55WaDnMB1BTgRtuLX/gCik7QS56xBUUsA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgeekgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddttd enucfhrhhomhepffhimhgrucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggv rdhnvghtqeenucggtffrrghtthgvrhhnpeekuedtgfffvddvveefjeejtefgheefteehud efvdetieefhedtteevueffheehudenucffohhmrghinhepghhithhhuhgsrdgtohhmnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughimhgrse hsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <72165@debbugs.gnu.org>; Wed, 17 Jul 2024 21:45:42 -0400 (EDT) From: Dima Kogan To: 72165@debbugs.gnu.org Subject: More info Date: Wed, 17 Jul 2024 18:46:11 -0700 Message-ID: <87h6cn79r0.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I looked at the backtrace a bit. Here's the failing assert: https://github.com/dkogan/emacs-snapshot/blob/439ec471961b764b51483b74ea13777ed560fd74/src/xdisp.c#L20086 This is false: Z == Z_BYTE && CHARPOS (opoint) != BYTEPOS (opoint) The backtrace is silent about the specific values of each of these, but I can try to get them. Debugging suggestions welcome. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 18 00:59:13 2024 Received: (at 72165) by debbugs.gnu.org; 18 Jul 2024 04:59:13 +0000 Received: from localhost ([127.0.0.1]:36665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUJEX-0008I5-50 for submit@debbugs.gnu.org; Thu, 18 Jul 2024 00:59:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUJES-0008Hp-P7 for 72165@debbugs.gnu.org; Thu, 18 Jul 2024 00:59:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUJEI-0004yy-Pz; Thu, 18 Jul 2024 00:58:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UqFS4V0h0EK40a/9uobrkMpgNViIpCBQG2+xqeen6fs=; b=G7FCEtHWLkRw OsSuU27jRF7i08Xm5lT87WhX3fkrFw/UVkAQoEzZ6DIBrhJ8CEp1OfgMoIQPJQloOgoX8tQ1Vlh6m zV1XHBqNcq7eVFT0ROCfcRwE6DPQslaum8FPCUVzRSx2iAYptj/bcgmSV/dDGHxnS+//8webFl5Lq 2d0MkqNqXtkCCHKbk8xzovcXUzhTx6XvOiKHBvd7WV5XjDvCxGFc+15QfAhwu4p7LB2boBCoEm3+I IT+SOfiZMezVfd8DPTIiEwBLk7d8KagS2601HWLrEWqzf8rwGdXPlK61XndvFQeHOLAjJHUsD4v5P gmIqSwNdLtgv/baZpILL8g==; Date: Thu, 18 Jul 2024 07:58:54 +0300 Message-Id: <8634o7gusx.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <87o76veo04.fsf@secretsauce.net> (message from Dima Kogan on Wed, 17 Jul 2024 13:56:27 -0700) Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build References: <87o76veo04.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Dima Kogan > Date: Wed, 17 Jul 2024 13:56:27 -0700 > > I'm running a bleeding-edge build of emacs. Using packages from: > > https://emacs.secretsauce.net/ > > Debian GNU/Linux. GTK+. Currently using a build from git as of > 2024/07/09 (8e46f44ea0e). It is crashing periodically, with an unclear > cause. > > This isn't a brand-new problem; I observed a similar crash with an earlier > build: 2024/04/30 (d24981d27ce). After that crash I upgraded, and I see > crashes still. > > Anecdotally, the 2024/04/30 build has been very stable. Today I started > to debug a different issue: something about mu4e modeline updating is > signalling args-out-of-range. To debug this I'm tweaking functions like > (truncate-string-to-width), and re-evaluating them. This debugging isn't > very interesting, but something about it is causing emacs to crash, with > both builds. So when you say that "anecdotally, the 2024/04/30 build has been very stable", what exactly do you mean? It sounds like both that build and the one from 2024/07/09 crash in the same way, so why do you consider the April one "very stable"? > I just made a core. I cannot xbacktrace because (I think) I'm looking at > a core, and not at a live process. If that would be helpful, I can > probably get that. And I see the crash every 20min maybe, while > debugging the mu4e modeline problem. Below is the backtrace. Hopefully > this speaks to somebody. Thanks! Thanks, but please always try to supply the information that explains the crash, not just the backtrace. (In this case, it's a deliberate abort, not a crash, but still.) That means look at the source code where GDB says the problem happens and print the values of the variables involved in the crash. In this case: > (gdb) bt full > #0 __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 > tid = > ret = 0 > pd = > old_mask = { > __val = {0} > } > ret = > #1 0x00007fc68a4a6b7f in __pthread_kill_internal (signo=6, threadid=) at ./nptl/pthread_kill.c:78 > #2 0x00007fc68a4584e2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 > ret = > #3 0x0000561d3dcb9798 in terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40) at ./debian/build-x/src/emacs.c:469 > #4 0x0000561d3dcb9d4e in emacs_abort () at ./debian/build-x/src/sysdep.c:2391 > #5 0x0000561d3dcb6c34 in redisplay_window (window=, just_this_one_p=just_this_one_p@entry=false) at ./debian/build-x/src/xdisp.c:20086 The call to emacs_abort seems to be here: /* Some sanity checks. */ CHECK_WINDOW_END (w); if (Z == Z_BYTE && CHARPOS (opoint) != BYTEPOS (opoint)) emacs_abort (); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Now, your "bt full" doesn't help to understand what went wrong because GDB is unable to find the values of many variables: > w = 0x561d6bcb2bc8 > f = > buffer = > old = > lpoint = { > charpos = , > bytepos = > } > opoint = { > charpos = , > bytepos = > } Still, at least Z and Z_BYTE should be available; what are their values? And regarding opoint, look back in the code a small ways to where it was defined: SET_TEXT_POS (opoint, PT, PT_BYTE); If you look up the definition of SET_TEXT_POS, you will see: /* Set character position of POS to CHARPOS, byte position to BYTEPOS. */ #define SET_TEXT_POS(POS, CHARPOS, BYTEPOS) \ ((POS).charpos = (CHARPOS), (POS).bytepos = BYTEPOS) which means opoint takes its character position from PT and its byte position from PT_BYTE. So if you print the values of PT and PT_BYTE, we will know the ("optimized-out") values of opoint.charpos and opoint.bytepos, and will probably be able to understand why we aborted. IOW: (gdb) frame 5 (gdb) print Z (gdb) print Z_BYTE (gdb) print PT (gdb) pt PT_BYTE (The "frame 5" command is to get to the callstack frame where we call emacs_abort, shown as #5 at the right edge of the backtrace line.) If GDB says it doesn't know about these variables with up-cased names, like Z and PT_BYTE, it means your Emacs was built without macro information (the -g3 compiler option), and you will need to type the macro definitions instead. For example (from buffer.h): #define PT (current_buffer->pt + 0) So instead of "print PT" you will need to say "print current_buffer->pt". And similarly with other variables above. Next question is: what buffer did Emacs try to display? To answer that, print the name of the buffer that is current in this place in the code: (gdb) print current_buffer->name_ (gdb) xstring If GDB says it doesn't know what "xstring" is, type: (gdb) source /path/to/emacs/src/.gdbinit and then repeat the above 2 commands. Once you know which buffer was being displayed, try to describe the text that was in it, if you can. (If you cannot, I can give instructions how to find it out using GDB commands.) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 18 01:09:56 2024 Received: (at 72165) by debbugs.gnu.org; 18 Jul 2024 05:09:56 +0000 Received: from localhost ([127.0.0.1]:36674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUJOt-0000F7-Lh for submit@debbugs.gnu.org; Thu, 18 Jul 2024 01:09:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUJOr-0000Er-DL for 72165@debbugs.gnu.org; Thu, 18 Jul 2024 01:09:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUJOi-0000DK-2b; Thu, 18 Jul 2024 01:09:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UkmSXHDnY5TOkqD0ehiDNL/8GaqA/VD04XtNIH6KAag=; b=atIep6E5hfaK YtzNUl8njiV/ay3nNqyXTvzh/sR6+9BjLeRK42TCeg9HT/SO2G6/dd2fi2PEJoodCM5aynu0KP9qq 9bQ0nhF1sWDxA1T4UpZHzMcqVHQs+eW1XTByqJWQXBbJfzvwXiwX9HPsb4p4GdwSCkNg+S2zZbpq7 1UiYVU6iphwG5IYICsr069qIcUBHWR4IVSEJsfdetuzgZkPzPUBUu3mwJBKhiVZuSAhRPftHVMCq4 v5Koutbr54o+Vyirt2Cc9YbKHzI5VkUmbmA6hb80q5d5gx4CNtRsVgk9GXXayAR/vse2h9heUlvKY xzZpKRO3IdRp1YtzcyKm4g==; Date: Thu, 18 Jul 2024 08:09:42 +0300 Message-Id: <86zfqfffqh.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <87h6cn79r0.fsf@secretsauce.net> (message from Dima Kogan on Wed, 17 Jul 2024 18:46:11 -0700) Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build References: <87o76veo04.fsf@secretsauce.net> <87h6cn79r0.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [Please don't change the Subject line when you reply, to avoid confusing the bug tracker and disrupting MUA threading.] > From: Dima Kogan > Date: Wed, 17 Jul 2024 18:46:11 -0700 > > I looked at the backtrace a bit. Here's the failing assert: > > https://github.com/dkogan/emacs-snapshot/blob/439ec471961b764b51483b74ea13777ed560fd74/src/xdisp.c#L20086 > > This is false: > > Z == Z_BYTE && CHARPOS (opoint) != BYTEPOS (opoint) Did you mean "true" instead if "false"? If the above is false, then the call to emacs_abort after that if could not have possible been the one which caused the abort. The line number information in an optimized build could be inaccurate, so it is important to establish which condition caused the abort. > The backtrace is silent about the specific values of each of these, but > I can try to get them. Debugging suggestions welcome. See my other message. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 18 03:24:56 2024 Received: (at 72165) by debbugs.gnu.org; 18 Jul 2024 07:24:56 +0000 Received: from localhost ([127.0.0.1]:36774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sULVX-00045k-IS for submit@debbugs.gnu.org; Thu, 18 Jul 2024 03:24:56 -0400 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]:38217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sULVV-00045V-0c for 72165@debbugs.gnu.org; Thu, 18 Jul 2024 03:24:54 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id AC2181140344; Thu, 18 Jul 2024 03:24:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 18 Jul 2024 03:24:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1721287483; x= 1721373883; bh=kVaMWt3KkgePCAO60/OZEv4ZRngHzk2QLiApIA48Dqo=; b=Y sdlPPO7iq5ZmxV27eZKICIL5zccVnt5h9VwDeTuPQPZjsR99cylXAu+A/B3Lel0S Fnj3mcCE7urCkCafIVn8jXlcE287ROeHlLG1fROEt6IJ7ghh2rjFLruSE0x9UrQC zzNZdBBq5uk6kyKmh8lbeDCJysITP1DKgIrfI9WGSLESJq19aHZY1YPVA05Bx2gB 0femv53SaTKkWevXw6vCIcST9nEcahRg2mxZ7KzOG2IxfqkbcXGZLKZk2RUFIQcR eZ9JBgrMx+AebiY6hQjh+5yBhBOVwzkHgeNnK+KhnspVkk2lKHIH1Ctr49u4wsbY T8yBndh1+cNaT6xPVSiTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1721287483; x=1721373883; bh=kVaMWt3KkgePCAO60/OZEv4ZRngH zk2QLiApIA48Dqo=; b=e8offtNQ8W8OpdQbXXgbbFtJZLIr6tYCHZUQvsPmM0mY rl0D+duj1pAjUVHsc09OHdPORiET9DFguSNUnrvdm+pxab9u9Y9MnQY1/dM0qGyy +LnOJ+6c2oAejWAm8mtzxe8YZ3Ds4Z9f6Tug5A3FBKoVarJ6VVDs06qc4IqjXxH/ yjQ/171sEb5iJOr/LSaKNMPbZHpfJOn7ixF231DpDJPedXFzoUIbZeuBYPncWAzR bUSa8vUOZZxD83sEX4IwGaqIBpYFizZWhHhq+3j+b3jJoCrGxYdVDXwzhIRXYtaz M5cP8cDBUXxpa2P4wJT1ZDoOGdcN9tw5vR9Hh032tQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgeekgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepteefleffgfdtkeeikeegueetjefhgeehgfelhedtffeijeekhedtkefhjeff teejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Jul 2024 03:24:42 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <8634o7gusx.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Jul 2024 07:58:54 +0300") References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> Date: Thu, 18 Jul 2024 00:25:14 -0700 Message-ID: <874j8n6u1x.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Thank you very much for replying, Eli. > So when you say that "anecdotally, the 2024/04/30 build has been very > stable", what exactly do you mean? It sounds like both that build and > the one from 2024/07/09 crash in the same way, so why do you consider > the April one "very stable"? Sorry, I wasn't clear. I've been using the April build for many months, and haven't seen any crashing at all until today. Today I tried to debug the mu4e modeline problem, and saw it crash. Then I updated to the latest build (2024/07/09) hoping it would be fixed, and kept seeing crashing, as I continued to debug. So whatever the problem is, it started in April or earlier. Here're some notes about the mu4e problem that looks correlated with this crash, maybe. I'm hazy on the details here, so there's no bug report yet, but I've at least pinpointed the mechanism. truncate-string-to-width() in international/mule-util.el has (condition-case nil (while (< column end-column) (setq last-column column last-idx idx ch (aref str idx) column (+ column (char-width ch)) idx (1+ idx))) (args-out-of-range (setq idx str-len))) The intent was that we might have idx >= length(str), so (aref str idx) would signal args-out-of-range, and the condition-case would catch it. But this is reliably not happening under some (probably over-specified) conditions: - mu4e is running, with multiple mail contexts; it shows the selected context in its modeline, which eventually calls truncate-string-to-width() - I have some remote file opened with TRAMP - I run (shell-command) from the remote buffer In at least this scenario, args-out-of-range errors from the above (aref ...) are uncaught (100% of the time with my config), and appear in the *Messages* buffer. I was debugging this by tweaking and re-evaluating my local copy of truncate-string-to-width() and other related functions in the *scratch* buffer, while looking at the *Messages* buffer in another window. Will get back to this in a sec. Here's what I see in the core dump: (gdb) p current_thread->m_current_buffer->text->z $22 = 32192 (gdb) p current_thread->m_current_buffer->text->z_byte $23 = 32178 (gdb) p current_thread->m_current_buffer->pt $24 = 32192 (gdb) p current_thread->m_current_buffer->pt_byte $25 = 32178 So that tells me that the failing condition isn't the one gdb flagged, but the one immediately after: if (BYTEPOS (opoint) < CHARPOS (opoint)) emacs_abort (); The compiler optimizations could be responsible for the discrepancy. Am I understanding correctly that this check makes sure that BYTEPOS >= CHARPOS, which must always be true because sizeof(emacs character) is always >= 1byte? The buffer name: (gdb) p current_thread->m_current_buffer->name_ $26 = XIL(0x7fc685b24c1c) (gdb) xstring $27 = (struct Lisp_String *) 0x7fc685b24c18 "*Messages*" I confirm that the text is our own text: (gdb) p ¤t_thread->m_current_buffer->own_text $43 = (struct buffer_text *) 0x7fc685a107e0 (gdb) p current_thread->m_current_buffer->text $44 = (struct buffer_text *) 0x7fc685a107e0 The full structure: (gdb) p current_thread->m_current_buffer->own_text $45 = { beg = 0x561d7100f800 ... z = 32192, z_byte = 32178, gpt = 32191, gpt_byte = 32177, gap_size = 1313, modiff = 69879, chars_modiff = 69879, save_modiff = 1, overlay_modiff = 10, compact = 53392, beg_unchanged = 0, end_unchanged = 0, unchanged_modified = 69373, overlay_unchanged_modified = 6, intervals = 0x0, markers = 0x561d6da79bc0, inhibit_shrinking = false, redisplay = true } Looks like gpt and gpt_byte have a similar inconsistency as z and zbyte. Looking at the definitions in buffer.h, I guess the above means that the gap starts at gpt_byte-1 = 32176 Let's look at the last bit of the buffer: (gdb) printf "%.2200s\n", ¤t_thread->m_current_buffer->text->beg[30000] share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-mime-parts.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-modeline.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-notification.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-obsolete.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-org.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-pkg.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-query-items.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-search.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-server.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-speedbar.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-thread.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-update.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-vars.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-view.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-window.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e.el Checking /usr/share/emacs/site-lisp/elpa/mu4e-1.12.5/mu4e-actions.el 0 matching files marked Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range "" 0) [3 times] Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range #("" 1 9 (face mu4e-context-face help-echo "mu4e context: fastmail")) 10) Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range "" 0) [5 times] Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range #("" 1 9 (face mu4e-context-face help-echo "mu4e context: fastmail")) 10) QuitError during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range "" 0) Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range "" 0) [2 times] Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range #("" 1 9 (face mu4e-context-face help-echo "mu4e context: fastmail")) 10) Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range "" 0) [5 times] This particular print ("Error during redisplay") happens (I think) when I removed the (condition-case ...) stuff above to let the (aref ...) fail. I wouldn't crash most of the time. Also I'm not at all confident that this is the only scenario where it crashed, but maybe. Let's look just at the last little bit, to count the bytes: (gdb) printf "%.200s\n", ¤t_thread->m_current_buffer->text->beg[32000] mail>" 1 9 (face mu4e-context-face help-echo "mu4e context: fastmail")) 10) Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range "" 0) [5 times] I asked for at most 200 bytes (up to byte 32200). I got exactly 176 bytes, so the text ends where the gap supposedly begins. That makes sense. Let's look a bit past the end, INTO the gap (gdb) x /3cb ¤t_thread->m_current_buffer->text->beg[32176] 0x561d710175b0: 0 '\000' 0 '\000' 114 'r' So we have two trailing \0 bytes. Past them: (gdb) printf "%.200s\n", ¤t_thread->m_current_buffer->text->beg[32178] rror during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range "" 0) Theory: there's a race condition between error handling that ends up writing to *Messages* and the logic that aggregates duplicated messages into things like [5 times]. People usually don't have lots of errors happening, and they usually don't stare at the *Messages* buffer, so this is easily missed. Anything more you would suggest? I saw the crashing once every 20min maybe, so reproducing it is probably possible, but not very quick and easy. Does it make sense to try to fix the (condition-case) problem first, since that's easily reproducible? Thank you From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 18 03:38:08 2024 Received: (at 72165) by debbugs.gnu.org; 18 Jul 2024 07:38:08 +0000 Received: from localhost ([127.0.0.1]:36787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sULiJ-0004Qu-PJ for submit@debbugs.gnu.org; Thu, 18 Jul 2024 03:38:08 -0400 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:34415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sULiH-0004QP-K7 for 72165@debbugs.gnu.org; Thu, 18 Jul 2024 03:38:06 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id D1CC11380386; Thu, 18 Jul 2024 03:37:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 18 Jul 2024 03:37:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1721288276; x= 1721374676; bh=ogCdPIXp/o03xvyPdj333wxbkwixEOUQhMIpDmQu190=; b=n jLj55Uhrl8Acz2qbVcauArT8YTk9aCrU1igFwUBwl8xLtqqWA3xBabdDErHTzdA7 GpHQB3f/Lv7RQq091mgklggwU+kWu55cMDXvXjOmLwfhGJ1ScMnJzISqIc5vY98x 32LX27PwxJts7YTbuSOIg4rsn5RGAd3QPWhWNnMGKIpS4jGUS/9NapO7g/5r/zpR Y3EyvKLAy0Ez3yopDdm8/B7w0UTIJAjxaKRyQ6OpbLx6QUlDMtF4zQUGjHtYEdXq +UzaodWYFAk4q13HMN+nKXFfkxezDToNEBNDIbbWQ8iI0Y9szMWxXG3em+Jfm5fA iV7JK/Xgw4GksBgUZX+4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1721288276; x=1721374676; bh=ogCdPIXp/o03xvyPdj333wxbkwix EOUQhMIpDmQu190=; b=oTl2/fblfd0WaPOBPZn+fPZ3g8TNg58i4UvG4JaITCTl rEX0ZAB3OqaJETiaH0DsdMzpTN4WQKaBB5u5qrEbf194wZTaLo+OTcX3Piw/ALfY HJarEBLMIagTjoGMeCLV8w4jdy8uvkK41APe7ZX9B7I71Owm/D/unnVzMRbuLvsS sFYGdsWMaDSeeKoX6XZBpaHDKA4I6TtTyq8+7W9s4uzmhoot+kFICB4/+I29kDFM KO9JyJwihb9rOdDfHjtJioSG4VyGR0kG/fJ5PhZ7PeSfMZ2R8OPPl8dMbGWpmGp2 /bpxrfZIYx3EZb6SLL8QKlz5sAZT9huRcAvZZF6QWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgeekgdduvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepteefleffgfdtkeeikeegueetjefhgeehgfelhedtffeijeekhedtkefhjeff teejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Jul 2024 03:37:55 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <874j8n6u1x.fsf@secretsauce.net> (Dima Kogan's message of "Thu, 18 Jul 2024 00:25:14 -0700") References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> Date: Thu, 18 Jul 2024 00:38:28 -0700 Message-ID: <87zfqf5evf.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I just checked one more thing. The complaint, as I understand it, is that the buffer size, as measured in characters is inconsistent with the size, as measured in bytes. I just looked at the whole buffer, and confirmed that the thing is 100% plain ascii: each byte is <= 0x7f. For emacs does this mean that in this buffer we always have sizeof(character) == 1? From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 18 05:07:23 2024 Received: (at 72165) by debbugs.gnu.org; 18 Jul 2024 09:07:23 +0000 Received: from localhost ([127.0.0.1]:36883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUN6h-0006jX-DM for submit@debbugs.gnu.org; Thu, 18 Jul 2024 05:07:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUN6e-0006jH-S4 for 72165@debbugs.gnu.org; Thu, 18 Jul 2024 05:07:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUN6V-0005m0-It; Thu, 18 Jul 2024 05:07:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2FPYcBvrh9DUuP92PrG1HF75qZrD6gNgosRT8SVn9N4=; b=UoRMFWyI4VaE 2IcyFSMTi3BYQphKsQ4+Z2v5Vcy6GPQPNHORd/009Qgheqm2bMHzReZkTh7avooKdtnZhf9OcReoY AD79rtWZaCx+ML+LlFXPWKtFVoLKWPeJ4oip+/uwheEqfJPds1y8kObgemQxOzFDv7KUbqObEoW5w f00vEKpVJqJihUtJ8HATQuyKSu0YqVBw35IEqgnMyudIpvlnF4WiVKdvfamJP9F03NwJPqzfmbIJR wxkGc0dQiWT5S5wBFZXnU6yXNYh/7rQx3I0/zprFHJaDqmf6hnGvBSXZlt2KHifsyVjrxRGRgQ9um rKgrUOsnzrbR0pi/1J0iKA==; Date: Thu, 18 Jul 2024 12:07:08 +0300 Message-Id: <86h6cnf4qr.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <87zfqf5evf.fsf@secretsauce.net> (message from Dima Kogan on Thu, 18 Jul 2024 00:38:28 -0700) Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <87zfqf5evf.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Dima Kogan > Cc: 72165@debbugs.gnu.org > Date: Thu, 18 Jul 2024 00:38:28 -0700 > > I just checked one more thing. The complaint, as I understand it, is > that the buffer size, as measured in characters is inconsistent with the > size, as measured in bytes. I just looked at the whole buffer, and > confirmed that the thing is 100% plain ascii: each byte is <= 0x7f. For > emacs does this mean that in this buffer we always have > sizeof(character) == 1? Yes. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 18 05:52:59 2024 Received: (at 72165) by debbugs.gnu.org; 18 Jul 2024 09:52:59 +0000 Received: from localhost ([127.0.0.1]:36950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUNop-0002NQ-1l for submit@debbugs.gnu.org; Thu, 18 Jul 2024 05:52:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUNol-0002NB-Qz for 72165@debbugs.gnu.org; Thu, 18 Jul 2024 05:52:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUNob-0002BJ-4O; Thu, 18 Jul 2024 05:52:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dQwTJfvM4g8vNInw5HpxO7TaIuvR/fdd65QT15GaNv4=; b=PhgB4k9UckO/ oHKClJ7PJyI/WrgVfZBfKQ/+k4eKGV/QlYE1aunNr0/YGWgLohe1jdEqOBbjsN/iXtv9N93AWgyGt tU+vPypkqbAXTa3NSIzvePAYYBYtskSZ94zWM0wgtoMuoFeqZG9dLpH48iT6BBNO+ZFojRpn69E6V 9fR7316ApOUie6tMoo9VusgBfTxcTwQkK6e3ugWuOxEoxlGN2opfG3jcbdSD8eKZ7C6y+3esg7XKk 74303aITWsnmzbBBcC8nGu3lUwd1gOJHL3Kj0l1OK5r3qEC1h1cKDnoZFac0W3cKbNKujE2HejEHv pug5xMy3+nIwa9f+5SLaHA==; Date: Thu, 18 Jul 2024 12:52:28 +0300 Message-Id: <86frs7f2n7.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <874j8n6u1x.fsf@secretsauce.net> (message from Dima Kogan on Thu, 18 Jul 2024 00:25:14 -0700) Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Dima Kogan > Cc: 72165@debbugs.gnu.org > Date: Thu, 18 Jul 2024 00:25:14 -0700 > > Here's what I see in the core dump: > > (gdb) p current_thread->m_current_buffer->text->z > $22 = 32192 > > (gdb) p current_thread->m_current_buffer->text->z_byte > $23 = 32178 > > (gdb) p current_thread->m_current_buffer->pt > $24 = 32192 > > (gdb) p current_thread->m_current_buffer->pt_byte > $25 = 32178 > > So that tells me that the failing condition isn't the one gdb flagged, > but the one immediately after: > > if (BYTEPOS (opoint) < CHARPOS (opoint)) > emacs_abort (); Yes. > The compiler optimizations could be responsible for the discrepancy. Yes, this happens frequently in optimized code. > Am > I understanding correctly that this check makes sure that BYTEPOS >= > CHARPOS, which must always be true because sizeof(emacs character) is > always >= 1byte? Yes. > The buffer name: > > (gdb) p current_thread->m_current_buffer->name_ > $26 = XIL(0x7fc685b24c1c) > > (gdb) xstring > $27 = (struct Lisp_String *) 0x7fc685b24c18 > "*Messages*" And the *Messages* buffer was displayed in some window when this happened? > The full structure: > > (gdb) p current_thread->m_current_buffer->own_text > $45 = { > beg = 0x561d7100f800 ... > z = 32192, > z_byte = 32178, > gpt = 32191, > gpt_byte = 32177, That's the bug: in these two pairs, the character and byte values should be identical. The question is: which code modified Z and GPT without updating the corresponding _BYTE variables, or the other way around? > Let's look just at the last little bit, to count the bytes: > > (gdb) printf "%.200s\n", ¤t_thread->m_current_buffer->text->beg[32000] > mail>" 1 9 (face mu4e-context-face help-echo "mu4e context: fastmail")) 10) > Error during redisplay: (eval (mu4e--modeline-string) t) signaled (args-out-of-range "" 0) [5 times] > > I asked for at most 200 bytes (up to byte 32200). I got exactly 176 > bytes, so the text ends where the gap supposedly begins. That makes > sense. This means Z_BYTE and GPT_BYTE are correct, but the corresponding Z and GPT values are incorrect. My suggestion is to run Emacs under GDB with a watchpoint on Z_BYTE, conditioned on the situation that Z_BYTE and Z are not equal. This watchpoint needs to be defined when the current buffer is the *Messages* buffer. One way of doing that is as follows: $ gdb ./emacs ... (gdb) break Frecenter (gdb) run After Emacs starts, type "C-x b *Messages* RET" to display *Messages* in a window, then type C-l to trigger the Frecenter breakpoint, and when GDB kicks in, type at the GDB prompt as follows: (gdb) n (gdb) n (gdb) p buf (gdb) watch $1->text->z_byte if $1->text->z_byte != $1->text->z This relies on the fact that our code always changes Z_BYTE _after_ the suitable change to Z. The only exception to this rule that I found is in insdel.c:del_range_2, where we do it in the opposite order. So for the above to work, you need to edit that function and transpose the line of code which modify Z_BYTE with the one which modifies Z. Then rebuild Emacs and use the resulting binary to debug this with the above watchpoint. > Theory: there's a race condition between error handling that ends up > writing to *Messages* and the logic that aggregates duplicated messages > into things like [5 times]. I don't see how this could happen, for two reasons: . emacs is a single-threaded program, so how can two pieces of code that run in the same thread produce a race condition? . in this particular case, both writing to *Messages* and aggregation of identical messages happen in the same function, one after the other; see xdisp.c:message_dolog. > I saw the crashing once every 20min maybe, so reproducing it is probably > possible, but not very quick and easy. Does it make sense to try to fix > the (condition-case) problem first, since that's easily reproducible? I don't see how fixing that problem could help. It might even interfere, if that problem somehow triggers this one. Or did I miss something? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 19 10:52:10 2024 Received: (at 72165) by debbugs.gnu.org; 19 Jul 2024 14:52:10 +0000 Received: from localhost ([127.0.0.1]:50042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUoxt-0000M2-GX for submit@debbugs.gnu.org; Fri, 19 Jul 2024 10:52:09 -0400 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]:37999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUoxp-0000Kv-4t for 72165@debbugs.gnu.org; Fri, 19 Jul 2024 10:52:07 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 58EEC13806D2; Fri, 19 Jul 2024 03:27:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 19 Jul 2024 03:27:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1721374023; x= 1721460423; bh=qfcxuK8JztlzshTLYaze0Q4cqMxbnGcdhYZC5uBE/Gg=; b=f pPcWKrJdS95MkHECZT8kk467id6aqobRIgywwWVyiiSYaur4LqIxsXGBBd9zDjiu LByjKw8Ez45iqPkF2BQENxoB9Lc+wSlKgEYbDGPKCMB8HDSCybdzZiTC5xpQKrM0 hK33gRvmV/jeqXnLdr96HOX82jFHRh4SPyU2e7N56pG17woKoqJcV9gIisjeoERP P4rvXmj0DzoErusuJHUG26dZoiPwk6xKhsuMm/hSSrJtptTl4QnUBMz+RDGfXloE 7h5iZr4XyjXbMMME8qO+UK6b9oVcY6ObNzCbcHuxuDA4CNl2X2mFZlgRiq9rCFXG saj355Re+F17Mi5vm/mjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1721374023; x=1721460423; bh=qfcxuK8JztlzshTLYaze0Q4cqMxb nGcdhYZC5uBE/Gg=; b=INmyJUmWeBU9LsZEABLRuye5xwNLfatwifiYyPXrQPbq iHqIVD00shZsW3jNpUxGkOyCnnDTL0G1OOsPCpIvZzAaMXdBu2PsqO6B31aLPacQ d5NkS6z48XV49vP3Xpq6JlKAYM1xcB6qrlQ/fpulVxH87Vi51HwsXp2x9fdGRYwI UjUp41xKvV1w1Etur8RnXtRvy3ALWlyb+K7n0X43wLcBrm+G6GBH5ALcnYpmxuew peM1DZ9jr0BZrctINtIrGGeyLRSLrTj2EQ30uULsdwEqVSBRcq37Y90AJ89Pi8ja JblX9zl6bRaSBmymDhjMo6sF3QV50jXjH4vxanPfjg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrhedtgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepteefleffgfdtkeeikeegueetjefhgeehgfelhedtffeijeekhedtkefhjeff teejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 Jul 2024 03:27:02 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <86frs7f2n7.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Jul 2024 12:52:28 +0300") References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> Date: Fri, 19 Jul 2024 00:27:35 -0700 Message-ID: <87a5idj0yg.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> (gdb) xstring >> $27 = (struct Lisp_String *) 0x7fc685b24c18 >> "*Messages*" > > And the *Messages* buffer was displayed in some window when this > happened? Yes. I was watching it to find my other bug. Thank you very much for the detailed notes. I just played with it for a bit, trying to get it to break again, and I couldn't do it. I'll try again in a few days, and will report what I find out. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 23 16:51:27 2024 Received: (at 72165) by debbugs.gnu.org; 23 Jul 2024 20:51:27 +0000 Received: from localhost ([127.0.0.1]:60795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWMTl-0007Jq-AT for submit@debbugs.gnu.org; Tue, 23 Jul 2024 16:51:27 -0400 Received: from out-181.mta1.migadu.com ([95.215.58.181]:27666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWMTh-0007JY-IB for 72165@debbugs.gnu.org; Tue, 23 Jul 2024 16:51:24 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net; s=key1; t=1721767870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Fnl5sFIJnDg6J530b8IbvbXV+plwHaPd11oGC0Eh7pc=; b=h94acFiYoWEgfSJAplDhxR9uqmOyHTY7fOhWp+gyh2y4N4hx3mcbmpd1qCaZVUVlAGn1Ms KL9hRbzO246E3jQWU6D3mvIyinQTKwcCGKGmLeYJ3kIhZJ7z3okRe/85qnZBXQpmO789a1 VXk0LbNsn9jzatr98vU48zZyDTnK6J/iBvVXv2EosD3Z4/bI+rVXC5FcJop4ICWBKQXGbN 1Bu5y7K4U+kmXqYSz+U1dh6Y0PGXiDdjiaEuOtormaxpX+CLHSmgMJuFkdJqICCxhI3LIn JX4U8eWgbsr8TNlR5gScFxBRk4xkYFbK+GVyNb/RdXAazAnLiABwzmaTyxB6AQ== From: Jeremy Bryant To: Dima Kogan Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <87o76veo04.fsf@secretsauce.net> (Dima Kogan's message of "Wed, 17 Jul 2024 13:56:27 -0700") References: <87o76veo04.fsf@secretsauce.net> Date: Tue, 23 Jul 2024 21:51:07 +0100 Message-ID: <878qxrbzno.fsf@jeremybryant.net> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Dima Kogan writes: > Hi. > > I'm running a bleeding-edge build of emacs. Using packages from: > > https://emacs.secretsauce.net/ > > Debian GNU/Linux. GTK+. Currently using a build from git as of > 2024/07/09 (8e46f44ea [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: jeremybryant.net] X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Dima Kogan writes: > Hi. > > I'm running a bleeding-edge build of emacs. Using packages from: > > https://emacs.secretsauce.net/ > > Debian GNU/Linux. GTK+. Currently using a build from git as of > 2024/07/09 (8e46f44ea0e). It is crashing periodically, with an unclear > cause. > > This isn't a brand-new problem; I observed a similar crash with an earlier > build: 2024/04/30 (d24981d27ce). After that crash I upgraded, and I see > crashes still. > > Anecdotally, the 2024/04/30 build has been very stable. Today I started > to debug a different issue: something about mu4e modeline updating is > signalling args-out-of-range. To debug this I'm tweaking functions like > (truncate-string-to-width), and re-evaluating them. This debugging isn't > very interesting, but something about it is causing emacs to crash, with > both builds. > > I just made a core. I cannot xbacktrace because (I think) I'm looking at > a core, and not at a live process. If that would be helpful, I can > probably get that. And I see the crash every 20min maybe, while > debugging the mu4e modeline problem. Below is the backtrace. Hopefully > this speaks to somebody. Thanks! You mention mu4e twice. Does this happen only with mu4e? mu4e is usually distributed separately from Emacs, which version are you using? > > (gdb) bt full > #0 __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 > tid = > ret = 0 > pd = > old_mask = { > __val = {0} > } > ret = > #1 0x00007fc68a4a6b7f in __pthread_kill_internal (signo=6, threadid=) at ./nptl/pthread_kill.c:78 > #2 0x00007fc68a4584e2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 > ret = > #3 0x0000561d3dcb9798 in terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40) at ./debian/build-x/src/emacs.c:469 > #4 0x0000561d3dcb9d4e in emacs_abort () at ./debian/build-x/src/sysdep.c:2391 > #5 0x0000561d3dcb6c34 in redisplay_window (window=, just_this_one_p=just_this_one_p@entry=false) at ./debian/build-x/src/xdisp.c:20086 > w = 0x561d6bcb2bc8 > f = > buffer = > old = > lpoint = { > charpos = , > bytepos = > } > opoint = { > charpos = , > bytepos = > } > startp = { > charpos = , > bytepos = > } > update_mode_line = > tem = > it = { > window = 0x0, > w = 0x0, > f = 0x0, > method = GET_FROM_BUFFER, > stop_charpos = 0, > prev_stop = 0, > base_level_stop = 0, > end_charpos = 0, > medium_narrowing_begv = 0, > medium_narrowing_zv = 0, > large_narrowing_begv = 0, > large_narrowing_zv = 0, > s = 0x0, > string_nchars = 0, > multibyte_p = false, > tab_line_p = false, > header_line_p = false, > string_from_display_prop_p = false, > string_from_prefix_prop_p = false, > from_disp_prop_p = false, > ellipsis_p = false, > avoid_cursor_p = false, > dp = 0x0, > dpvec = 0x0, > dpend = 0x0, > dpvec_char_len = 0, > dpvec_face_id = 0, > saved_face_id = 0, > ctl_chars = {0x0 }, > start = { > pos = { > charpos = 0, > bytepos = 0 > }, > overlay_string_index = 0, > string_pos = { > charpos = 0, > bytepos = 0 > }, > dpvec_index = 0 > }, > current = { > pos = { > charpos = 0, > bytepos = 0 > }, > overlay_string_index = 0, > string_pos = { > charpos = 0, > bytepos = 0 > }, > dpvec_index = 0 > }, > n_overlay_strings = 0, > overlay_strings_charpos = 0, > overlay_strings = {0x0 }, > string_overlays = {0x0 }, > string = 0x0, > from_overlay = 0x0, > stack = {{ > string = 0x0, > 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 = false, > parent_it = 0x0, > charpos = 0, > nchars = 0, > nbytes = 0, > from = 0, > to = 0, > width = 0 > }, > face_id = 0, > u = { > image = { > object = 0x0, > slice = { > x = 0x0, > y = 0x0, > width = 0x0, > height = 0x0 > }, > image_id = 0 > }, > stretch = { > object = 0x0 > }, > xwidget = { > object = 0x0 > } > }, > 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 = 0x0, > area = LEFT_MARGIN_AREA, > method = GET_FROM_BUFFER, > paragraph_embedding = NEUTRAL_DIR, > multibyte_p = false, > string_from_display_prop_p = false, > string_from_prefix_prop_p = false, > display_ellipsis_p = false, > avoid_cursor_p = false, > bidi_p = false, > from_disp_prop_p = false, > line_wrap = TRUNCATE, > voffset = 0, > space_width = 0x0, > font_height = 0x0 > }, { > string = 0x0, > 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 = false, > parent_it = 0x0, > charpos = 0, > nchars = 0, > nbytes = 0, > from = 0, > to = 0, > width = 0 > }, > face_id = 0, > u = { > image = { > object = 0x0, > slice = { > x = 0x0, > y = 0x0, > width = 0x0, > height = 0x0 > }, > image_id = 0 > }, > stretch = { > object = 0x0 > }, > xwidget = { > object = 0x0 > } > }, > 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 = 0x0, > area = LEFT_MARGIN_AREA, > method = GET_FROM_BUFFER, > paragraph_embedding = NEUTRAL_DIR, > multibyte_p = false, > string_from_display_prop_p = false, > string_from_prefix_prop_p = false, > display_ellipsis_p = false, > avoid_cursor_p = false, > bidi_p = false, > from_disp_prop_p = false, > line_wrap = TRUNCATE, > voffset = 0, > space_width = 0x0, > font_height = 0x0 > }, { > string = 0x0, > 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 = false, > parent_it = 0x0, > charpos = 0, > nchars = 0, > nbytes = 0, > from = 0, > to = 0, > width = 0 > }, > face_id = 0, > u = { > image = { > object = 0x0, > slice = { > x = 0x0, > y = 0x0, > width = 0x0, > height = 0x0 > }, > image_id = 0 > }, > stretch = { > object = 0x0 > }, > xwidget = { > object = 0x0 > } > }, > 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 = 0x0, > area = LEFT_MARGIN_AREA, > method = GET_FROM_BUFFER, > paragraph_embedding = NEUTRAL_DIR, > multibyte_p = false, > string_from_display_prop_p = false, > string_from_prefix_prop_p = false, > display_ellipsis_p = false, > avoid_cursor_p = false, > bidi_p = false, > from_disp_prop_p = false, > line_wrap = TRUNCATE, > voffset = 0, > space_width = 0x0, > font_height = 0x0 > }, { > string = 0x0, > 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 = false, > parent_it = 0x0, > charpos = 0, > nchars = 0, > nbytes = 0, > from = 0, > to = 0, > width = 0 > }, > face_id = 0, > u = { > image = { > object = 0x0, > slice = { > x = 0x0, > y = 0x0, > width = 0x0, > height = 0x0 > }, > image_id = 0 > }, > stretch = { > object = 0x0 > }, > xwidget = { > object = 0x0 > } > }, > position = { > charpos = 0, > bytepos = 0 > }, > current = { > pos = { > charpos = 0, > bytepos = 0 > }, > overlay_string_index = 0, > string_pos = { > charpos = 8589934595, > bytepos = 395136991232 > }, > dpvec_index = 1 > }, > from_overlay = 0x0, > area = ANY_AREA, > method = 4294967295, > paragraph_embedding = NEUTRAL_DIR, > multibyte_p = false, > string_from_display_prop_p = false, > string_from_prefix_prop_p = false, > display_ellipsis_p = false, > avoid_cursor_p = false, > bidi_p = false, > from_disp_prop_p = false, > line_wrap = TRUNCATE, > voffset = 0, > space_width = 0x0, > font_height = 0x0 > }, { > string = 0x7ffd9fd78e10, > string_nchars = 0, > end_charpos = 0, > stop_charpos = 0, > prev_stop = 0, > base_level_stop = 92, > cmp_it = { > stop_pos = 0, > id = 0, > ch = 0, > rule_idx = 0, > lookback = 0, > nglyphs = 0, > reversed_p = false, > parent_it = 0x0, > charpos = 524288, > nchars = 0, > nbytes = 0, > from = 0, > to = 0, > width = 0 > }, > face_id = 0, > u = { > image = { > object = 0x0, > slice = { > x = 0x0, > y = 0x0, > width = 0xffffffff, > height = 0x0 > }, > image_id = 0 > }, > stretch = { > object = 0x0 > }, > xwidget = { > object = 0x0 > } > }, > position = { > charpos = 4294967296, > bytepos = 47244640265 > }, > current = { > pos = { > charpos = 47244640259, > bytepos = 42949672963 > }, > overlay_string_index = 42949672961, > string_pos = { > charpos = 1, > bytepos = 0 > }, > dpvec_index = 0 > }, > from_overlay = 0x0, > area = LEFT_MARGIN_AREA, > method = GET_FROM_BUFFER, > paragraph_embedding = NEUTRAL_DIR, > multibyte_p = false, > string_from_display_prop_p = false, > string_from_prefix_prop_p = false, > display_ellipsis_p = false, > avoid_cursor_p = false, > bidi_p = false, > from_disp_prop_p = false, > line_wrap = TRUNCATE, > voffset = 0, > space_width = 0x0, > font_height = 0x0 > }}, > sp = 0, > selective = 0, > what = IT_CHARACTER, > face_id = 0, > selective_display_ellipsis_p = false, > ctl_arrow_p = false, > face_box_p = false, > start_of_box_run_p = false, > end_of_box_run_p = false, > overlay_strings_at_end_processed_p = false, > ignore_overlay_strings_at_pos_p = false, > glyph_not_available_p = false, > starts_in_middle_of_char_p = false, > face_before_selective_p = false, > constrain_row_ascent_descent_p = false, > line_number_produced_p = false, > align_visually_p = false, > line_wrap = TRUNCATE, > base_face_id = 0, > c = 0, > len = 0, > cmp_it = { > stop_pos = 0, > id = 0, > ch = 0, > rule_idx = 0, > lookback = 0, > nglyphs = 0, > reversed_p = false, > parent_it = 0x0, > charpos = 0, > nchars = 0, > nbytes = 0, > from = 0, > to = 0, > width = 0 > }, > char_to_display = 0, > glyphless_method = GLYPHLESS_DISPLAY_THIN_SPACE, > image_id = 0, > xwidget = 0x0, > slice = { > x = 0x0, > y = 0x0, > width = 0x0, > height = 0x0 > }, > space_width = 0x0, > voffset = 0, > tab_width = 0, > font_height = 0x0, > object = 0x0, > position = { > charpos = 0, > bytepos = 0 > }, > truncation_pixel_width = 0, > continuation_pixel_width = 0, > first_visible_x = 0, > last_visible_x = 0, > last_visible_y = 0, > extra_line_spacing = 0, > max_extra_line_spacing = 0, > override_ascent = 0, > override_descent = 0, > override_boff = 0, > glyph_row = 0x0, > area = LEFT_MARGIN_AREA, > nglyphs = 0, > pixel_width = 0, > ascent = 0, > descent = 0, > max_ascent = 0, > max_descent = 0, > phys_ascent = 0, > phys_descent = 0, > max_phys_ascent = 0, > max_phys_descent = 0, > current_x = 0, > wrap_prefix_width = 0, > continuation_lines_width = 0, > eol_pos = { > charpos = 0, > bytepos = 0 > }, > current_y = 0, > first_vpos = 0, > vpos = 0, > hpos = 0, > lnum = 0, > lnum_bytepos = 0, > lnum_width = 0, > lnum_pixel_width = 0, > pt_lnum = 0, > stretch_adjust = 0, > left_user_fringe_bitmap = 0, > right_user_fringe_bitmap = 0, > left_user_fringe_face_id = 0, > right_user_fringe_face_id = 0, > bidi_p = false, > bidi_it = { > bytepos = 0, > charpos = 0, > ch = 0, > nchars = 0, > ch_len = 0, > type = UNKNOWN_BT, > type_after_wn = UNKNOWN_BT, > orig_type = UNKNOWN_BT, > resolved_level = 0 '\000', > isolate_level = 0 '\000', > invalid_levels = 0, > invalid_isolates = 0, > prev = { > charpos = 0, > type = UNKNOWN_BT, > orig_type = UNKNOWN_BT > }, > last_strong = { > charpos = 0, > type = UNKNOWN_BT, > orig_type = UNKNOWN_BT > }, > next_for_neutral = { > charpos = 0, > type = UNKNOWN_BT, > orig_type = UNKNOWN_BT > }, > prev_for_neutral = { > charpos = 0, > type = UNKNOWN_BT, > orig_type = UNKNOWN_BT > }, > next_for_ws = { > charpos = 0, > type = UNKNOWN_BT, > orig_type = UNKNOWN_BT > }, > bracket_pairing_pos = 0, > bracket_enclosed_type = UNKNOWN_BT, > next_en_pos = 0, > next_en_type = UNKNOWN_BT, > sos = NEUTRAL_DIR, > scan_dir = 0, > disp_pos = 0, > disp_prop = 0, > stack_idx = 0, > level_stack = {{ > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > } , { > next_for_neutral_pos = 140727285151856, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 0, > last_strong_type = 7, > prev_for_neutral_type = 1, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 140727285151848, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 6692952454725819392, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140727285151856, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 5, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 384, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 3, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 94683592258741, > next_for_neutral_type = 1, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140727285151856, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 5, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 94683591719329, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 4, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 94683593201994, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 6, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 22, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 33168, > next_for_neutral_type = 5, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 6, > next_for_neutral_type = 0, > last_strong_type = 2, > prev_for_neutral_type = 0, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 94683593203763, > next_for_neutral_type = 5, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 94683623854741, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 6, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 94683593201994, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 6, > next_for_neutral_type = 5, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140727285152152, > next_for_neutral_type = 0, > last_strong_type = 6, > prev_for_neutral_type = 6, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 6, > next_for_neutral_type = 1, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 94683623854741, > next_for_neutral_type = 0, > last_strong_type = 2, > prev_for_neutral_type = 1, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 6692952454725819392, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 2, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 1, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140490765053792, > next_for_neutral_type = 0, > last_strong_type = 5, > prev_for_neutral_type = 3, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 6692952454725819392, > next_for_neutral_type = 7, > last_strong_type = 1, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140490764807742, > next_for_neutral_type = 0, > last_strong_type = 2, > prev_for_neutral_type = 6, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 64424511301, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 94683879045328, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 6, > level = 134 '\206', > flags = 142 '\216' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 7, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 7, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 140490770859150, > next_for_neutral_type = 1, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 15, > next_for_neutral_type = 4, > last_strong_type = 7, > prev_for_neutral_type = 7, > level = 255 '\377', > flags = 255 '\377' > }, { > next_for_neutral_pos = -168884986026394, > next_for_neutral_type = 5, > last_strong_type = 6, > prev_for_neutral_type = 2, > level = 237 '\355', > flags = 133 '\205' > }, { > next_for_neutral_pos = 6692952454725819392, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 1, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140490765053792, > next_for_neutral_type = 1, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 35662986, > next_for_neutral_type = 7, > last_strong_type = 1, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140490764807742, > next_for_neutral_type = 5, > last_strong_type = 2, > prev_for_neutral_type = 2, > level = 196 '\304', > flags = 63 '?' > }, { > next_for_neutral_pos = 64424511301, > next_for_neutral_type = 7, > last_strong_type = 7, > prev_for_neutral_type = 7, > level = 255 '\377', > flags = 255 '\377' > }, { > next_for_neutral_pos = 94683879045328, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 6, > level = 134 '\206', > flags = 142 '\216' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 2, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 2, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 140490770859150, > next_for_neutral_type = 2, > last_strong_type = 2, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 15, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = -196480571978419, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 7, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 0, > last_strong_type = 2, > prev_for_neutral_type = 0, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 6, > prev_for_neutral_type = 1, > level = 253 '\375', > flags = 61 '=' > }, { > next_for_neutral_pos = 6692952454725819392, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 0, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 1, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140490765053792, > next_for_neutral_type = 1, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 35662986, > next_for_neutral_type = 7, > last_strong_type = 1, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 140490764807742, > next_for_neutral_type = 0, > last_strong_type = 2, > prev_for_neutral_type = 7, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 64424511301, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 94683879045328, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 6, > level = 134 '\206', > flags = 142 '\216' > }, { > next_for_neutral_pos = 1, > next_for_neutral_type = 0, > last_strong_type = 4, > prev_for_neutral_type = 5, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 6, > level = 215 '\327', > flags = 159 '\237' > }, { > next_for_neutral_pos = 140490770859150, > next_for_neutral_type = 1, > last_strong_type = 6, > prev_for_neutral_type = 5, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 15, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = -196480571978419, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }, { > next_for_neutral_pos = 0, > next_for_neutral_type = 0, > last_strong_type = 0, > prev_for_neutral_type = 0, > level = 0 '\000', > flags = 0 '\000' > }}, > string = { > lstring = 0x0, > s = 0x0, > schars = 0, > bufpos = 0, > from_disp_str = false, > unibyte = false > }, > w = 0x0, > paragraph_dir = NEUTRAL_DIR, > separator_limit = 0, > first_elt = false, > new_paragraph = false, > frame_window_p = false > }, > paragraph_embedding = NEUTRAL_DIR, > min_width_property = 0x0, > min_width_start = 0 > } > current_matrix_up_to_date_p = false > used_current_matrix_p = false > temp_scroll_step = false > rc = > centering_position = -1 > last_line_misfit = false > beg_unchanged = > end_unchanged = > frame_line_height = > margin = > use_desired_matrix = > itdata = 0x0 > #6 0x0000561d3dd2db23 in redisplay_window_0 (window=window@entry=0x561d6bcb2bcd) at ./debian/build-x/src/xdisp.c:18032 > #7 0x0000561d3de860da in internal_condition_case_1 > (bfun=bfun@entry=0x561d3dd2daf0 , arg=arg@entry=0x561d6bcb2bcd, handlers=, hfun=hfun@entry=0x561d3dce3310 ) > at ./debian/build-x/src/eval.c:1637 > val = > c = 0x561d3ef56ad0 > #8 0x0000561d3dcdfb3a in redisplay_windows (window=0x561d6bcb2bcd) at ./debian/build-x/src/xdisp.c:18001 > w = 0x561d6bcb2bc8 > #9 0x0000561d3dd14ea3 in redisplay_internal () at ./debian/build-x/src/xdisp.c:17400 > gcscrollbars = > f = 0x561d6bcb2940 > w = > sw = > fr = > pending = > must_finish = > match_p = > tlbufpos = { > charpos = , > bytepos = > } > tlendpos = { > charpos = , > bytepos = > } > number_of_visible_frames = > sf = > polling_stopped_here = true > tail = 0x561d6e1ae933 > frame = 0x561d6bcb2945 > hscroll_retries = > garbaged_frame_retries = > consider_all_windows_p = > update_miniwindow_p = > #10 0x0000561d3dd16509 in redisplay () at ./debian/build-x/src/xdisp.c:16575 > #11 0x0000561d3de018d7 in read_char (commandflag=1, map=map@entry=0x561d6dc6f213, prev_event=0x0, used_mouse_menu=used_mouse_menu@entry=0x7ffd9fd7bc8b, end_time=end_time@entry=0x0) > at ./debian/build-x/src/keyboard.c:2678 > echo_current = false > c = > local_getcjmp = {{ > __jmpbuf = {94683599852320, 5898495886293811139, 140490622174464, 0, 1, 1, 5898495886388182979, 151695970901639107}, > __mask_was_saved = 0, > __saved_mask = { > __val = {0, 140727285168672, 140490622174584, 140490622174584, 0, 0, 128770, 0, 32191, 32193, 6692952454725819392, 12884901888, 94683623736432, 94683615050064, 2, 140727285168720} > } > }} > save_jump = {{ > __jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, > __mask_was_saved = 0, > __saved_mask = { > __val = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94683592684623, 0, 0, 2, 94683592073760, 140727285162272} > } > }} > tem = > save = > previous_echo_area_message = 0x0 > also_record = 0x0 > reread = false > recorded = false > polling_stopped_here = false > orig_kboard = 0x561d3f9e1b40 > #12 0x0000561d3de04ba2 in read_key_sequence > (keybuf=keybuf@entry=0x7ffd9fd7bdf0, prompt=prompt@entry=0x0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false, disable_text_conversion_p=false) at ./debian/build-x/src/keyboard.c:10743 > interrupted_kboard = 0x561d3f9e1b40 > interrupted_frame = 0x561d6bcb2940 > key = > used_mouse_menu = false > echo_local_start = 0 > last_real_key_start = 0 > keys_local_start = 0 > new_binding = > t = 0 > echo_start = 0 > keys_start = 0 > current_binding = 0x561d6dc6f213 > first_unbound = 31 > mock_input = 0 > used_mouse_menu_history = {false } > fkey = { > parent = 0x7fc6835340d3, > map = 0x7fc6835340d3, > start = 0, > end = 0 > } > keytran = { > parent = 0x7fc68609cdeb, > map = 0x7fc68609cdeb, > start = 0, > end = 0 > } > indec = { > parent = 0x7fc6835340e3, > map = 0x7fc6835340e3, > start = 0, > end = 0 > } > shift_translated = > delayed_switch_frame = > original_uppercase_position = > disabled_conversion = > fake_prefixed_keys = 0x0 > first_event = 0x0 > second_event = > #13 0x0000561d3de06d18 in command_loop_1 () at ./debian/build-x/src/keyboard.c:1429 > cmd = > keybuf = {0x561d6dc6f973, 0x5ce224cbfa82dc00, 0xa0, 0x60, 0x0, 0x0, 0x111f0, 0x561d3df83ba8, 0x7ffd9fd7bea0, 0x561d3de874b3 , 0x7ffd9fd7bec0, 0x2, 0xb, 0x111f0, 0x30, 0x561d6d06628d, 0x7fc68572e9cc, 0x561d6ca84763, 0x60, 0x7ffd9fd7bec0, 0x2, 0x7ffd9fd7e3ae, 0x7ffd9fd7bf20, 0x561d3ddfa492 , 0x0, 0x0, 0xb300, 0x561d3df83ba8, 0x7ffd9fd7bf40, 0x561d3de874b3 } > i = > last_pt = > prev_modiff = 3094 > prev_buffer = 0x561d6d066288 > #14 0x0000561d3de8603e in internal_condition_case (bfun=bfun@entry=0x561d3de06b40 , handlers=handlers@entry=0x90, hfun=hfun@entry=0x561d3ddfa320 ) > at ./debian/build-x/src/eval.c:1613 > val = > c = 0x561d3ef4cce0 > #15 0x0000561d3ddf1e66 in command_loop_2 (handlers=handlers@entry=0x90) at ./debian/build-x/src/keyboard.c:1168 > val = > #16 0x0000561d3de85f97 in internal_catch (tag=tag@entry=0x12300, func=func@entry=0x561d3ddf1e30 , arg=arg@entry=0x90) at ./debian/build-x/src/eval.c:1292 > val = > c = 0x561d3efe0280 > #17 0x0000561d3ddf1df1 in command_loop () at ./debian/build-x/src/keyboard.c:1146 > #18 0x0000561d3ddf9e59 in recursive_edit_1 () at ./debian/build-x/src/keyboard.c:754 > val = > #19 0x0000561d3ddfa21c in Frecursive_edit () at ./debian/build-x/src/keyboard.c:837 > buffer = > #20 0x0000561d3dcc2f9d in main (argc=2, argv=0x7ffd9fd7c2e8) at ./debian/build-x/src/emacs.c:2624 > stack_bottom_variable = 0x561d3eecc050 > old_argc = > no_loadup = false > junk = 0x0 > dname_arg = 0x0 > ch_to_dir = 0x0 > original_pwd = > dump_mode = > skip_args = 1 > temacs = 0x0 > attempt_load_pdump = > only_version = false > rlim = { > rlim_cur = 10022912, > rlim_max = 18446744073709551615 > } > lc_all = > sockfd = -1 > module_assertions = From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 23 17:21:04 2024 Received: (at 72165) by debbugs.gnu.org; 23 Jul 2024 21:21:04 +0000 Received: from localhost ([127.0.0.1]:60819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWMwR-00085G-PR for submit@debbugs.gnu.org; Tue, 23 Jul 2024 17:21:04 -0400 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]:59591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWMwN-00084a-OZ for 72165@debbugs.gnu.org; Tue, 23 Jul 2024 17:21:02 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 28C3A1380241; Tue, 23 Jul 2024 17:20:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 23 Jul 2024 17:20:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1721769648; x= 1721856048; bh=efAENtZOXIvEWgLiCNuCisSF06VGed0vqaVuxqJPRXs=; b=a Y7u7lZgstLI4C10MezdbIYASfN4eFeDgk+nKAwmPQjQmw1Bdi0fTv2JzvfRvDzWO Q/2zU3Bma4cGGYbVeKRVRMFuoZsTXWlNkIeBx2xWG1kBGFtQCLVBwtQRbjcGneqA HatuNOdZCfNHu28FqWb1Crh8jfZGYoMrh1nUmQ/vvHsAg/N+AvOvqgON16c3vBoB puMBQmBELqCykNWGEmOJADruvwLUA8HVz+RGkDEJJlz/m/Jka3W5MTEWLFyu+meF gKD76+erj0p5qZqYWxVWSIAlGf0AhWYuG19Cde7uKPMMqpxmsB/1ePHWR2ASktPm 9jUQ3FUffakiY/QrGF2aQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1721769648; x=1721856048; bh=efAENtZOXIvEWgLiCNuCisSF06VG ed0vqaVuxqJPRXs=; b=IyBu9sWUgkDQpLMdnz0xDfniXBKKb/PdFPmSXNcV2Vpa KRLctZ36WkiSkUdukkDqNkt83rK5AcWLXTtC05RYXBHf0aVs/oGIL8AHKWp8ggVA Eb8f/cYUm3mx9puLJ64T+iSePjBC/Z8R6R7yuvDZ8CUGGIwGNaRGxUOuVU+GyPUy RZPYwl5fyFPjVbc8/JYaHlfgosN0Z49CjUrJMjkIYItz93O2+3NdJcElq0aZpdCa N8Ei5Kxlu6BOCVRH83SKHFtAlc+Tx3mBfAPBATyrav9rHfjElnlIG47IF0SLrGVx DgJVbpTPB1hlTMgfMGWNCTED7XeG1M0Qae3zfpTf8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheelgdduheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepteefleffgfdtkeeikeegueetjefhgeehgfelhedtffeijeekhedtkefhjeff teejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvghtpdhnsggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Jul 2024 17:20:47 -0400 (EDT) From: Dima Kogan To: Jeremy Bryant Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <878qxrbzno.fsf@jeremybryant.net> (Jeremy Bryant's message of "Tue, 23 Jul 2024 21:51:07 +0100") References: <87o76veo04.fsf@secretsauce.net> <878qxrbzno.fsf@jeremybryant.net> Date: Tue, 23 Jul 2024 14:21:20 -0700 Message-ID: <87wmlbztwv.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Jeremy Bryant writes: > You mention mu4e twice. Does this happen only with mu4e? mu4e is > usually distributed separately from Emacs, which version are you > using? I don't think mu4e is responsible directly. I ran the april build of emacs for months with no issues, and only saw the crashes when trying to debug the *Messages* problem tickled by mu4e. So I doubt somebody else could readily reproduce the crash. In fact, so far, I haven't been able to reproduce it either, with the watchpoint enabled. But while debugging earlier, I saw it crash maybe 4 times within a few hours, so it's definitely an extant issue. For the record: $ dpkg -l mu4e ii mu4e 1.12.5-1 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 28 22:50:48 2024 Received: (at 72165) by debbugs.gnu.org; 29 Jul 2024 02:50:48 +0000 Received: from localhost ([127.0.0.1]:44677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYGTI-0004CC-Bj for submit@debbugs.gnu.org; Sun, 28 Jul 2024 22:50:48 -0400 Received: from fhigh8-smtp.messagingengine.com ([103.168.172.159]:40749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYGTF-0004Bx-AK for 72165@debbugs.gnu.org; Sun, 28 Jul 2024 22:50:47 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id BBF641140121; Sun, 28 Jul 2024 22:50:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 28 Jul 2024 22:50:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1722221427; x= 1722307827; bh=qp88jwQXOQ/QJva+nHV0/V3NxxcR4gbztxWBrgRRluI=; b=X 3yciL3cYPdAVnpKpm6vrLfhN4leMIDciu4j/8GcEBQ8bS1yL5M/BOYU8x20Sg1n5 3abimUfjvrpfLwc7mRxV9qnP3xiUR5zjmVXUbJBPfPVSJi4TgW3wHeLIFRB57HJd VKrPQU6AXhuzBCkYAxRX2dqaNg2rFY3KiVmwVSmxH78ASDsSt+zMdRQ8+okvtJP2 xxumULrNBcSd+UAdkkZuPnofvbWcnZFdI/nknI1pNxi5fDDHdq7Hy4/z6TP/K4Mc G7W3Wcygr95ngIWX8IgKisv9JXf+l9iQitI4r9Qqnu8WkeniGpxfzsTzVO1norR4 RKlxPhJY+c1y4agVIUjgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722221427; x=1722307827; bh=qp88jwQXOQ/QJva+nHV0/V3NxxcR 4gbztxWBrgRRluI=; b=Y9LTMcmZPMzuKi3v7fKBxVeaN2kZ9c6Wv7QWNeJFKCBw BPDEQTQfoGsCWKHso4IlEOlgjm+mHpkmMkKM1zRRQxbcTTUF3T8RR4Gw2bUsvZkW NSI7lGxZB6a9ntwd86GOaS2F+uKBnxoXtXgKsTavKjzxi5uwJdJtAvWue+HrnxbC q1/rjgop8nijItOYor5kgEVp1TA2CdcAV1QjgF59yoMkc6jOmFyfdxBHQMZ2d7kp h8xcahomEcsKwrIhnjstuhYnJVA3ZaQBtuiqhPAHyzCqc3xg43c7mb50lRH/RpFq Nfc/0UMsQbTdFJuuFUcpF8MPqLKsrE15yPfzTu6tGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjedugdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepffhimhgrucfm ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrghtth gvrhhnpeekhfefjeegkeeiledtgffffeejieduleffieejgfelieeltdejueekhfefvdeg leenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhn vghtpdhnsggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 28 Jul 2024 22:50:25 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <87a5idj0yg.fsf@secretsauce.net> (Dima Kogan's message of "Fri, 19 Jul 2024 00:27:35 -0700") References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> Date: Sun, 28 Jul 2024 19:50:52 -0700 Message-ID: <87msm0ud0z.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Alright. After some flailing I was able to make it crash with rr, so now I can see EVERYTHING. rr is truly a miracle, and figuring this out without it would have been impossible. I walked around the rr trace, and I clearly see the crashing mechanism. I don't dare fix it myself, but hopefully one of you will be able to, without a lot of trouble. The buggy function is message_dolog(): https://github.com/dkogan/emacs-snapshot/blob/439ec471961/src/xdisp.c#L12041 On line 12075 we save the current point as a marker (i.e. both the byte and char positions): oldpoint = message_dolog_marker1; set_marker_restricted_both (oldpoint, Qnil, PT, PT_BYTE); In the failing sequence I had some non-ascii characters, so PT_BYTE would be ahead of PT (by either 4 or 8 bytes). This difference is recorded into oldpoint. Then on line 12177 we check if we're exceeding message-log-max, and if so, delete some stuff from the *Messages*. if (FIXNATP (Vmessage_log_max)) { scan_newline (Z, Z_BYTE, BEG, BEG_BYTE, -XFIXNAT (Vmessage_log_max) - 1, false); del_range_both (BEG, BEG_BYTE, PT, PT_BYTE, false); } In the failing sequence we delete some of the non-ascii characters. So the byte-char offset changes: it was 4 or 8 bytes, and it becomes 0 or 4 bytes. At this point we're still correct. But very shortly after this, on line 12205 we restore the oldpoint into the current point. Since we just deleted stuff from the BEGINNING of the buffer, the oldpoint doesn't point to the same thing as before. Restoring it directly is wrong, but this normally doesn't cause crashes. The thing that causes crashing is that sometimes the byte-char offset in oldpoint is no longer correct, and we fail the consistency checks in redisplay_window(). OK. If more investigating is needed, I still have the rr trace, and can pull it up again. But I think we're clear on what's happening, and hopefully no more digging is required. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 29 07:46:23 2024 Received: (at 72165) by debbugs.gnu.org; 29 Jul 2024 11:46:23 +0000 Received: from localhost ([127.0.0.1]:45050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYOpX-0001Lv-CF for submit@debbugs.gnu.org; Mon, 29 Jul 2024 07:46:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYOpS-0001Lg-Fl for 72165@debbugs.gnu.org; Mon, 29 Jul 2024 07:46:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sYOpA-00012c-5Y; Mon, 29 Jul 2024 07:45:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TRfFDDiT/4XawkRvU+ffTWzVnDm37F11HXYIp970Zq4=; b=WHTFPLPd6nIT zEYYVixiRmNbIZLxDVZvleY3OCsumQqUZFZmJxTQMfYuAS1Se4vCSbHQQNVHKlnW1iaayKIZbJPtq E4eZDIjwqAuMVGJYt4W2Hn6JIOSpeuwP8nygPDbIu3Z2L70GF4Tf0rZW1bQ2diHQJL3vYM1aZdMvh JkWH6dq952uMySvD6+Cy/+mcWj7DXRxN3+cveQJX3LhFRd4fOeiCMGa9j+jX2ViNcmfWQBG7cvtoG aaxllGGWeKhswhHu2wo90jhLx/YisMRYAc7vLTPtvTakFIVuy81QNVPWb7Ow9jFcgxzp9F+fSc9Ts sWDVTay4uQCVtttbdybqIg==; Date: Mon, 29 Jul 2024 14:45:52 +0300 Message-Id: <86cymwzaj3.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <87msm0ud0z.fsf@secretsauce.net> (message from Dima Kogan on Sun, 28 Jul 2024 19:50:52 -0700) Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Dima Kogan > Cc: 72165@debbugs.gnu.org > Date: Sun, 28 Jul 2024 19:50:52 -0700 > > Alright. After some flailing I was able to make it crash with rr, so now > I can see EVERYTHING. rr is truly a miracle, and figuring this out > without it would have been impossible. Thanks for persevering. > Then on line 12177 we check if we're exceeding message-log-max, and if > so, delete some stuff from the *Messages*. > > if (FIXNATP (Vmessage_log_max)) > { > scan_newline (Z, Z_BYTE, BEG, BEG_BYTE, > -XFIXNAT (Vmessage_log_max) - 1, false); > del_range_both (BEG, BEG_BYTE, PT, PT_BYTE, false); > } > > In the failing sequence we delete some of the non-ascii characters. So > the byte-char offset changes: it was 4 or 8 bytes, and it becomes 0 or 4 > bytes. At this point we're still correct. But very shortly after this, > on line 12205 we restore the oldpoint into the current point. Since we > just deleted stuff from the BEGINNING of the buffer, the oldpoint > doesn't point to the same thing as before. Restoring it directly is > wrong, but this normally doesn't cause crashes. The thing that causes > crashing is that sometimes the byte-char offset in oldpoint is no longer > correct, and we fail the consistency checks in redisplay_window(). I'm confused by the last part of your description. The code which resets point to 'oldpoint' is this: if (point_at_end) TEMP_SET_PT_BOTH (Z, Z_BYTE); else /* We can't do Fgoto_char (oldpoint) because it will run some Lisp code. */ TEMP_SET_PT_BOTH (marker_position (oldpoint), marker_byte_position (oldpoint)); IOW, it uses 'oldpoint', which is a marker, not a simple number. It was initialized like this: oldpoint = message_dolog_marker1; set_marker_restricted_both (oldpoint, Qnil, PT, PT_BYTE); Since 'oldpoint' is a marker, it should have been moved by del_range_both so that it still points to the same text. Moreover, the char <-> byte correspondence was not supposed to be disrupted by that. So I think something else is at work here. Can you show the data you collected during the rr session? Specifically, what are the character and byte positions of 'oldpoint' before the call to del_range_both, how many characters and bytes were deleted by del_range_both, and what are the character and byte position of 'oldpoint' when we call TEMP_SET_PT_BOTH in the snippet I show above? One possibility is that the value of 'oldpoint' gets overwritten somehow between the place it is set and the place it is used to restore point. But in that case we need to find the code which overwrites it. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 29 23:11:46 2024 Received: (at 72165) by debbugs.gnu.org; 30 Jul 2024 03:11:46 +0000 Received: from localhost ([127.0.0.1]:46490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYdH7-0006Q4-UV for submit@debbugs.gnu.org; Mon, 29 Jul 2024 23:11:46 -0400 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]:41321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYdH3-0006Po-E4 for 72165@debbugs.gnu.org; Mon, 29 Jul 2024 23:11:44 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 682E41140467; Mon, 29 Jul 2024 23:00:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 29 Jul 2024 23:00:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1722308400; x= 1722394800; bh=6m76Wk9f5CMnBY3swokjQIOc5nlPYZsl79/ZpY3oYEk=; b=L fEYuapF7d+YgWM3mKJYx4oVqVJbbkPkKF76wcsuXvVlUfCu89L9bPkPbOitHnHwf YzAtt/8clpX31K13YkEfIFuVh8mtfUMu8SF8vTLnRgEQfxCvo3W7kVZyfVN+S30x XfN4B4XnwPp8+jehfhLiAOtgjEI6e0PcEzDS9eka+4MTaIcxzHpOhu3YM8GYEcSB p+000IVOXkAnBaNMM9QWswARPiszCb5lG7J7p1NOWGtvIZ9llYPj6JXoWy2lpBc3 vL9VUAt8WpZr368CXz+Xfz8wAkwbK/BBTwJK6Z/UMPyupcgQoncIJzA7MN2snZ4i 5FvjVSwSMJ8lU3I7azcTA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722308400; x=1722394800; bh=6m76Wk9f5CMnBY3swokjQIOc5nlP YZsl79/ZpY3oYEk=; b=M7/OooMSyG8+WUyld2bxWrZoWr8JU0bnHSECVt5ct3T8 ldPNPwscBUCRnbTC0O2b5cFYxbz8ZeEvrK2wIEIzmTSQbG8YMA+t0SNciCvo+g8G 0x1Nq84RbHZhng+c7mcOUwMBIdXN6L380x5HOa8IAv64ruIL2gKk+J1feY9IW7f/ FyYACyTEPIYvrBh8Wcr5tEyeRHh56u6QD6zhxf0L3st0ql2nEH/yNUza57+zwm+p Q7NytGCzgBikmEgIWz8MpHi3K73EKHZJ8y7y5PQqK5JVCbGNsILDfV2sSLQMGZ2U CmgqaO1oyrk5FyQas6xliPeHoCaOjJCXpXUPz3BVDQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeefgdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfffkfhggtgesthdtredttddttdenucfhrhhomhepffhimhgrucfm ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrghtth gvrhhnpefhleeuhffhkedukeeikeelfeevgedtveekkeffhedvvdeuieehkedvkeeuueek heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguih hmrgesshgvtghrvghtshgruhgtvgdrnhgvthdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Jul 2024 22:59:59 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <86cymwzaj3.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 Jul 2024 14:45:52 +0300") Date: Mon, 29 Jul 2024 05:49:54 -0700 Message-ID: <87jzh4tlal.fsf@secretsauce.net> References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> <86cymwzaj3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) > IOW, it uses 'oldpoint', which is a marker, not a simple number. It > was initialized like this: > > oldpoint = message_dolog_marker1; > set_marker_restricted_both (oldpoint, Qnil, PT, PT_BYTE); > > Since 'oldpoint' is a marker, it should have been moved by > del_range_both so that it still points to the same text. Moreover, > the char <-> byte correspondence was not supposed to be disrupted by > that. That is excellent to know! I'm not super familiar with the internals of emacs, so I don't know what is supposed to be handled, and might have jumped to the conclusion. Let's look again. I'm at a different cycle from before, but it still fails from a message-log-max truncation. - I'm at the top of redisplay_window() that has a crashing state, right after a redisplay_window() cycle with a non-crashing state. The crashing state has z_byte-z = 8 but pt_byte-pt = 12. Both are at the end of the buffer, and 8 is the correct value. - I run backwards until the truncation in message_dolog(): if (FIXNATP (Vmessage_log_max)) { scan_newline (Z, Z_BYTE, BEG, BEG_BYTE, -XFIXNAT (Vmessage_log_max) - 1, false); del_range_both (BEG, BEG_BYTE, PT, PT_BYTE, false); } Right after this both z_byte-z=8 (correct) and the point is at the beginning. This is correct, and the truncation itself didn't break anything. Note: this was (eventually) called from redisplay_window(), in the display_mode_lines() call in xdisp.c:20941 - Then we restore the oldpoint; what I suggested was the problem previously: if (point_at_end) TEMP_SET_PT_BOTH (Z, Z_BYTE); else /* We can't do Fgoto_char (oldpoint) because it will run some Lisp code. */ TEMP_SET_PT_BOTH (marker_position (oldpoint), marker_byte_position (oldpoint)); After that, both z_byte-z and pt_byte-pt are 8. This is correct. - Then we do this, in redisplay_window() in xdisp.c:21908 /* Restore current_buffer and value of point in it. The window update may have changed the buffer, so first make sure `opoint' is still valid (Bug#6177). */ if (CHARPOS (opoint) < BEGV) TEMP_SET_PT_BOTH (BEGV, BEGV_BYTE); else if (CHARPOS (opoint) > ZV) TEMP_SET_PT_BOTH (Z, Z_BYTE); else TEMP_SET_PT_BOTH (CHARPOS (opoint), BYTEPOS (opoint)); We pick the "else" branch. The end result is the exact failing state we hit on the next pass through redisplay_window(). This sounds like a different flavor of what I described yesterday. So in summary: in a redisplay_window() call: - We set the opoint on line 20064. This is a text_pos, NOT a marker. So it wouldn't be updated due to the buffer changing. - On line 20941 we call display_mode_lines() which eventually deletes lines at the start of *Messages* and moves the point. - On line 21908 we restore the opoint, saved prior to the lines being deleted, and no longer valid Does this sequence sound more reasonable to you? The description from the previous email made sense to me yesterday, but maybe I was too sleep-deprived to tell for certain. Looking through yesterday's gdb session, I don't see the smoking gun anymore. Thanks much! From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 30 12:21:44 2024 Received: (at 72165) by debbugs.gnu.org; 30 Jul 2024 16:21:44 +0000 Received: from localhost ([127.0.0.1]:48305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYpbb-0001GK-Q3 for submit@debbugs.gnu.org; Tue, 30 Jul 2024 12:21:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYpbY-0001G8-Sa for 72165@debbugs.gnu.org; Tue, 30 Jul 2024 12:21:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sYpbF-0003SB-5S; Tue, 30 Jul 2024 12:21:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4tc4IbaCQL+e62PM2Y56ht6qGV2gk8yTEYnEDLxddp8=; b=Ekb9Z3AtzEkf BQMyzGdFr1n9LdKqA8x0K/rPUGQxikb7eT/5m3P5JxLCKD1JcqptGwlmxPjf13V1g6oAOJPUNCkTg ZelBUAk6d+BbcJIrxBPLvqboMf5Vj1A5LNnBSeOY45uFsUSMbWaN6ySVcgC8TYju4Qhc+BJlozSnG a60qppKs1MxXzn8qfUV6FrCfyOWqKzS9X6FcVTnIju0FvSAIvFpGkcGKEkw3IJXA5o11BiTid6Z28 jU6gJFxgAJXWmo/fsER5OnV4VG5rmWr4QiRIVxxGCrCHvVfukhD2zHTfBVPw/0Z+p9q04LChZEQLf Vjgp0xxamXZbqTGsFzAhtw==; Date: Tue, 30 Jul 2024 19:21:17 +0300 Message-Id: <86sevqyhoi.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <87jzh4tlal.fsf@secretsauce.net> (message from Dima Kogan on Mon, 29 Jul 2024 05:49:54 -0700) Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> <86cymwzaj3.fsf@gnu.org> <87jzh4tlal.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Dima Kogan > Cc: 72165@debbugs.gnu.org > Date: Mon, 29 Jul 2024 05:49:54 -0700 > > - I'm at the top of redisplay_window() that has a crashing state, right > after a redisplay_window() cycle with a non-crashing state. The > crashing state has z_byte-z = 8 but pt_byte-pt = 12. Both are at the > end of the buffer, and 8 is the correct value. > > - I run backwards until the truncation in message_dolog(): > > if (FIXNATP (Vmessage_log_max)) > { > scan_newline (Z, Z_BYTE, BEG, BEG_BYTE, > -XFIXNAT (Vmessage_log_max) - 1, false); > del_range_both (BEG, BEG_BYTE, PT, PT_BYTE, false); > } > > Right after this both z_byte-z=8 (correct) and the point is at the > beginning. This is correct, and the truncation itself didn't break > anything. Note: this was (eventually) called from redisplay_window(), > in the display_mode_lines() call in xdisp.c:20941 > > - Then we restore the oldpoint; what I suggested was the problem > previously: > > if (point_at_end) > TEMP_SET_PT_BOTH (Z, Z_BYTE); > else > /* We can't do Fgoto_char (oldpoint) because it will run some > Lisp code. */ > TEMP_SET_PT_BOTH (marker_position (oldpoint), > marker_byte_position (oldpoint)); > > After that, both z_byte-z and pt_byte-pt are 8. This is correct. > > - Then we do this, in redisplay_window() in xdisp.c:21908 > > /* Restore current_buffer and value of point in it. The window > update may have changed the buffer, so first make sure `opoint' > is still valid (Bug#6177). */ > if (CHARPOS (opoint) < BEGV) > TEMP_SET_PT_BOTH (BEGV, BEGV_BYTE); > else if (CHARPOS (opoint) > ZV) > TEMP_SET_PT_BOTH (Z, Z_BYTE); > else > TEMP_SET_PT_BOTH (CHARPOS (opoint), BYTEPOS (opoint)); > > We pick the "else" branch. The end result is the exact failing state > we hit on the next pass through redisplay_window(). > > > This sounds like a different flavor of what I described yesterday. So in > summary: in a redisplay_window() call: > > - We set the opoint on line 20064. This is a text_pos, NOT a marker. So > it wouldn't be updated due to the buffer changing. > > - On line 20941 we call display_mode_lines() which eventually deletes > lines at the start of *Messages* and moves the point. > > - On line 21908 we restore the opoint, saved prior to the lines being > deleted, and no longer valid So let me see if I understand you correctly regarding what happens: . The *Messages* buffer is displayed in a window, which is redisplayed, and the display engine calls redisplay_window for it. . redisplay_window records the original position of point in the *Messages* buffer, then calls display_mode_lines, as it does for any window whose mode line needs to be redrawn for some reason . somewhere inside display_mode_lines, we call message_dolog, most probably because the mode-line format calls :eval, which signals an error . message_dolog adds some text to *Messages* and removes some other text from it, which invalidates the position of point recorded at the beginning of redisplay_window . redisplay_window then uses invalid value of point (including its byte position, which no longer corresponds to the character position) to set point, and that opens the gates of hell Is that correct? If so, this puzzle has the following pieces: . *Messages* is displayed and includes non-ASCII text . mode-line-format that signals an error when the window showing *Messages* is redisplayed . the size of *Messages* buffer and its contents are such that moving point to the value recorded at entry to redisplay_window produces a mismatch between PT and PT_BYTE If all of the above happen, we are toast. Right? Can you verify that the above theory is true? For example does CHARS_MODIFF value of the buffer after display_mode_lines returns differ from its value before the call? From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 30 16:39:18 2024 Received: (at 72165) by debbugs.gnu.org; 30 Jul 2024 20:39:18 +0000 Received: from localhost ([127.0.0.1]:48605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYtcr-0007uA-J7 for submit@debbugs.gnu.org; Tue, 30 Jul 2024 16:39:17 -0400 Received: from fout5-smtp.messagingengine.com ([103.168.172.148]:54993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYtcp-0007tt-EY for 72165@debbugs.gnu.org; Tue, 30 Jul 2024 16:39:16 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 273B8138019C; Tue, 30 Jul 2024 16:38:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 30 Jul 2024 16:38:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1722371935; x= 1722458335; bh=Q6x7GNYXrLi4yRchypJon5aiXIGZ+pke1TAKMvRppa0=; b=X dQWrp9q/igmWDCuluA22cHm0F1qwyVejw3SCHuWamRgEg/XnNbvvOWetx2aKW+SN fz5ZtC2wuUfghOWqvGX89EHl3ogMp9s7pbc5+UoYLt+w/hm485uqAFS/4JAwyDbV XSgQJ7igJBF/Db7i7mUkld85k5wZ3XRIVOl4KFpAKzXzJUgKSifDpZrDgebKzxAa fgSuz4JdTsurAMtyihBEFXZqhcwp8v5/7rA5QE8GdHeHKsObaHtZP6LF9S+NwG45 fjVz3s3TunzhkgNRR+4/qvtLeG7QDCROmexRAWtXGemi4+wgYJ5jf3cPE7ZTTB/h H6tpE3XCnbB6FjWuHBEtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722371935; x=1722458335; bh=Q6x7GNYXrLi4yRchypJon5aiXIGZ +pke1TAKMvRppa0=; b=UOMxLZ/jgr0cO+PdHEMRtNpsy0HIg0f4qf9X4IacqpUZ oVS3PNcCMsnQhgmrR4E0C87/Ng3962vXVIU/eZ9R9/21vvnNc5xIBqZ9Z8Ops7m3 gdYqZWzd2KLL1Jh/vh0YcLOlvHPEru0CLIh3rsBzybW6JviUHXwc/L7rwPohxjSV GHi7gEBjbInYjXx1X/mRqiIGxHyhLJz6WTqRo7RBzWfyH1dhAANbNwPq0+f+/5R+ /04+gkPgQ8FY+eGmVscfqj1pDBQ3lAHe369StNga4JAHgDSeEX3eLccPH2V0lSwK DREiI6NQr26o44uwSt9Os1kuXBpNGEg57RCUgOO7NQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeeggdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepteefleffgfdtkeeikeegueetjefhgeehgfelhedtffeijeekhedtkefhjeff teejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvghtpdhnsggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 Jul 2024 16:38:54 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <86sevqyhoi.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 30 Jul 2024 19:21:17 +0300") References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> <86cymwzaj3.fsf@gnu.org> <87jzh4tlal.fsf@secretsauce.net> <86sevqyhoi.fsf@gnu.org> Date: Wed, 31 Jul 2024 05:39:28 +0900 Message-ID: <874j86ty0v.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > So let me see if I understand you correctly regarding what happens: > > . The *Messages* buffer is displayed in a window, which is > redisplayed, and the display engine calls redisplay_window for it. > . redisplay_window records the original position of point in the > *Messages* buffer, then calls display_mode_lines, as it does for > any window whose mode line needs to be redrawn for some reason > . somewhere inside display_mode_lines, we call message_dolog, most > probably because the mode-line format calls :eval, which signals > an error > . message_dolog adds some text to *Messages* and removes some other > text from it, which invalidates the position of point recorded at > the beginning of redisplay_window > . redisplay_window then uses invalid value of point (including its > byte position, which no longer corresponds to the character > position) to set point, and that opens the gates of hell > > Is that correct? Yes > If so, this puzzle has the following pieces: > > . *Messages* is displayed and includes non-ASCII text Yes. My current understanding is that ASCII-only text could make the new stuff in *Messages* end up in the wrong place, but wouldn't cause a crash > . mode-line-format that signals an error when the window showing > *Messages* is redisplayed > . the size of *Messages* buffer and its contents are such that > moving point to the value recorded at entry to redisplay_window > produces a mismatch between PT and PT_BYTE > > If all of the above happen, we are toast. Right? Yes > Can you verify that the above theory is true? This is consistent with everything I see. > For example does CHARS_MODIFF value of the buffer after > display_mode_lines returns differ from its value before the call? Top of display_mode_lines(): CHARS_MODIFF = 29606 Bottom of display_mode_lines(): CHARS_MODIFF = 29703 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 01 07:03:50 2024 Received: (at 72165) by debbugs.gnu.org; 1 Aug 2024 11:03:50 +0000 Received: from localhost ([127.0.0.1]:50971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZTb4-0000NQ-4t for submit@debbugs.gnu.org; Thu, 01 Aug 2024 07:03:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZTb1-0000NC-IA for 72165@debbugs.gnu.org; Thu, 01 Aug 2024 07:03:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZTaf-0003WF-6w; Thu, 01 Aug 2024 07:03:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xLWQNrWA9FYsWR59+y2znUfKO32R1g/XL0mG0SOcGLg=; b=NP72RBewMx/2 0SKIvK510ORx9+tIPtDesXDAWozypwEkNbxvrnpLwfHYwwnb6VlRbeteRMt11SGiICkPxUTChRVC1 OJz/gePt8lIrS0VzGuE3FKr4VIOe/LTzTVf5OMpbmTCpTpnaGfZhw1MAO5m40pWm4ARPeAsZ6Pco+ t5Ow4BsoXnqkpNRqKBA7GzrigrVQIX4rGa4lji2jXyMCOAtXlQqk4DMY316EXeXNcFVxKEh6o+2sn v1R2yuJYFAj7fb6RZbwWLqNbGdjbjAgmxEix7xAIHf1X1HYcX2J3U9esewIAZ7dd7DOWGuDfb/5ko TTSFxr9T3y/hwETmrqBPeQ==; Date: Thu, 01 Aug 2024 14:03:22 +0300 Message-Id: <86mslwwlmt.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <874j86ty0v.fsf@secretsauce.net> (message from Dima Kogan on Wed, 31 Jul 2024 05:39:28 +0900) Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> <86cymwzaj3.fsf@gnu.org> <87jzh4tlal.fsf@secretsauce.net> <86sevqyhoi.fsf@gnu.org> <874j86ty0v.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Dima Kogan > Cc: 72165@debbugs.gnu.org > Date: Wed, 31 Jul 2024 05:39:28 +0900 > > > So let me see if I understand you correctly regarding what happens: > > > > . The *Messages* buffer is displayed in a window, which is > > redisplayed, and the display engine calls redisplay_window for it. > > . redisplay_window records the original position of point in the > > *Messages* buffer, then calls display_mode_lines, as it does for > > any window whose mode line needs to be redrawn for some reason > > . somewhere inside display_mode_lines, we call message_dolog, most > > probably because the mode-line format calls :eval, which signals > > an error > > . message_dolog adds some text to *Messages* and removes some other > > text from it, which invalidates the position of point recorded at > > the beginning of redisplay_window > > . redisplay_window then uses invalid value of point (including its > > byte position, which no longer corresponds to the character > > position) to set point, and that opens the gates of hell > > > > Is that correct? > > Yes > > > > If so, this puzzle has the following pieces: > > > > . *Messages* is displayed and includes non-ASCII text > > Yes. My current understanding is that ASCII-only text could make the new > stuff in *Messages* end up in the wrong place, but wouldn't cause a > crash > > > > . mode-line-format that signals an error when the window showing > > *Messages* is redisplayed > > . the size of *Messages* buffer and its contents are such that > > moving point to the value recorded at entry to redisplay_window > > produces a mismatch between PT and PT_BYTE > > > > If all of the above happen, we are toast. Right? > > Yes > > > > Can you verify that the above theory is true? > > This is consistent with everything I see. > > > > For example does CHARS_MODIFF value of the buffer after > > display_mode_lines returns differ from its value before the call? > > Top of display_mode_lines(): CHARS_MODIFF = 29606 > Bottom of display_mode_lines(): CHARS_MODIFF = 29703 Thanks. I've now installed a fix on the emacs-30 branch; let's hope this bug will not happen anymore. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 01 10:13:58 2024 Received: (at 72165) by debbugs.gnu.org; 1 Aug 2024 14:13:58 +0000 Received: from localhost ([127.0.0.1]:51736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZWZ4-0005ef-Cj for submit@debbugs.gnu.org; Thu, 01 Aug 2024 10:13:58 -0400 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]:38791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZWZ0-0005eH-1P for 72165@debbugs.gnu.org; Thu, 01 Aug 2024 10:13:56 -0400 Received: from compute8.internal (compute8.nyi.internal [10.202.2.227]) by mailfhigh.nyi.internal (Postfix) with ESMTP id D783A114AA2B; Thu, 1 Aug 2024 10:13:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute8.internal (MEProxy); Thu, 01 Aug 2024 10:13:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1722521611; x= 1722608011; bh=+uGWzxN4TSRQey7D5KHKOpm/vTq1iTxt7QCxDHPzatg=; b=j mURrHBmn4nVaX5a9KwSqYodbp0wt1vWLkWqKlwuCieMWQ15XZuJ6rJVL0JH+NUQ/ 0CfimMeUThV7rVtWsORMhBLYorllyTFbGxr2GvBWwGnOKgYFdJehQMhlJMyWCM22 X+rD9QT7D3UdaUbhta36veHLLZaVAIEolQ71IHvHkZGOrFz6EAy/s59w0SrCzxZV z+y3KHWtzQ1+6HpDzqDgzdHDix42og5I0eY4SCCG5EQ8JBF0eITwDIdhfBq8Y7nE 8FW9xeeBaKNswzG5de//VuThq6/kGD7T2D5wXnD7pkzlwYyBWVETNSbKL4jSvFvK UKGGTQMgkM5etM76daNQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722521611; x=1722608011; bh=+uGWzxN4TSRQey7D5KHKOpm/vTq1 iTxt7QCxDHPzatg=; b=iJX5IKncicFHyH464BsSHhj/taEgVZoPMDZPLXbI9Azw mi52mizqtN+as1k6ipymBrogdNIIXuPA38VWrJ1lxPaUYUzQkkgIZOlVDUuoCOQy 2dyxvklF9/gNrdj0uoVg9mrGyDtzSeutNJt5irdwjhrt9Z730lw+UWDGcgCju5CE bYi2T0HVF5gAoL49ZlNM1oj0RLwWbAkqzUm/TgFq7zj+mKnJ0j3kFzkl7KPess47 gC09/HbxBbfD5UDLzHqaVzXUf0r9jblEgn7y+1iGriswCjSCB9U032C7QAnLvU4x 9Y/SO54EBmrBeVZTlR1Krx14nRe0TLJ1Ve1vdkZ0YQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeekgdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepffhimhgrucfm ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrghtth gvrhhnpeetfeelfffgtdekieekgeeuteejhfeghefgleehtdffieejkeehtdekhfejffet jeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguih hmrgesshgvtghrvghtshgruhgtvgdrnhgvthdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Aug 2024 10:13:29 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <86mslwwlmt.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Aug 2024 14:03:22 +0300") References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> <86cymwzaj3.fsf@gnu.org> <87jzh4tlal.fsf@secretsauce.net> <86sevqyhoi.fsf@gnu.org> <874j86ty0v.fsf@secretsauce.net> <86mslwwlmt.fsf@gnu.org> Date: Thu, 01 Aug 2024 23:14:05 +0900 Message-ID: <87cymsqqj6.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: > Thanks. I've now installed a fix on the emacs-30 branch; let's hope > this bug will not happen anymore. Excellent. Thank you. Let me do a rebuild and try to confirm that this has indeed been fixed. I'll report back on this bug in a week or two. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 04 21:49:11 2024 Received: (at 72165-done) by debbugs.gnu.org; 5 Aug 2024 01:49:11 +0000 Received: from localhost ([127.0.0.1]:57622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1samqV-0000sF-Jy for submit@debbugs.gnu.org; Sun, 04 Aug 2024 21:49:11 -0400 Received: from fout3-smtp.messagingengine.com ([103.168.172.146]:58021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1samqT-0000rk-Dd for 72165-done@debbugs.gnu.org; Sun, 04 Aug 2024 21:49:10 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 6D37F13881F1; Sun, 4 Aug 2024 21:48:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 04 Aug 2024 21:48:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1722822522; x= 1722908922; bh=Bdmx6wAilYadLd/hhhc2bcHLNluzvCl2VIsHEe00UP4=; b=D o+Nog1dQFnPKmjMF3UDtSx2VtmpuvQ7ssjNcipwkMy/6eTN2NS15oyvVvNJXuVk0 U6HWxQfoo149S9SaAdgBF1Jnl99WE9nEhpsHoLZXGd6UMvW/ZFqKrK1z9wHkjVnf /xpnJ3fyLIpVjBmYmk0j3uVshdVKGDTeF2VsLa9q4YyrC6A58nASGz2F61Q7y7Ek R6PIcHUOzGcr8wnD5aVEyKog7qSIb4GJRmzQQ99we1RmOQK3CO2TTUfNgHAfcj6W bLRbKSXbcSrzDYrFQdb/ettZkUALCQSkbbiAZwLMfheBLwpP2uqpG//4Fd0T4CU+ ISkhf+Jm26Kc85s2SVIPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722822522; x=1722908922; bh=Bdmx6wAilYadLd/hhhc2bcHLNluz vCl2VIsHEe00UP4=; b=PAnmw/bPynDPYQCslN1COxylHS7K8cGATLWynawhL0Gp bog2flvDzJpVOPslC6m2EottODBrCYojzBa+uCriqSOfnAilCaIDQshuiHLfT1ML h2Ax3IcCvqeKIMc9qfFxvISgemsJmnXG/X05Zq0pdIGNBC2GTwUDwFnYRjESJSDB uU1Y+imabBoYnQeH5Rts1QurGO0yQawUVPgXcoaR5fX6S8vxmAq4ICDdE+my/z7Z 1OZIHUGNR+9p8lxofxUL/NhAJseCpM1KTlMSJZI8tiltgL4D0P6VA3u9zT7y6PsU W4imRokQYrH4W198WqjPQep0xm3IjjH3Od6BVG0hxw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrkeehgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepffhimhgrucfm ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrghtth gvrhhnpeetfeelfffgtdekieekgeeuteejhfeghefgleehtdffieejkeehtdekhfejffet jeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguih hmrgesshgvtghrvghtshgruhgtvgdrnhgvthdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 4 Aug 2024 21:48:41 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <87cymsqqj6.fsf@secretsauce.net> (Dima Kogan's message of "Thu, 01 Aug 2024 23:14:05 +0900") References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> <86cymwzaj3.fsf@gnu.org> <87jzh4tlal.fsf@secretsauce.net> <86sevqyhoi.fsf@gnu.org> <874j86ty0v.fsf@secretsauce.net> <86mslwwlmt.fsf@gnu.org> <87cymsqqj6.fsf@secretsauce.net> Date: Mon, 05 Aug 2024 08:49:15 +0700 Message-ID: <877ccvoi1w.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165-done Cc: 72165-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Excellent. Thank you. Let me do a rebuild and try to confirm that this > has indeed been fixed. I just tried to make it crash with the patch applied, and I can't do it. It's not a perfect test, since I never had a 100% method of doing that, but I'm willing to believe. I'm closing the bug. Thank you very much! From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 04 21:51:32 2024 Received: (at 72165) by debbugs.gnu.org; 5 Aug 2024 01:51:32 +0000 Received: from localhost ([127.0.0.1]:57631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1samsm-00012G-2u for submit@debbugs.gnu.org; Sun, 04 Aug 2024 21:51:32 -0400 Received: from fhigh8-smtp.messagingengine.com ([103.168.172.159]:55469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1samsk-00011f-M2 for 72165@debbugs.gnu.org; Sun, 04 Aug 2024 21:51:31 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id AE61A1151FBA; Sun, 4 Aug 2024 21:51:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 04 Aug 2024 21:51:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1722822663; x= 1722909063; bh=OAI+N59vSXIDa8ssKIPOGHBrM4tQOUw4o+GZvsJrH8Y=; b=f ePKX0McLZCsfUCDDAXKrO0M6t1jTbxSSByZVnFUC51pYhJMe/+MhMzCr7aeUoOwJ EAOtHHgfA+5N3dvgmhrdR/hebpdf/lMBWpEQAznFAazK5K3TkjJybdB3FknESTPu MRh99Opy3qrql788S8mV/eEsCsFIzdVepGxdj7n6PEXP7VoVA/xv1o6IeHaGGlGD T3/+/lwSY1J7dfAKfAqimjENCN6brZSDaWcSCqfGuQqXwLsatL02YRlTPNTiMgiv y1jGzzZQSI3kIee09ri/8RfbIqk7yq06w0KYsCuAxwEWX3rrKwDcPPfuYPgrUZnT lLs1qtEvJkv0odxN/vVVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722822663; x=1722909063; bh=OAI+N59vSXIDa8ssKIPOGHBrM4tQ OUw4o+GZvsJrH8Y=; b=TGIvPtssqjyfGrafV3vTjATLI5mODcRkCEAIPgB1X/km 22dvpMizO3jVQhMucMKOx9mB3ewHIp/No6o2JNoyKQZzzenFzdwA/bmKBsVM4q5c lXxbrFhzk8hVfHzzpLDRDhd3H4j3Q/TNzZF2BZ9xlgDZ/UXwPPLnUg9MFc4ahRil 2awuRnDXwS+OsuIaxGEd7IBGpTN+y+VNquSyPbDSPYmGolw0whkD+zwFLCYq3jlp 1olpM7HSMSgwYk7SoRhaz3V/0ULuX/ZRUQEFGfxC0ADGl6xw4io2GLgFmfdwqZ7S IcAzPTZuZFf/NxGgdngz0MH/XpOeDWmA8C3iKhlDnQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrkeehgdehfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepffhimhgrucfm ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrghtth gvrhhnpeetfeelfffgtdekieekgeeuteejhfeghefgleehtdffieejkeehtdekhfejffet jeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguih hmrgesshgvtghrvghtshgruhgtvgdrnhgvthdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 4 Aug 2024 21:51:02 -0400 (EDT) From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build In-Reply-To: <877ccvoi1w.fsf@secretsauce.net> (Dima Kogan's message of "Mon, 05 Aug 2024 08:49:15 +0700") References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> <86cymwzaj3.fsf@gnu.org> <87jzh4tlal.fsf@secretsauce.net> <86sevqyhoi.fsf@gnu.org> <874j86ty0v.fsf@secretsauce.net> <86mslwwlmt.fsf@gnu.org> <87cymsqqj6.fsf@secretsauce.net> <877ccvoi1w.fsf@secretsauce.net> Date: Mon, 05 Aug 2024 08:51:33 +0700 Message-ID: <8734njohy2.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Oh, and can this be merged into master? From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 04 22:33:06 2024 Received: (at 72165) by debbugs.gnu.org; 5 Aug 2024 02:33:06 +0000 Received: from localhost ([127.0.0.1]:57649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sanX0-0003ZW-4V for submit@debbugs.gnu.org; Sun, 04 Aug 2024 22:33:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sanWx-0003Yf-1h for 72165@debbugs.gnu.org; Sun, 04 Aug 2024 22:33:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sanUQ-0002M7-5r; Sun, 04 Aug 2024 22:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WQBM9cBigrvVlfzdNR23uD5LNl4cFyAAylUCgp/A1Mg=; b=GgW5ogJkJbn4 5ZWHrs9zKT6RiKMExNrBswguufcBusai6G2IGNZMIDYW58VFHgqThs1+xL+M32n7uNkLuNC5Y/z3B cCVC+QJdF8OE+LaPR1Gg3OBPPbhxFFijpVSKCrj0WmdqYeq7Lil5v2Lq4BTX5zLvLmOA5aCLTEHJb WXZ+NNBEIUt5ePASuxtAvmrWXwFKqnMI9TWBJPwY6zvKrizthl5Us+T+ifgNiLrUOTtEeMrexpLm/ WCe3M+UJmtFMGf+r3/4djDuiuly4NI2wwyf7O4QatzZbwiGvyamO9z0QYr0GdLxS/165HqWjPxuTD Ae+GRpRJYhXl18GpkETQeg==; Date: Mon, 05 Aug 2024 05:30:22 +0300 Message-Id: <86mslrr9a9.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <8734njohy2.fsf@secretsauce.net> (message from Dima Kogan on Mon, 05 Aug 2024 08:51:33 +0700) Subject: Re: bug#72165: 31.0.50; Intermittent crashing with recent emacs build References: <87o76veo04.fsf@secretsauce.net> <8634o7gusx.fsf@gnu.org> <874j8n6u1x.fsf@secretsauce.net> <86frs7f2n7.fsf@gnu.org> <87a5idj0yg.fsf@secretsauce.net> <87msm0ud0z.fsf@secretsauce.net> <86cymwzaj3.fsf@gnu.org> <87jzh4tlal.fsf@secretsauce.net> <86sevqyhoi.fsf@gnu.org> <874j86ty0v.fsf@secretsauce.net> <86mslwwlmt.fsf@gnu.org> <87cymsqqj6.fsf@secretsauce.net> <877ccvoi1w.fsf@secretsauce.net> <8734njohy2.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72165 Cc: 72165@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Dima Kogan > Cc: 72165@debbugs.gnu.org > Date: Mon, 05 Aug 2024 08:51:33 +0700 > > Oh, and can this be merged into master? It already was merged. From unknown Tue Jun 17 01:50:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 02 Sep 2024 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator