Kunal,
A segmentation fault occurs when an attempt is made to index into an array outside its correct range. This is common in C and C++. It is difficult to pinpoint in the code. I am not familiar with the restart2data tool. Perhaps Steve can fill you in there.
-- Al