NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44432: cannot single-step over a call to sigprocmask()

>Number:         44432
>Category:       kern
>Synopsis:       cannot single-step over a call to sigprocmask()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 21 17:00:01 +0000 2011
>Originator:     Antti Kantee
NetBSD/i386 ~5.1
gdb enters a loop eternal when single stepping over a call to
#include <signal.h>
#include <stdio.h>

        sigset_t set;

        sigprocmask(SIG_SETMASK, &set, NULL);
        printf("hello, world!\n");


(gdb) break main
Breakpoint 1 at 0x8048761: file test.c, line 9.
(gdb) run
Starting program: /usr/home/pooka/a.out 

Breakpoint 1, main () at test.c:9
9               sigfillset(&set);
(gdb) next
10              sigprocmask(SIG_SETMASK, &set, NULL);
*hang, a.out consumes 100% cpu*

Single stepping the same program on e.g. Linux works fine.

Home | Main Index | Thread Index | Old Index