This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix invalid sigprocmask call
On 03/24/2017 12:39 PM, Yousong Zhou wrote:
> The following test case will also say for itself.
>
> https://github.com/juj/posixtestsuite/blob/master/conformance/interfaces/pthread_sigmask/16-1.c
It does not. The pthread_sigmask call there does NOT pass a NULL
as "set mask" argument:
if (pthread_sigmask(r, &actl, NULL) != EINVAL) {
perror("pthread_sigmask() did not fail even though invalid how parameter was passed to it.\n");
pthread_exit((void*)-1);
}
That case _should_ fail, of course.
Please just fix musl.
Thanks,
Pedro Alves