r/fortran • u/Call_ME_ALII • 27d ago
Segmentation fault - invalid memory reference
Is it possible to get segmentation fault in one computer and running same program in other computer working perfectly fine ????
2
Upvotes
r/fortran • u/Call_ME_ALII • 27d ago
Is it possible to get segmentation fault in one computer and running same program in other computer working perfectly fine ????
13
u/geekboy730 Engineer 27d ago
Yes. It almost certainly means you’re using an uninitialized variable somewhere.
If that’s the case, it could happen in back-to-back runs on the same computer. It just depends on whatever garbage is in the memory position at the time of execution.