Language: C++
OS: Linux RedHat
Compile: g++
What can you suggest happened when a segmentation fault occured right before the program finished execution.
Expand|Select|Wrap|Line Numbers
- 17 int main()
- 18 {
- 19 C_FileHandler cfh; // a class for file handling
- 20 S_ConfigSettings_t my_s; // this is a struct for holding values
- 21 int resultCode = cfh.ReadConfigFile( "fileName" , &my_s );
- 22 cout << resultCode << endl;
- 23 return resultCode;
- 24 }
output was
Expand|Select|Wrap|Line Numbers
- root$ ./main
- 1
- Segmentation Fault
Expand|Select|Wrap|Line Numbers
- Breakpoint 1, main () at main.C:24
- 24 }
- (gdb) n
- 0x6c2f7377 in ?? ()
- (gdb) n
- Cannot find bounds of current function
when i pressed next line there it goes.. and then "Cannot find bounds of current function".
how can this be.. i tried searching for stupid pointers in the function but cant find any problem.
Can i do somthing about this