title: Linux - segmentation fault only sometimes - how to debug
body: <p>I have a Linux program, that from time to time ends with a segmentation fault. The program is running periodically every hour, but the segmentation fault occurs only sometimes. </p>
  
  <p>I have a problem to debug this, because if I run the program again with the same input, no error is reported and all is OK.</p>
  
  <p>Is there a way, how to "report" in which part of the code error occured or what caused the problem?</p>