I would run it through valgrind. That should take you right to the line of code that the segfault is being thrown at. (You're welcome to share that output here.)gdb rarely provides much useful information for undefined behavior.
I'll try and see if I can get it to finish, the segfault seems to happen at 18mil final board states, and at 3mil/sec it takes about an hour and a half to get there, but with valgrind... I'm an hour past 1 day and I'm still only at 3mil boards
Although it's an early (and wild) guess, if the segfault occurs with a large set of data, but not a small set, I would suspect a buffer overrun may be the cause of your problems. Are you...
(1) Putting too much on the stack (versus dynamically allocating the space you need), or
(2) Exceeding the space you allocated?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I would run it through
valgrind. That should take you right to the line of code that the segfault is being thrown at. (You're welcome to share that output here.)gdbrarely provides much useful information for undefined behavior.I'll try and see if I can get it to finish, the segfault seems to happen at 18mil final board states, and at 3mil/sec it takes about an hour and a half to get there, but with
valgrind... I'm an hour past 1 day and I'm still only at 3mil boardsAlthough it's an early (and wild) guess, if the segfault occurs with a large set of data, but not a small set, I would suspect a buffer overrun may be the cause of your problems. Are you...
(1) Putting too much on the stack (versus dynamically allocating the space you need), or
(2) Exceeding the space you allocated?