Hi, I have been working on a profiler project for class for a few weeks now. A few days ago I ran into an error when running the program saying - Segmentation fault (Core dumped). I have asked around and still not able to figure it out.
Here is the method I believe is causing the fault.
You should be able to identify the line causing the trouble, and with it which bad pointer you're using. Here's a brief introduction: http://www.cplusplus.com/articles/iwTbqMoL/
I don't see anything wrong with this code. It's possible that the problem is actually elsewhere and it just doesn't show up until you hit this code. That's the nasty thing about heap corruption. The symptom is in New York but the cause is in Kansas.