From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7065B3858400; Wed, 22 Sep 2021 11:19:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7065B3858400 From: "chuddah at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28374] New: Toggle TUI causes segmentation fault Date: Wed, 22 Sep 2021 11:19:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chuddah at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2021 11:19:29 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28374 Bug ID: 28374 Summary: Toggle TUI causes segmentation fault Product: gdb Version: 9.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: chuddah at gmail dot com Target Milestone: --- Often, I get a seg fault when switching between TUI and regular mode while debugging. I will try and update this report with more details -- when I ha= ve a debug build of GDB.=20 To reproduce: In certain circumstances (yet to be determined :)) toggling from TUI view b= ack to the regular view causes the GPF. I am using the keyboard shortcut (ctrl-x then a).=20 This always works (no GPF) when no program file is loaded. The crash occurs only sometimes when a program file is loaded and is being debugged. When attempting to reproduce the bug I was debugging I can reliably reproduce the GPF by getting the inferior process to the same point and toggling TUI mode off. This bug therefore appears to be reliant on the inferior process and i= ts state. I will add more details as I find them. (gdb) bt #0 0x00007f0d3f7034a5 in __GI__IO_fwrite (buf=3D0x55a300ac7030, size=3D1, = count=3D6, fp=3D0x0) at iofwrite.c:35 #1 0x00007f0d40327a78 in ?? () from /lib/x86_64-linux-gnu/libreadline.so.8 #2 0x00007f0d403297e0 in rl_redisplay () from /lib/x86_64-linux-gnu/libreadline.so.8 #3 0x00007f0d403130f7 in readline_internal_setup () from /lib/x86_64-linux-gnu/libreadline.so.8 #4 0x00007f0d4032e769 in ?? () from /lib/x86_64-linux-gnu/libreadline.so.8 #5 0x000055a2fec6e75e in ?? () #6 0x000055a2fec6f3df in ?? () #7 0x000055a2fec6f1cc in ?? () #8 0x00007f0d4032ebde in rl_callback_read_char () from /lib/x86_64-linux-gnu/libreadline.so.8 #9 0x000055a2fec6e466 in ?? () #10 0x000055a2fec6f085 in ?? () #11 0x000055a2fec6e388 in ?? () #12 0x000055a2fec6d036 in ?? () #13 0x000055a2fec6d51c in ?? () #14 0x000055a2fec6d62e in ?? () #15 0x000055a2fed1cb4b in ?? () #16 0x000055a2fed1ecb5 in ?? () #17 0x000055a2feb38a80 in ?? () #18 0x00007f0d3f6a40b3 in __libc_start_main (main=3D0x55a2feb38a40, argc=3D= 10, argv=3D0x7ffcf30697c8, init=3D, fini=3D, rtld_fini=3D, stack_end=3D0x7ffcf30697b8) at ../csu/libc-start.c:308 #19 0x000055a2feb3e41e in ?? () $ gdb --version GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2 $ gcc -v Using built-in specs. COLLECT_GCC=3D/usr/bin/gcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 7.5.0-6ubu= ntu2' --with-bugurl=3Dfile:///usr/share/doc/gcc-7/README.Bugs --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=3D/u= sr --with-gcc-major-version-only --program-suffix=3D-7 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-= id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --enable-bootstrap --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 7.5.0 (Ubuntu 7.5.0-6ubuntu2)=20 $ uname -a Linux druscoe-mint 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC = 2020 x86_64 x86_64 x86_64 GNU/Linux --=20 You are receiving this mail because: You are on the CC list for the bug.=