In the given code an integer pointer variable "intPointer" is declared, this variable holds an integer type value, which is "500". In the next step, the pointer variable initialized a value with 10, which is illegal, because in pointer we hold the address of variable, not the value, that's why it will give segmentation fault.
This fault will arise when the common condition triggering crashed systems, it often linked to the main script, that Safeguards are triggered by a program, that tries to read or write an illegal place in storage.