[Bug tui/24593] New: GDB crashes with a segfault on run command while in layout asm, regs or split

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug tui/24593] New: GDB crashes with a segfault on run command while in layout asm, regs or split

giuliomoro at yahoo dot it
https://sourceware.org/bugzilla/show_bug.cgi?id=24593

            Bug ID: 24593
           Summary: GDB crashes with a segfault on run command while in
                    layout asm, regs or split
           Product: gdb
           Version: 8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tui
          Assignee: unassigned at sourceware dot org
          Reporter: paul.naert at polymtl dot ca
  Target Milestone: ---

Debugged program :
 int main()
 {
   return 0;
 }

Compiled with:
 gcc version 5.4.0
 options : -g

GDB version:
 8.3 from tar release or from git tree.
 Not observed on 7.11

GDB commands:
 gdb myprogram
  layout asm  *OR* layout split *OR* layout regs  
  run
  run

Observed output :
 gdb crashes with a segmentation fault. Sometimes it crashes on the first run
 command.

Additional system information:
 Ubuntu 16.04
 ncurses version 6.0

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug tui/24593] GDB crashes with a segfault on run command while in layout asm, regs or split

giuliomoro at yahoo dot it
https://sourceware.org/bugzilla/show_bug.cgi?id=24593

--- Comment #1 from Paul Naert <paul.naert at polymtl dot ca> ---
Created attachment 11788
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11788&action=edit
Output of address sanitizer on gdb crash

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug tui/24593] GDB crashes with a segfault on run command while in layout asm, regs or split

giuliomoro at yahoo dot it
In reply to this post by giuliomoro at yahoo dot it
https://sourceware.org/bugzilla/show_bug.cgi?id=24593

--- Comment #2 from Paul Naert <paul.naert at polymtl dot ca> ---
Find attached the output of address sanitizer on the bug, provided by Simon
Marchi.
The issue seems to be occuring when gdb kills the inferior while in layout
mode.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug tui/24593] GDB crashes with a segfault on run command while in layout asm, regs or split

giuliomoro at yahoo dot it
In reply to this post by giuliomoro at yahoo dot it
https://sourceware.org/bugzilla/show_bug.cgi?id=24593

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org
           Assignee|unassigned at sourceware dot org   |tromey at sourceware dot org

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
I tried my current TUI development branch under valgrind and
could not reproduce, so I think this is fixed by one of my
patches.  I'll try again with git master soon.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug tui/24593] GDB crashes with a segfault on run command while in layout asm, regs or split

giuliomoro at yahoo dot it
In reply to this post by giuliomoro at yahoo dot it
https://sourceware.org/bugzilla/show_bug.cgi?id=24593

--- Comment #4 from Paul Naert <paul.naert at polymtl dot ca> ---
(In reply to Tom Tromey from comment #3)
> I tried my current TUI development branch under valgrind and
> could not reproduce, so I think this is fixed by one of my
> patches.  I'll try again with git master soon.

I cannot reproduce it on version 8.3.50.20190702-git. It seems to have been
fixed. the faulty version I was working on was 8.3.50.20190506-git.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug tui/24593] GDB crashes with a segfault on run command while in layout asm, regs or split

giuliomoro at yahoo dot it
In reply to this post by giuliomoro at yahoo dot it
https://sourceware.org/bugzilla/show_bug.cgi?id=24593

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |9.1

--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
Thanks.  I'm closing this based on your feedback.

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