Bloomberg LP Interview Question
segv is different from bus error (only two error messages on core dump in unix)
segv means address is valid in the system arch but access violated.
bus error is when access is not even valid in the system.
segv is implemented by access protection checks in OS
bus error - hardware timeout
Most like the segmentation fault is caused by memory illegal access. So probably a good place to check is the place where you dynamically allocated/used the memory. Also if it is possible, try to use assert in the places where it might go wrong.
- AW November 23, 2010