- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My OS : Scientific Linux 6.3
After the job compiled, and built,
When running $>./roms roms.in
....
....
....
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
roms 00000000004E91B9 Unknown Unknown Unknown
roms 00000000004D0A7D Unknown Unknown Unknown
roms 0000000000404F44 Unknown Unknown Unknown
roms 0000000000403D3C Unknown Unknown Unknown
libc.so.6 0000003346A1ECDD Unknown Unknown Unknown
roms 0000000000403C39 Unknown Unknown Unknown
Any advice?
Thanks a lot
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A segmentation fault could be caused a number of different things.
If the program has large arrays, try compiling with the option -heap-arrays. This will store arrays in heap memory rather than on the stack which is limited to 2 GB.
I would also suggest, turning on runtime checking with -check all to isolate the issue. This will slow down your program considerably though, so do not leave it on in release mode.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page