Does executing an int 3 interrupt stop the entire process on Linux or just the current thread?

后端 未结 4 523
不知归路
不知归路 2021-01-02 13:32

Suppose the architecture is x86. And the OS is Linux based. Given a multithreaded process in which a single thread executes an int 3 instruction, does the inter

4条回答
  •  -上瘾入骨i
    2021-01-02 14:12

    int 3 is a privileged instruction that userspace code is not allowed to run.

    The kernel will then send a SIGTRAP signal to your process, and the default action for a SIGTRAP signal is to terminate the entire process.

提交回复
热议问题