NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/44432: cannot single-step over a call to sigprocmask()
The following reply was made to PR kern/44432; it has been noted by GNATS.
From: Antti Kantee <pooka%iki.fi@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/44432: cannot single-step over a call to sigprocmask()
Date: Mon, 24 Jan 2011 18:53:31 +0200
On Mon Jan 24 2011 at 16:45:02 +0000, Nick Hudson wrote:
> On Friday 21 January 2011 17:00:01 pooka%iki.fi@localhost wrote:
> [...]
> > #include <signal.h>
> > #include <stdio.h>
> >
> > int
> > main()
> > {
> > sigset_t set;
> >
> > sigfillset(&set);
> > sigprocmask(SIG_SETMASK, &set, NULL);
> > printf("hello, world!\n");
> >
> > }
>
> If it wasn't obvious... deleting SIGTRAP from the sigset_t allows gdb to
> step/next over the sigprocmask call.
So does commenting out the call to sigprocmask, and it's less typing ;)
I'm secretly hoping this is related to multithreaded programs randomly
hanging under gdb since the symptoms are exactly the same: debugged
program starts consuming 100% cpu.
--
älä karot toivorikkauttas, kyl rätei ja lumpui piisaa
Home |
Main Index |
Thread Index |
Old Index