Program received signal SIGSEGV, Segmentation fault (due to call to a
function.)
I get this error message when i run the program with gdb. The error is
shown at this line:
long a = thread_fake(); //in file1.c
I was getting the problem with other function that was defined in a
separate file, so i simplified it to a simple function that just returns
0. The function has been defined as:
long thread_fake(){ //defined in file2.c
return 0;
}
If i do not call this function, the program runs fine. What could be the
problem?
No comments:
Post a Comment