6

I want to analyse the outcome of my application process when it crashes. How can I manually crash a single process in Linux?

Harikrishnan
  • 1,159
  • 2
  • 14
  • 32

2 Answers2

9

You could try using kill(1) and for example signal SIGSEGV (segmentation violation), SIGBUS (bus error) etc. Other useful signals may exist.

user9517
  • 115,471
  • 20
  • 215
  • 297
0

You can try to send a SIGILL signal to your process :

 kill -SIGKILL PID

To get the pid of a Running-Program

syntax:

pgrep program_name
pidof program_name

You can also try this command :

kill -SIGKILL $(pidof processName)
romain.k
  • 1
  • 2