Commiting with seg fault for stackoverflow question