I have a doubly linked list data structure that abstracts some physical points in space. The code runs over time loops and calculations happen between member data of the nodes. I now have to add nodes to the dataset once in every n time steps. I am able to do this. But after a few time steps ( say a 100), I am getting a segmentation fault. GDB reveals that this happens when one of the functions tries to access a node data. This node data is explicitly assigned each time I am to add the nodes to the dataset. Why would this error happen after so many steps of successful execution? Any insights? My data structure has too many elements and the code is pretty big to post a code snippet here. Please let me know if anyone here has come across such an issue before and suggest me some direction to look at. Thank you.