'When can si_code = si_kernel be caused

When I was running a project program I wrote and using strace trace detected that the program sent this error signal.

-- SIGINT {si_sigNO =SIGINT, si_code=SI_KERNEL, si_addr = NULL} -- 

What I want to know is under what circumstances si_kernel signal will be generated. I don't know how to locate and solve this problem. Any advice would be a help to me. Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source