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?
C

Avatar of undefined
Last Comment
jkr

8/22/2022 - Mon
SOLUTION
jkr

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
jkr

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Naveen Kumar

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
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
william007

ASKER
Thanks=)
jkr

Mental note to myself: It pays off to repost what others have linked to if a Q is open long enough.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy