- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My program works right when compile with -g, but it works wrong without -g. The error output is "forrtl: sever (174) : SIGSEGV, segmenttation fault occurred". How can I go on to resolve this error? Any help will be appreciated.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should be able to get a traceback via the -traceback option.
That will indicate at least where this occurred.
Possibilities that come to mind: uninitialised variables or wrong argument lists.
Debug versions tend to be rather tolerant to such things in my experience.
Regards,
Arjen
That will indicate at least where this occurred.
Possibilities that come to mind: uninitialised variables or wrong argument lists.
Debug versions tend to be rather tolerant to such things in my experience.
Regards,
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The program works fine with "-g" or "-g -traceback". I think there are uninitialised variables or wrong argument, too. The project is too big to hard to review every code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See my suggestions in your other thread.
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