I would run it in debug mode and find out the line where it crashes.
Otherwise a common cause of this is that the program is getting a bad
number somehow
and doing something like this
dvector v(1,n); // n contains garbage which is interpreted as a
huge number.