public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/30440] New: [gdb/tui] repeated stepi ends up with garbled screen
@ 2023-05-11  9:43 vries at gcc dot gnu.org
  2023-05-11  9:45 ` [Bug tui/30440] " vries at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: vries at gcc dot gnu.org @ 2023-05-11  9:43 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30440

            Bug ID: 30440
           Summary: [gdb/tui] repeated stepi ends up with garbled screen
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tui
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

I've been playing around with TUI, and tried to find an easy way to do a stress
test.

I came up with starting a hello world, and doing si and then keeping my finger
on the enter key and see what happens.

I eventually ran into screen garbling, which could be repaired using ^L.

I realized this garbling could be the result of printing the "hello", so I
moved to compiling "int main (void) { return 0; }", doing a starti, and
stepi-ing from there.  I played around with this for a while, and found that I
could reproduce the problem within minutes when starting to stepi from
__GI___tunables_init.

I tried to write a test-case that mimics this in the testsuite, but sofar I
didn't manage to reproduce this.

So, here are the steps I followed (this may be way over-specific):
- openSUSE Leap 15.4 x86_64-linux
- gdb build using -O0
- gdb build from commit 38b95a52938 ("Automatic date update in version.in")
- gnome-terminal (on KDE desktop)
- TERM=xterm (native TERM=xterm-256colors)
- tab with COLUMNS 145, LINES 37
- stay in the tab, to avoid ncurses refresh when switching back to the tab.
  This also prevents resetting the regs window layout to one reg on one line.
- gdb started using "gdb ~/a.out"
- starti
- layout asm (enter tui, use asm window)
- layout regs (add regs window)
- stepi (populate regs window, should show two regs on one line)
- b __GI___tunables_init, continue
- stepi (command to repeat)
- press-and-hold enter
- observe garbling and release enter (for me, after about 3/4 minutes)

I've now also reproduce by starting gdb like so:
...
$ gdb -q ~/a.out \
    -ex "starti" \
    -ex "layout asm" \
    -ex "layout regs" \
    -ex "stepi" 
    -ex "b __GI___tunables_init" 
... 
and then continue, stepi, and press-and-hold enter.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-05-22 16:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-11  9:43 [Bug tui/30440] New: [gdb/tui] repeated stepi ends up with garbled screen vries at gcc dot gnu.org
2023-05-11  9:45 ` [Bug tui/30440] " vries at gcc dot gnu.org
2023-05-11  9:45 ` vries at gcc dot gnu.org
2023-05-11 10:19 ` vries at gcc dot gnu.org
2023-05-11 10:45 ` vries at gcc dot gnu.org
2023-05-11 10:52 ` vries at gcc dot gnu.org
2023-05-11 12:18 ` vries at gcc dot gnu.org
2023-05-11 13:25 ` vries at gcc dot gnu.org
2023-05-11 13:34 ` vries at gcc dot gnu.org
2023-05-11 13:42 ` vries at gcc dot gnu.org
2023-05-11 13:46 ` vries at gcc dot gnu.org
2023-05-11 13:51 ` vries at gcc dot gnu.org
2023-05-11 14:07 ` vries at gcc dot gnu.org
2023-05-11 16:12 ` vries at gcc dot gnu.org
2023-05-22 16:24 ` vries at gcc dot gnu.org

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).