public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/30934] Stopping at a breakpoint takes minutes if a source file has long lines Date: Tue, 03 Oct 2023 08:30:31 +0000 [thread overview] Message-ID: <bug-30934-4717-JVtGnBE60M@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-30934-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=30934 Tom de Vries <vries at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vries at gcc dot gnu.org --- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> --- Reproduced. Doing a ^C gives us: ... Breakpoint 1, Solution::numOfSubarrays (this=0x7ffffff9c15f, arr=...) at test.cpp:56 ^C Thread 1 "gdb" received signal SIGINT, Interrupt. 0x00007ffff5a42870 in boost::re_detail_106600::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::find_restart_word() () from /usr/lib64/libsource-highlight.so.4 (gdb) bt #0 0x00007ffff5a42870 in boost::re_detail_106600::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::find_restart_word() () from /usr/lib64/libsource-highlight.so.4 #1 0x00007ffff5a3ef74 in boost::re_detail_106600::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::find_imp() () from /usr/lib64/libsource-highlight.so.4 #2 0x00007ffff5a87c21 in srchilite::RegexHighlightRule::tryToMatch(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, srchilite::HighlightToken&, srchilite::MatchingParameters const&) () from /usr/lib64/libsource-highlight.so.4 #3 0x00007ffff5a69781 in srchilite::HighlightState::findBestMatch(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, srchilite::HighlightToken&, srchilite::MatchingParameters const&) const () from /usr/lib64/libsource-highlight.so.4 #4 0x00007ffff5a6c5b5 in srchilite::SourceHighlighter::highlightParagraph(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib64/libsource-highlight.so.4 #5 0x00007ffff5a6dcc9 in srchilite::SourceFileHighlighter::highlight(std::istream&) () from /usr/lib64/libsource-highlight.so.4 #6 0x00007ffff5a4f52b in srchilite::SourceHighlight::highlight(std::istream&, std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib64/libsource-highlight.so.4 #7 0x00000000009d9ab3 in source_cache::ensure (this=this@entry=0x21c8740 <g_source_cache>, s=0x25db0a0) at /data/vries/gdb/src/gdb/source-cache.c:254 #8 0x00000000009dab49 in source_cache::get_source_lines (this=0x21c8740 <g_source_cache>, s=s@entry=0x25db0a0, first_line=first_line@entry=56, last_line=last_line@entry=56, lines=lines@entry=0x7fffffffcbb0) at /data/vries/gdb/src/gdb/source-cache.c:364 #9 0x00000000009dedbd in print_source_lines_base (s=s@entry=0x25db0a0, line=line@entry=56, stopline=stopline@entry=57, flags=...) at /data/vries/gdb/src/gdb/source.c:1387 #10 0x00000000009df1d5 in print_source_lines (s=s@entry=0x25db0a0, line=line@entry=56, stopline=stopline@entry=57, flags=..., flags@entry=...) at /data/vries/gdb/src/gdb/source.c:1474 #11 0x0000000000a0aa4d in print_frame_info (fp_opts=..., frame=..., print_level=print_level@entry=0, print_what=<optimized out>, print_what@entry=SRC_AND_LOC, print_args=print_args@entry=1, set_current_sal=set_current_sal@entry=1) at /data/vries/gdb/src/gdb/stack.c:1164 #12 0x0000000000a0b048 in print_stack_frame (frame=..., print_level=print_level@entry=0, print_what=print_what@entry=SRC_AND_LOC, set_current_sal=set_current_sal@entry=1) at /data/vries/gdb/src/gdb/stack.c:367 #13 0x0000000000740fef in print_stop_location (ws=<synthetic pointer>...) at /data/vries/gdb/src/gdb/infrun.c:8785 #14 print_stop_event (uiout=0x2529d30, displays=<optimized out>) at /data/vries/gdb/src/gdb/infrun.c:8801 #15 0x000000000075c9e3 in interps_notify<bpstat*, int> (method=&virtual interp::on_normal_stop(bpstat*, int)) at /data/vries/gdb/src/gdb/interps.c:369 #16 interps_notify_normal_stop (bs=bs@entry=0x26ef7f0, print_frame=print_frame@entry=1) at /data/vries/gdb/src/gdb/interps.c:402 #17 0x0000000000741a2e in notify_normal_stop (print_frame=1, bs=0x26ef7f0) at /data/vries/gdb/src/gdb/infrun.c:6371 #18 normal_stop () at /data/vries/gdb/src/gdb/infrun.c:9065 #19 0x000000000074f9b1 in fetch_inferior_event () at /data/vries/gdb/src/gdb/infrun.c:4512 #20 0x0000000000fdaf2d in gdb_wait_for_event (block=block@entry=0) at /data/vries/gdb/src/gdbsupport/event-loop.cc:694 #21 0x0000000000fdb67f in gdb_do_one_event (mstimeout=mstimeout@entry=-1) at /data/vries/gdb/src/gdbsupport/event-loop.cc:217 #22 0x0000000000a6d109 in wait_sync_command_done () at /data/vries/gdb/src/gdb/top.c:427 #23 0x0000000000a70155 in maybe_wait_sync_command_done (was_sync=0) at /data/vries/gdb/src/gdb/top.c:444 #24 execute_command (p=<optimized out>, p@entry=<error reading variable: value has been optimized out>, from_tty=1, from_tty@entry=<error reading variable: value has been optimized out>) at /data/vries/gdb/src/gdb/top.c:577 #25 0x00000000007c7675 in catch_command_errors (command=<optimized out>, arg=<optimized out>, from_tty=<optimized out>, do_bp_actions=do_bp_actions@entry=true) at /data/vries/gdb/src/gdb/main.c:518 #26 0x00000000007c77af in execute_cmdargs (cmdarg_vec=cmdarg_vec@entry=0x7fffffffd810, file_type=file_type@entry=CMDARG_FILE, cmd_type=cmd_type@entry=CMDARG_COMMAND, ret=ret@entry=0x7fffffffd7fc) at /data/vries/gdb/src/gdb/main.c:617 #27 0x00000000007c8ee7 in captured_main_1 (context=context@entry=0x7fffffffda00) at /data/vries/gdb/src/gdb/main.c:1293 #28 0x00000000007c991b in captured_main (data=data@entry=0x7fffffffda00) at /data/vries/gdb/src/gdb/main.c:1314 #29 gdb_main (args=args@entry=0x7fffffffda20) at /data/vries/gdb/src/gdb/main.c:1343 #30 0x0000000000427fb5 in main (argc=18, argv=0x7fffffffdb48) at /data/vries/gdb/src/gdb/gdb.c:39 (gdb) ... Seems to be stuck in srchilite::SourceHighlighter::highlightParagraph. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-10-03 8:30 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-02 18:57 [Bug gdb/30934] New: " hi-angel at yandex dot ru 2023-10-02 22:54 ` [Bug gdb/30934] " tromey at sourceware dot org 2023-10-03 4:08 ` hi-angel at yandex dot ru 2023-10-03 4:15 ` hi-angel at yandex dot ru 2023-10-03 8:30 ` vries at gcc dot gnu.org [this message] 2023-10-03 8:49 ` vries at gcc dot gnu.org 2023-10-03 9:21 ` vries at gcc dot gnu.org 2023-10-03 9:23 ` vries at gcc dot gnu.org 2023-10-03 16:34 ` tromey at sourceware dot org 2023-10-03 21:07 ` vries at gcc dot gnu.org 2023-10-03 21:25 ` vries at gcc dot gnu.org 2023-10-05 6:35 ` vries at gcc dot gnu.org 2023-10-10 11:12 ` vries at gcc dot gnu.org 2023-10-11 7:28 ` vries at gcc dot gnu.org 2023-10-11 12:06 ` [Bug cli/30934] " vries at gcc dot gnu.org 2023-10-11 13:44 ` vries at gcc dot gnu.org 2023-10-11 17:10 ` hi-angel at yandex dot ru 2023-10-11 17:43 ` vries at gcc dot gnu.org 2023-10-12 9:18 ` sam at gentoo dot org
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=bug-30934-4717-JVtGnBE60M@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).