[Bug gdb/18225] New: step past a breakpoint with signal to deliver but handler set to SIG_IGN

palves at redhat dot com sourceware-bugzilla@sourceware.org
Thu Apr 9 11:26:00 GMT 2015


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

            Bug ID: 18225
           Summary: step past a breakpoint with signal to deliver but
                    handler set to SIG_IGN
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com

GDB gets this wrong with displaced stepping, and the program doesn't make
progress:

~~~
void
foo (void)
{
}

int
main (void)
{
  signal (SIGUSR1, SIG_IGN);

  foo ();

  return 0;
}
~~~

...
(gdb) set displaced-stepping on
...
(gdb) continue
Continuing.

Breakpoint 5, foo () ...
26      }

(gdb) signal SIGUSR1
Continuing with signal SIGUSR1.

Breakpoint 5, foo () ...
26      }

(gdb) signal SIGUSR1
Continuing with signal SIGUSR1.

Breakpoint 5, foo () at ...
26      }
(gdb)

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



More information about the Gdb-prs mailing list