Subject: Re: bug#28710: 27.0.50; eassert failure in maybe_produce_line_number

From: Alex <[email-masked]>
Date: Mon, 09 Oct 2017 13:36:41 -0600

Eli Zaretskii <[email-masked]> writes:

> OK, then you could use a slightly different way:
>
>   Thread 1 hit Breakpoint 3, Fredraw_display () at dispnew.c:3032
>   3032      FOR_EACH_FRAME (tail, frame)
>   (gdb) n
>   3033        if (FRAME_VISIBLE_P (XFRAME (frame)))
>   (gdb) p frame
>   $1 = XIL(0xa000000001b5e380)
>   (gdb) xframe
>   $2 = (struct frame *) 0x1b5e380 <dumped_data+4020672>
>   "emacs@HOME-C4E4A596F7"
>   (gdb) p $2->redisplay
>   $3 = true
>   (gdb) watch -l $2->redisplay
>   Hardware watchpoint 4: -location $2->redisplay
>   (gdb) commands
>   Type commands for breakpoint(s) 4, one per line.
>   End with a line saying just "end".
>     >bt
>     >continue
>     >end
>   (gdb) continue

Okay, I got the second backtrace after pressing RET:

Thread 1 "emacs" hit Hardware watchpoint 4: -location $2->redisplay

Old value = true
New value = false
redisplay_internal () at xdisp.c:14366
14366			  f->garbaged = false;
#0  0x000000000046bd61 in redisplay_internal () at xdisp.c:14366
#1  0x00000000004690da in redisplay () at xdisp.c:13488
#2  0x0000000000594cb1 in read_char (commandflag=1, map=XIL(0x541d1c3), prev_event=XIL(0), used_mouse_menu=0x7ffd34b0a21f, end_time=0x0) at keyboard.c:2480
#3  0x00000000005a500f in read_key_sequence (keybuf=0x7ffd34b0a370, bufsize=30, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false)
    at keyboard.c:9147
#4  0x00000000005918e2 in command_loop_1 () at keyboard.c:1368
#5  0x0000000000646e96 in internal_condition_case (bfun=0x59149e <command_loop_1>, handlers=XIL(0x5220), hfun=0x590aa5 <cmd_error>) at eval.c:1332
#6  0x0000000000591078 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1110
#7  0x000000000064639f in internal_catch (tag=XIL(0xc6c0), func=0x59104b <command_loop_2>, arg=XIL(0)) at eval.c:1097
#8  0x0000000000591016 in command_loop () at keyboard.c:1089
#9  0x000000000059058f in recursive_edit_1 () at keyboard.c:695
#10 0x0000000000590784 in Frecursive_edit () at keyboard.c:766
#11 0x000000000058e32c in main (argc=2, argv=0x7ffd34b0a838) at emacs.c:1713

Lisp Backtrace:
"redisplay_internal (C function)" (0x0)

Thread 1 "emacs" hit Hardware watchpoint 4: -location $2->redisplay

Old value = false
New value = true
fset_redisplay (f=0x15cac30 <bss_sbrk_buffer+8062480>) at xdisp.c:600
600	}
#0  0x000000000043eddc in fset_redisplay (f=0x15cac30 <bss_sbrk_buffer+8062480>) at xdisp.c:600
#1  0x000000000057abb6 in xg_update_scrollbar_pos (f=0x15cac30 <bss_sbrk_buffer+8062480>, scrollbar_id=0, top=0, left=736, width=16, height=612) at gtkutil.c:3942
#2  0x0000000000547fd9 in XTset_vertical_scroll_bar (w=0x15cbc30 <bss_sbrk_buffer+8066576>, portion=1228, whole=8237, position=0) at xterm.c:6809
#3  0x00000000004728d9 in set_vertical_scroll_bar (w=0x15cbc30 <bss_sbrk_buffer+8066576>) at xdisp.c:16372
#4  0x0000000000476f90 in redisplay_window (window=XIL(0x15cbc35), just_this_one_p=false) at xdisp.c:17527
#5  0x000000000046d001 in redisplay_window_0 (window=XIL(0x15cbc35)) at xdisp.c:14799
#6  0x0000000000646f71 in internal_condition_case_1 (bfun=0x46cfbf <redisplay_window_0>, arg=XIL(0x15cbc35), handlers=XIL(0xe82d93), hfun=0x46cf87 <redisplay_window_error>) at eval.c:1356
#7  0x000000000046cf5c in redisplay_windows (window=XIL(0x15cbc35)) at xdisp.c:14779
#8  0x000000000046b8f5 in redisplay_internal () at xdisp.c:14268
#9  0x00000000004690da in redisplay () at xdisp.c:13488
#10 0x0000000000594cb1 in read_char (commandflag=1, map=XIL(0x55117d3), prev_event=XIL(0), used_mouse_menu=0x7ffd34b0a21f, end_time=0x0) at keyboard.c:2480
#11 0x00000000005a500f in read_key_sequence (keybuf=0x7ffd34b0a370, bufsize=30, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false)
    at keyboard.c:9147
#12 0x00000000005918e2 in command_loop_1 () at keyboard.c:1368
#13 0x0000000000646e96 in internal_condition_case (bfun=0x59149e <command_loop_1>, handlers=XIL(0x5220), hfun=0x590aa5 <cmd_error>) at eval.c:1332
#14 0x0000000000591078 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1110
#15 0x000000000064639f in internal_catch (tag=XIL(0xc6c0), func=0x59104b <command_loop_2>, arg=XIL(0)) at eval.c:1097
#16 0x0000000000591016 in command_loop () at keyboard.c:1089
#17 0x000000000059058f in recursive_edit_1 () at keyboard.c:695
#18 0x0000000000590784 in Frecursive_edit () at keyboard.c:766
#19 0x000000000058e32c in main (argc=2, argv=0x7ffd34b0a838) at emacs.c:1713