Link to home
Start Free TrialLog in
Avatar of william007
william007

asked on

Program has been terminated receiving signal 11 (Segmentation fault)

Hi, I have seen this error in the C program that I run.
I just want to know what is
1)Signal 11?
2)Segmentation fault? what kind of senario is consider as Segmentation fault?
SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This segmentation fault is generally a cause of invalid stuff happening like overflow of data, numreic floating type of data, pointers , buffer etc

You can just put some debug messages in the .c file using printf(..) and see which statement is the one causing the seg. fault. Once you get to know this, then we can fix it easily.

Let me know the piece of code which is giving the seg. fault. I can try to do something to fix it.

Thanks

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of william007
william007

ASKER

Thanks=)
Mental note to myself: It pays off to repost what others have linked to if a Q is open long enough.