Sigprocmask () calls segfault

Are there any known sigprocmask () reasons for segfault when used in a multi-threaded application?

I have an application that creates multiple threads using clone (). I determined that for some reason, when I use sigprocmask, these are segfaults (not all the time, though). From backtrace (), it also seems that segfault occurs when I use sigprocmask () after siglongjmp ().

Any ideas?

+3
source share
1 answer

Check out the second and third arguments. If they are not NULL, make sure they are valid pointers to sigset_t.

, sigprocmask() . pthread_sigmask() , , , errno.

+1

Source: https://habr.com/ru/post/1730724/


All Articles