I asked a similar question here, it might help. Why "segmentation fault" arises and how to avoid it?
1 Like
I asked a similar question here, it might help. Why "segmentation fault" arises and how to avoid it?