Subject: Re: bug#34179: 27.0.50; message hangs when buffer with process visible

From: Michael Heerdegen <[email-masked]>
Date: Thu, 24 Jan 2019 14:35:56 +0100

Michael Heerdegen <[email-masked]> writes:

> Looks like I have a problem with gc again?

Here is another one.  This time 'message' has been called while browsing
with w3m.  Looks quite different:

(gdb) backtrace
#0  0x00005589d7289297 in CHAR_TABLE_REF_ASCII (ct=XIL(0x7fa7a295e015), idx=48) at lisp.h:2025
#1  0x00005589d7289313 in CHAR_TABLE_REF (ct=XIL(0x7fa7a295e015), idx=48) at lisp.h:2039
#2  0x00005589d73bc900 in composition_compute_stop_pos
    (cmp_it=0x7fff6c0ec4c0, charpos=7041, bytepos=7042, endpos=7150, string=XIL(0))
    at composite.c:1022
#3  0x00005589d73bd5a4 in composition_reseat_it
    (cmp_it=0x7fff6c0ec4c0, charpos=7011, bytepos=7012, endpos=7150, w=0x5589db5212d0, face=0x5589da38bca0, string=XIL(0)) at composite.c:1183
#4  0x00005589d717e17c in next_element_from_buffer (it=0x7fff6c0ebc40) at xdisp.c:8518
#5  0x00005589d717a402 in get_next_display_element (it=0x7fff6c0ebc40) at xdisp.c:7061
#6  0x00005589d71a16aa in display_line (it=0x7fff6c0ebc40, cursor_vpos=15) at xdisp.c:21615
#7  0x00005589d7196c02 in try_window (window=XIL(0x5589db5212d5), pos=..., flags=1) at xdisp.c:17818
#8  0x00005589d7194760 in redisplay_window (window=XIL(0x5589db5212d5), just_this_one_p=false)
    at xdisp.c:17265
#9  0x00005589d718db43 in redisplay_window_0 (window=XIL(0x5589db5212d5)) at xdisp.c:14993
#10 0x00005589d733d35a in internal_condition_case_1
    (bfun=0x5589d718db01 <redisplay_window_0>, arg=XIL(0x5589db5212d5), handlers=XIL(0x7fa7a295dc5b), hfun=0x5589d718dac9 <redisplay_window_error>) at eval.c:1400
#11 0x00005589d718daa0 in redisplay_windows (window=XIL(0x5589db5212d5)) at xdisp.c:14973
#12 0x00005589d718da52 in redisplay_windows (window=XIL(0x5589db386115)) at xdisp.c:14967
#13 0x00005589d718c99b in redisplay_internal () at xdisp.c:14443
#14 0x00005589d7188441 in echo_area_display (update_frame_p=true) at xdisp.c:11714
#15 0x00005589d7185e78 in message3_nolog (m=XIL(0x5589daf3e7e4)) at xdisp.c:10667
#16 0x00005589d7185bc0 in message3 (m=XIL(0x5589daf3e7e4)) at xdisp.c:10596
#17 0x00005589d73339f4 in Fmessage (nargs=3, args=0x7fff6c0f0f98) at editfns.c:2808
#18 0x00005589d7340c46 in funcall_subr
    (subr=0x5589d77a7d80 <Smessage>, numargs=3, args=0x7fff6c0f0f98) at eval.c:2915
#19 0x00005589d734093b in Ffuncall (nargs=4, args=0x7fff6c0f0f90) at eval.c:2860
#20 0x00005589d733fd72 in Fapply (nargs=2, args=0x7fff6c0f1150) at eval.c:2480
#21 0x00005589d7340c46 in funcall_subr (subr=0x5589d77a8800 <Sapply>, numargs=2, args=0x7fff6c0f1150)
    at eval.c:2915
#22 0x00005589d734093b in Ffuncall (nargs=3, args=0x7fff6c0f1148) at eval.c:2860
#23 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db1c0084), vector=XIL(0x5589db18b335), maxdepth=make_number(3), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#24 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db18b3d5), nargs=3, arg_vector=0x5589db18b335)
    at eval.c:3136
#25 0x00005589d734097f in Ffuncall (nargs=4, args=0x7fff6c0f15e8) at eval.c:2862
#26 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db21d4d4), vector=XIL(0x5589dabde015), maxdepth=make_number(8), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#27 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589dabde155), nargs=2, arg_vector=0x5589dabde015)
    at eval.c:3136
#28 0x00005589d734097f in Ffuncall (nargs=3, args=0x7fff6c0f1b08) at eval.c:2862
#29 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db2231e4), vector=XIL(0x5589db3afcb5), maxdepth=make_number(12), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#30 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db3afec5), nargs=6, arg_vector=0x5589db3afcb5)
    at eval.c:3136
#31 0x00005589d734097f in Ffuncall (nargs=7, args=0x7fff6c0f20f8) at eval.c:2862
#32 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db222214), vector=XIL(0x5589daecd6b5), maxdepth=make_number(12), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#33 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db31abd5), nargs=6, arg_vector=0x5589daecd6b5)
    at eval.c:3136
#34 0x00005589d734097f in Ffuncall (nargs=7, args=0x7fff6c0f2698) at eval.c:2862
#35 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db226854), vector=XIL(0x5589db401535), maxdepth=make_number(8), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#36 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db4016c5), nargs=6, arg_vector=0x5589db401535)
    at eval.c:3136
#37 0x00005589d734097f in Ffuncall (nargs=7, args=0x7fff6c0f2c18) at eval.c:2862
#38 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db1f1e54), vector=XIL(0x5589db3fcab5), maxdepth=make_number(13), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#39 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db4467c5), nargs=6, arg_vector=0x5589db3fcab5)
    at eval.c:3136
#40 0x00005589d734097f in Ffuncall (nargs=7, args=0x7fff6c0f3228) at eval.c:2862
#41 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db2072c4), vector=XIL(0x5589db4c9145), maxdepth=make_number(16), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#42 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db4c95b5), nargs=9, arg_vector=0x5589db4c9145)
    at eval.c:3136
#43 0x00005589d734097f in Ffuncall (nargs=10, args=0x7fff6c0f3ad8) at eval.c:2862
#44 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db27b304), vector=XIL(0x5589db26eaa5), maxdepth=make_number(11), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#45 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db4c96b5), nargs=3, arg_vector=0x5589db26eaa5)
    at eval.c:3136
#46 0x00005589d734097f in Ffuncall (nargs=4, args=0x7fff6c0f4130) at eval.c:2862
#47 0x00005589d733fd72 in Fapply (nargs=2, args=0x7fff6c0f4300) at eval.c:2480
#48 0x00005589d7340c46 in funcall_subr (subr=0x5589d77a8800 <Sapply>, numargs=2, args=0x7fff6c0f4300)
    at eval.c:2915
#49 0x00005589d734093b in Ffuncall (nargs=3, args=0x7fff6c0f42f8) at eval.c:2860
#50 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589d982a5e4), vector=XIL(0x5589dacad395), maxdepth=make_number(5), args_template=make_number(385), nargs=4, args=0x7fff6c0f4750) at bytecode.c:633
#51 0x00005589d7341345 in funcall_lambda (fun=XIL(0x5589dac74005), nargs=4, arg_vector=0x7fff6c0f4748)
    at eval.c:3058
#52 0x00005589d734097f in Ffuncall (nargs=5, args=0x7fff6c0f4740) at eval.c:2862
#53 0x00005589d733fd72 in Fapply (nargs=3, args=0x7fff6c0f4908) at eval.c:2480
#54 0x00005589d7340c46 in funcall_subr (subr=0x5589d77a8800 <Sapply>, numargs=3, args=0x7fff6c0f4908)
    at eval.c:2915
#55 0x00005589d734093b in Ffuncall (nargs=4, args=0x7fff6c0f4900) at eval.c:2860
#56 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x7fa7a26bb6fc), vector=XIL(0x5589db418cd5), maxdepth=make_number(5), args_template=make_number(128), nargs=3, args=0x7fff6c0f4e90) at bytecode.c:633
#57 0x00005589d7341345 in funcall_lambda (fun=XIL(0x5589db1c0275), nargs=3, arg_vector=0x7fff6c0f4e90)
    at eval.c:3058
#58 0x00005589d734097f in Ffuncall (nargs=4, args=0x7fff6c0f4e88) at eval.c:2862
#59 0x00005589d7338567 in Ffuncall_interactively (nargs=4, args=0x7fff6c0f4e88) at callint.c:253
#60 0x00005589d7340c46 in funcall_subr
    (subr=0x5589d77a8000 <Sfuncall_interactively>, numargs=4, args=0x7fff6c0f4e88) at eval.c:2915
#61 0x00005589d734093b in Ffuncall (nargs=5, args=0x7fff6c0f4e80) at eval.c:2860
#62 0x00005589d733fd72 in Fapply (nargs=3, args=0x7fff6c0f4f50) at eval.c:2480
#63 0x00005589d7338926 in Fcall_interactively
    (function=XIL(0x1790520), record_flag=XIL(0), keys=XIL(0x5589dc09c9e5)) at callint.c:340
#64 0x00005589d7340d76 in funcall_subr
    (subr=0x5589d77a8040 <Scall_interactively>, numargs=3, args=0x7fff6c0f5260) at eval.c:2940
#65 0x00005589d734093b in Ffuncall (nargs=4, args=0x7fff6c0f5258) at eval.c:2860
#66 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x7fa7a27c16dc), vector=XIL(0x7fa7a27c126d), maxdepth=make_number(13), args_template=make_number(1025), nargs=1, args=0x7fff6c0f5770) at bytecode.c:633
#67 0x00005589d7341345 in funcall_lambda (fun=XIL(0x7fa7a27c123d), nargs=1, arg_vector=0x7fff6c0f5768)
    at eval.c:3058
#68 0x00005589d734097f in Ffuncall (nargs=2, args=0x7fff6c0f5760) at eval.c:2862
#69 0x00005589d7340331 in call1 (fn=XIL(0x4140), arg1=XIL(0x1790520)) at eval.c:2711
#70 0x00005589d72926f2 in command_loop_1 () at keyboard.c:1462
#71 0x00005589d733d2b3 in internal_condition_case
    (bfun=0x5589d7291f22 <command_loop_1>, handlers=XIL(0x55b0), hfun=0x5589d72916f8 <cmd_error>)
    at eval.c:1376
#72 0x00005589d7291c0a in command_loop_2 (ignore=XIL(0)) at keyboard.c:1090
#73 0x00005589d733cb7c in internal_catch
    (tag=XIL(0xcde0), func=0x5589d7291bdd <command_loop_2>, arg=XIL(0)) at eval.c:1139
#74 0x00005589d7291ba8 in command_loop () at keyboard.c:1069
#75 0x00005589d72912c7 in recursive_edit_1 () at keyboard.c:714
#76 0x00005589d729144b in Frecursive_edit () at keyboard.c:785
#77 0x00005589d728f373 in main (argc=2, argv=0x7fff6c0f5c58) at emacs.c:1902

Lisp Backtrace:
"redisplay_internal (C function)" (0x0)
"message" (0x6c0f0f98)
"apply" (0x6c0f1150)
"w3m-message" (0x6c0f15f0)
"w3m-w3m-dump-extra" (0x6c0f1b10)
"w3m-w3m-retrieve-1" (0x6c0f2100)
"w3m-w3m-retrieve" (0x6c0f26a0)
"w3m-retrieve" (0x6c0f2c20)
"w3m-retrieve-and-render" (0x6c0f3230)
"w3m--goto-url--valid-url" (0x6c0f3ae0)
0xdb4c96b0 PVEC_COMPILED
"apply" (0x6c0f4300)
"my-w3m-goto-url-prompt-with-helm-ad" (0x6c0f4748)
"apply" (0x6c0f4908)
"w3m-goto-url" (0x6c0f4e90)
"funcall-interactively" (0x6c0f4e88)
"call-interactively" (0x6c0f5260)
"command-execute" (0x6c0f5768)

I detached and attached again.  Now I get this:

(gdb) backtrace
#0  0x00005589d72251fb in bidi_remember_char
    (saved_info=0x7fff6c0ec678, bidi_it=0x7fff6c0ec630, from_type=false) at bidi.c:524
#1  0x00005589d7228636 in bidi_resolve_explicit (bidi_it=0x7fff6c0ec630) at bidi.c:1847
#2  0x00005589d72291b0 in bidi_resolve_weak (bidi_it=0x7fff6c0ec630) at bidi.c:2174
#3  0x00005589d722a54e in bidi_resolve_brackets (bidi_it=0x7fff6c0ec630) at bidi.c:2838
#4  0x00005589d722a84d in bidi_resolve_neutral (bidi_it=0x7fff6c0ec630) at bidi.c:2956
#5  0x00005589d722ada7 in bidi_type_of_next_char (bidi_it=0x7fff6c0ec630) at bidi.c:3161
#6  0x00005589d722afa6 in bidi_level_of_next_char (bidi_it=0x7fff6c0ec630) at bidi.c:3228
#7  0x00005589d722b5be in bidi_move_to_visually_next (bidi_it=0x7fff6c0ec630) at bidi.c:3421
#8  0x00005589d717bc1a in set_iterator_to_next (it=0x7fff6c0ebc40, reseat_p=true) at xdisp.c:7575
#9  0x00005589d71a40db in display_line (it=0x7fff6c0ebc40, cursor_vpos=11) at xdisp.c:22103
#10 0x00005589d7196c02 in try_window (window=XIL(0x5589d9199fb5), pos=..., flags=1) at xdisp.c:17818
#11 0x00005589d7194760 in redisplay_window (window=XIL(0x5589d9199fb5), just_this_one_p=false)
    at xdisp.c:17265
#12 0x00005589d718db43 in redisplay_window_0 (window=XIL(0x5589d9199fb5)) at xdisp.c:14993
#13 0x00005589d733d35a in internal_condition_case_1
    (bfun=0x5589d718db01 <redisplay_window_0>, arg=XIL(0x5589d9199fb5), handlers=XIL(0x7fa7a295dc5b), hfun=0x5589d718dac9 <redisplay_window_error>) at eval.c:1400
#14 0x00005589d718daa0 in redisplay_windows (window=XIL(0x5589d9199fb5)) at xdisp.c:14973
#15 0x00005589d718da52 in redisplay_windows (window=XIL(0x5589db386115)) at xdisp.c:14967
#16 0x00005589d718c99b in redisplay_internal () at xdisp.c:14443
#17 0x00005589d7188441 in echo_area_display (update_frame_p=true) at xdisp.c:11714
#18 0x00005589d7185e78 in message3_nolog (m=XIL(0x5589daf3e7e4)) at xdisp.c:10667
#19 0x00005589d7185bc0 in message3 (m=XIL(0x5589daf3e7e4)) at xdisp.c:10596
#20 0x00005589d73339f4 in Fmessage (nargs=3, args=0x7fff6c0f0f98) at editfns.c:2808
#21 0x00005589d7340c46 in funcall_subr
    (subr=0x5589d77a7d80 <Smessage>, numargs=3, args=0x7fff6c0f0f98) at eval.c:2915
#22 0x00005589d734093b in Ffuncall (nargs=4, args=0x7fff6c0f0f90) at eval.c:2860
#23 0x00005589d733fd72 in Fapply (nargs=2, args=0x7fff6c0f1150) at eval.c:2480
#24 0x00005589d7340c46 in funcall_subr (subr=0x5589d77a8800 <Sapply>, numargs=2, args=0x7fff6c0f1150)
    at eval.c:2915
#25 0x00005589d734093b in Ffuncall (nargs=3, args=0x7fff6c0f1148) at eval.c:2860
#26 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db1c0084), vector=XIL(0x5589db18b335), maxdepth=make_number(3), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#27 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db18b3d5), nargs=3, arg_vector=0x5589db18b335)
    at eval.c:3136
#28 0x00005589d734097f in Ffuncall (nargs=4, args=0x7fff6c0f15e8) at eval.c:2862
#29 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db21d4d4), vector=XIL(0x5589dabde015), maxdepth=make_number(8), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#30 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589dabde155), nargs=2, arg_vector=0x5589dabde015)
    at eval.c:3136
#31 0x00005589d734097f in Ffuncall (nargs=3, args=0x7fff6c0f1b08) at eval.c:2862
#32 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db2231e4), vector=XIL(0x5589db3afcb5), maxdepth=make_number(12), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#33 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db3afec5), nargs=6, arg_vector=0x5589db3afcb5)
    at eval.c:3136
#34 0x00005589d734097f in Ffuncall (nargs=7, args=0x7fff6c0f20f8) at eval.c:2862
#35 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db222214), vector=XIL(0x5589daecd6b5), maxdepth=make_number(12), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#36 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db31abd5), nargs=6, arg_vector=0x5589daecd6b5)
    at eval.c:3136
#37 0x00005589d734097f in Ffuncall (nargs=7, args=0x7fff6c0f2698) at eval.c:2862
#38 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db226854), vector=XIL(0x5589db401535), maxdepth=make_number(8), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#39 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db4016c5), nargs=6, arg_vector=0x5589db401535)
    at eval.c:3136
#40 0x00005589d734097f in Ffuncall (nargs=7, args=0x7fff6c0f2c18) at eval.c:2862
#41 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db1f1e54), vector=XIL(0x5589db3fcab5), maxdepth=make_number(13), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#42 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db4467c5), nargs=6, arg_vector=0x5589db3fcab5)
    at eval.c:3136
#43 0x00005589d734097f in Ffuncall (nargs=7, args=0x7fff6c0f3228) at eval.c:2862
#44 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db2072c4), vector=XIL(0x5589db4c9145), maxdepth=make_number(16), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#45 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db4c95b5), nargs=9, arg_vector=0x5589db4c9145)
    at eval.c:3136
#46 0x00005589d734097f in Ffuncall (nargs=10, args=0x7fff6c0f3ad8) at eval.c:2862
#47 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589db27b304), vector=XIL(0x5589db26eaa5), maxdepth=make_number(11), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#48 0x00005589d73416b1 in funcall_lambda (fun=XIL(0x5589db4c96b5), nargs=3, arg_vector=0x5589db26eaa5)
    at eval.c:3136
#49 0x00005589d734097f in Ffuncall (nargs=4, args=0x7fff6c0f4130) at eval.c:2862
#50 0x00005589d733fd72 in Fapply (nargs=2, args=0x7fff6c0f4300) at eval.c:2480
#51 0x00005589d7340c46 in funcall_subr (subr=0x5589d77a8800 <Sapply>, numargs=2, args=0x7fff6c0f4300)
    at eval.c:2915
#52 0x00005589d734093b in Ffuncall (nargs=3, args=0x7fff6c0f42f8) at eval.c:2860
#53 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x5589d982a5e4), vector=XIL(0x5589dacad395), maxdepth=make_number(5), args_template=make_number(385), nargs=4, args=0x7fff6c0f4750) at bytecode.c:633
#54 0x00005589d7341345 in funcall_lambda (fun=XIL(0x5589dac74005), nargs=4, arg_vector=0x7fff6c0f4748)
    at eval.c:3058
#55 0x00005589d734097f in Ffuncall (nargs=5, args=0x7fff6c0f4740) at eval.c:2862
#56 0x00005589d733fd72 in Fapply (nargs=3, args=0x7fff6c0f4908) at eval.c:2480
#57 0x00005589d7340c46 in funcall_subr (subr=0x5589d77a8800 <Sapply>, numargs=3, args=0x7fff6c0f4908)
    at eval.c:2915
#58 0x00005589d734093b in Ffuncall (nargs=4, args=0x7fff6c0f4900) at eval.c:2860
#59 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x7fa7a26bb6fc), vector=XIL(0x5589db418cd5), maxdepth=make_number(5), args_template=make_number(128), nargs=3, args=0x7fff6c0f4e90) at bytecode.c:633
#60 0x00005589d7341345 in funcall_lambda (fun=XIL(0x5589db1c0275), nargs=3, arg_vector=0x7fff6c0f4e90)
    at eval.c:3058
#61 0x00005589d734097f in Ffuncall (nargs=4, args=0x7fff6c0f4e88) at eval.c:2862
#62 0x00005589d7338567 in Ffuncall_interactively (nargs=4, args=0x7fff6c0f4e88) at callint.c:253
#63 0x00005589d7340c46 in funcall_subr
    (subr=0x5589d77a8000 <Sfuncall_interactively>, numargs=4, args=0x7fff6c0f4e88) at eval.c:2915
#64 0x00005589d734093b in Ffuncall (nargs=5, args=0x7fff6c0f4e80) at eval.c:2860
#65 0x00005589d733fd72 in Fapply (nargs=3, args=0x7fff6c0f4f50) at eval.c:2480
#66 0x00005589d7338926 in Fcall_interactively
    (function=XIL(0x1790520), record_flag=XIL(0), keys=XIL(0x5589dc09c9e5)) at callint.c:340
#67 0x00005589d7340d76 in funcall_subr
    (subr=0x5589d77a8040 <Scall_interactively>, numargs=3, args=0x7fff6c0f5260) at eval.c:2940
#68 0x00005589d734093b in Ffuncall (nargs=4, args=0x7fff6c0f5258) at eval.c:2860
#69 0x00005589d7388cc6 in exec_byte_code
    (bytestr=XIL(0x7fa7a27c16dc), vector=XIL(0x7fa7a27c126d), maxdepth=make_number(13), args_template=make_number(1025), nargs=1, args=0x7fff6c0f5770) at bytecode.c:633
#70 0x00005589d7341345 in funcall_lambda (fun=XIL(0x7fa7a27c123d), nargs=1, arg_vector=0x7fff6c0f5768)
    at eval.c:3058
#71 0x00005589d734097f in Ffuncall (nargs=2, args=0x7fff6c0f5760) at eval.c:2862
#72 0x00005589d7340331 in call1 (fn=XIL(0x4140), arg1=XIL(0x1790520)) at eval.c:2711
#73 0x00005589d72926f2 in command_loop_1 () at keyboard.c:1462
#74 0x00005589d733d2b3 in internal_condition_case
    (bfun=0x5589d7291f22 <command_loop_1>, handlers=XIL(0x55b0), hfun=0x5589d72916f8 <cmd_error>)
    at eval.c:1376
#75 0x00005589d7291c0a in command_loop_2 (ignore=XIL(0)) at keyboard.c:1090
#76 0x00005589d733cb7c in internal_catch
    (tag=XIL(0xcde0), func=0x5589d7291bdd <command_loop_2>, arg=XIL(0)) at eval.c:1139
#77 0x00005589d7291ba8 in command_loop () at keyboard.c:1069
#78 0x00005589d72912c7 in recursive_edit_1 () at keyboard.c:714
#79 0x00005589d729144b in Frecursive_edit () at keyboard.c:785
#80 0x00005589d728f373 in main (argc=2, argv=0x7fff6c0f5c58) at emacs.c:1902

Lisp Backtrace:
"redisplay_internal (C function)" (0x0)
"message" (0x6c0f0f98)
"apply" (0x6c0f1150)
"w3m-message" (0x6c0f15f0)
"w3m-w3m-dump-extra" (0x6c0f1b10)
"w3m-w3m-retrieve-1" (0x6c0f2100)
"w3m-w3m-retrieve" (0x6c0f26a0)
"w3m-retrieve" (0x6c0f2c20)
"w3m-retrieve-and-render" (0x6c0f3230)
"w3m--goto-url--valid-url" (0x6c0f3ae0)
0xdb4c96b0 PVEC_COMPILED
"apply" (0x6c0f4300)
"my-w3m-goto-url-prompt-with-helm-ad" (0x6c0f4748)
"apply" (0x6c0f4908)
"w3m-goto-url" (0x6c0f4e90)
"funcall-interactively" (0x6c0f4e88)
"call-interactively" (0x6c0f5260)
"command-execute" (0x6c0f5768)
(gdb)

I'll leave that session open.  Does that all tell you anything?  Again:
this happens only when a *shell* buffer is currently displayed in some
frame.

Thanks,

Michael.