From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 57207@debbugs.gnu.org, yantar92@gmail.com
Subject: bug#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling)
Date: Thu, 18 Aug 2022 15:50:45 +0200 [thread overview]
Message-ID: <87wnb5wthm.fsf@gnus.org> (raw)
In-Reply-To: <83edxdbs96.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Aug 2022 16:23:01 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> Can you attach a debugger to this session, and produce a C and Lisp
> backtrace from Fnarrow_to_region and Fwiden when you do the above?
Setting a breakpoint on Fnarrow_to_region doesn't trigger -- the buffer
flips back and forth to [Narrow] anyway.
Fwiden is triggered all the time, but as far as I can see, never in a
relevant code path -- but I've made some progress in determining just
what triggers this behaviour: I need to have a process connection going.
Without processes being forked, the flipping back and forth doesn't
happen.
A couple examples of the calls to Fwiden:
0x0000555555759f8c in Fwiden () at editfns.c:2672
#1 Fwiden () at editfns.c:2659
#2 0x00005555556ff1ed in Ferase_buffer () at buffer.c:2318
#3 0x0000555555655f3d in code_conversion_save
(with_work_buf=with_work_buf@entry=true, multibyte=<optimized out>)
at coding.c:7875
#4 0x0000555555656b23 in decode_coding_object
(coding=coding@entry=0x5555573bedf0, src_object=src_object@entry=XIL(0), from=from@entry=0, from_byte=from_byte@entry=0, to=to@entry=57, to_byte=to_byte@entry=57, dst_object=<optimized out>) at coding.c:8129
#5 0x00005555557b6752 in read_and_dispose_of_process_output
(coding=0x5555573bedf0, nbytes=57, chars=0x7fffffffbe90 "PING 192.168.12.94 (192.168.12.94) 56(84) bytes of data.\n", p=<optimized out>) at process.c:6253
#6 read_process_output
(proc=proc@entry=XIL(0x5555579e538d), channel=channel@entry=17)
at process.c:6205
#7 0x00005555557bde76 in wait_reading_process_output
(time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=XIL(0), wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>)
at process.c:5889
#8 0x00005555555b8694 in sit_for
Thread 1 "emacs" hit Breakpoint 4, Fwiden () at editfns.c:2669
2669 {
(gdb) bt
#0 Fwiden () at editfns.c:2669
#1 0x00005555557b160e in exec_byte_code
(fun=<optimized out>, args_template=<optimized out>, nargs=<optimized out>, args=<optimized out>) at bytecode.c:1489
#2 0x0000555555768ee3 in Ffuncall (nargs=1, args=0x7ffff092e050)
at eval.c:3014
#3 0x000055555576abb8 in Fapply (nargs=2, args=0x7ffff092e050) at eval.c:2638
#4 0x00005555557b0c03 in exec_byte_code
(fun=<optimized out>, args_template=<optimized out>, nargs=<optimized out>, args=<optimized out>) at bytecode.c:809
#5 0x0000555555768ee3 in Ffuncall
(nargs=nargs@entry=2, args=args@entry=0x7fffffffcd10) at eval.c:3014
#6 0x00005555556e2dfe in call1 (arg1=XIL(0x5555572b14f5), fn=XIL(0xf4e0))
at /home/larsi/src/emacs/trunk/src/lisp.h:3239
#7 timer_check_2 (idle_timers=<optimized out>, timers=<optimized out>)
at keyboard.c:4697
#8 timer_check () at keyboard.c:4763
#9 0x00005555556e315d in readable_events (flags=flags@entry=1)
at keyboard.c:3540
#10 0x00005555556e3328 in get_input_pending (flags=flags@entry=1)
at keyboard.c:7338
#11 0x00005555556e33b1 in swallow_events (do_display=do_display@entry=true)
at keyboard.c:4499
(gdb) xbacktrace
"jit-lock-context-fontify" (0xf092e0a8)
0xf1ff0028 PVEC_COMPILED
"apply" (0xf092e050)
"timer-event-handler" (0xffffcd18)
next prev parent reply other threads:[~2022-08-18 13:50 UTC|newest]
Thread overview: 103+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-14 15:55 bug#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling) Ihor Radchenko
2022-08-14 16:08 ` Gregory Heytings
2022-08-14 17:31 ` Eli Zaretskii
2022-08-15 2:35 ` Eli Zaretskii
2022-08-15 9:03 ` Gregory Heytings
2022-08-15 11:41 ` Ihor Radchenko
2022-08-15 12:08 ` Eli Zaretskii
2022-08-16 10:47 ` Gregory Heytings
2022-08-16 11:55 ` Eli Zaretskii
2022-08-16 12:16 ` Ihor Radchenko
2022-08-16 12:24 ` Gregory Heytings
2022-08-16 12:39 ` Eli Zaretskii
2022-08-16 12:17 ` Gregory Heytings
2022-08-16 12:28 ` Ihor Radchenko
2022-08-16 12:43 ` Gregory Heytings
2022-08-20 16:50 ` Gregory Heytings
2022-08-21 3:25 ` Ihor Radchenko
2022-08-21 9:01 ` Gregory Heytings
2022-08-22 2:31 ` Ihor Radchenko
2022-08-22 14:09 ` Gregory Heytings
2022-08-22 15:45 ` Eli Zaretskii
2022-08-23 15:53 ` Gregory Heytings
2022-08-24 8:08 ` Ihor Radchenko
2022-08-24 8:26 ` Gregory Heytings
2022-10-10 8:09 ` Lars Ingebrigtsen
2022-10-10 12:03 ` Gregory Heytings
2022-10-11 0:25 ` Lars Ingebrigtsen
2022-12-08 10:05 ` Gregory Heytings
2022-08-16 12:50 ` Eli Zaretskii
2022-08-16 12:43 ` Eli Zaretskii
2022-08-15 11:39 ` Ihor Radchenko
2022-08-15 12:06 ` Eli Zaretskii
2022-08-15 14:12 ` Ihor Radchenko
2022-08-15 14:28 ` Eli Zaretskii
2022-08-15 17:08 ` Eli Zaretskii
2022-08-16 9:39 ` Ihor Radchenko
2022-08-16 12:33 ` Eli Zaretskii
2022-08-16 12:44 ` Gregory Heytings
2022-08-16 9:38 ` Ihor Radchenko
2022-08-14 16:24 ` Eli Zaretskii
2022-08-15 11:42 ` Ihor Radchenko
2022-08-15 11:53 ` Lars Ingebrigtsen
2022-08-15 12:10 ` Eli Zaretskii
2022-08-17 10:42 ` Lars Ingebrigtsen
2022-08-17 12:10 ` Eli Zaretskii
2022-08-17 12:36 ` Lars Ingebrigtsen
2022-08-17 13:27 ` Eli Zaretskii
2022-08-18 13:02 ` Lars Ingebrigtsen
2022-08-18 13:23 ` Eli Zaretskii
2022-08-18 13:33 ` Eli Zaretskii
2022-08-18 13:51 ` Lars Ingebrigtsen
2022-08-18 14:01 ` Lars Ingebrigtsen
2022-08-18 14:10 ` Eli Zaretskii
2022-08-18 14:13 ` Eli Zaretskii
2022-08-18 13:50 ` Lars Ingebrigtsen [this message]
2022-08-18 13:58 ` Eli Zaretskii
2022-08-18 14:02 ` Lars Ingebrigtsen
2022-08-18 14:13 ` Lars Ingebrigtsen
2022-08-18 14:14 ` Lars Ingebrigtsen
2022-08-18 14:32 ` Eli Zaretskii
2022-08-18 14:38 ` Lars Ingebrigtsen
2022-08-18 15:49 ` Eli Zaretskii
2022-08-19 12:02 ` Lars Ingebrigtsen
2022-08-19 12:22 ` Eli Zaretskii
2022-08-19 15:50 ` Lars Ingebrigtsen
2022-08-19 16:02 ` Lars Ingebrigtsen
2022-08-19 16:08 ` Lars Ingebrigtsen
2022-08-19 16:11 ` Eli Zaretskii
2022-08-19 16:16 ` Lars Ingebrigtsen
2022-08-19 17:21 ` Eli Zaretskii
2022-08-19 17:25 ` Lars Ingebrigtsen
2022-08-19 17:51 ` Eli Zaretskii
2022-08-20 9:15 ` Lars Ingebrigtsen
2022-08-20 9:29 ` Eli Zaretskii
2022-08-20 9:57 ` Lars Ingebrigtsen
2022-08-20 10:33 ` Eli Zaretskii
2022-08-20 17:14 ` Gregory Heytings
2022-08-20 17:26 ` Eli Zaretskii
2022-08-20 17:46 ` Gregory Heytings
2022-08-20 23:22 ` Gregory Heytings
2022-08-21 5:46 ` Eli Zaretskii
2022-08-21 11:43 ` Gregory Heytings
2022-08-21 12:02 ` Eli Zaretskii
2022-08-21 12:42 ` Gregory Heytings
2022-08-21 12:47 ` Lars Ingebrigtsen
2022-08-21 13:22 ` Gregory Heytings
2022-08-21 13:27 ` Lars Ingebrigtsen
2022-08-21 13:32 ` Gregory Heytings
2022-08-21 13:37 ` Lars Ingebrigtsen
2022-08-21 13:42 ` Eli Zaretskii
2022-08-21 13:38 ` Gregory Heytings
2022-08-21 13:39 ` Eli Zaretskii
2022-08-21 12:53 ` Eli Zaretskii
2022-08-21 13:18 ` Gregory Heytings
2022-08-21 13:24 ` Eli Zaretskii
2022-08-21 19:38 ` Gregory Heytings
2022-08-21 20:47 ` Lars Ingebrigtsen
2022-08-22 12:32 ` Eli Zaretskii
2022-08-22 14:00 ` Gregory Heytings
2022-08-21 12:08 ` Lars Ingebrigtsen
2022-08-19 16:20 ` Visuwesh
2022-08-19 17:22 ` Eli Zaretskii
2022-08-19 16:12 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnb5wthm.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=57207@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.