CFanatic

Go Back   CFanatic > Programming > C Programming

Join CFanatic Forum Now

segmented error?? topic posted under C Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2006, 11:47 PM
Junior Member
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
rati is on a distinguished road
| More
segmented error??

hi can anyone tell me please what is segmented error , i have made a program in c on linux and when i am running it after compiling , after a few inputs it shows segmwntwd erroe. what is this??
Reply With Quote
  #2  
Old 09-12-2006, 07:49 AM
Junior Member
 
Join Date: Sep 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Essial is on a distinguished road
| More
Re: segmented error??

"Segmented error" or segfault? Sounds like you have some invalid pointers floating around or something.
Reply With Quote
  #3  
Old 09-12-2006, 09:00 AM
Junior Member
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
rati is on a distinguished road
| More
Re: segmented error??

I had no pointers in the program but had one temp ptr which I never used. probably is freeing it. I am checking that. anyway thanks for the tip.
Reply With Quote
  #4  
Old 09-12-2006, 09:05 AM
Junior Member
 
Join Date: Sep 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Essial is on a distinguished road
| More
Re: segmented error??

To quote Wikipedia:
A segmentation fault (often shortened to segfault) is a particular error condition that can occur during the operation of computer software. A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system).
(end quote)

Now this can also occur in a function that has invalid parameters passed also. If the program is small, you can paste it and I'll take a look at it when i get the chance.
Reply With Quote
  #5  
Old 09-12-2006, 09:22 AM
Junior Member
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
rati is on a distinguished road
| More
Re: segmented error??

Quote:
Originally Posted by rati View Post
I had no pointers in the program but had one temp ptr which I never used. probably is freeing it. I am checking that. anyway thanks for the tip.
Yes I have recitifed the probs.
Reply With Quote
  #6  
Old 09-12-2006, 09:23 AM
Junior Member
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
rati is on a distinguished road
| More
Re: segmented error??

Thanks for the quote but my window was opened when I was looking at the code by your previous reply.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error passing a value_type as a reference a_new_beginning C++ Programming 0 08-15-2008 10:40 PM
Too Few Arguments Error veronicak5678 C Programming 1 10-02-2007 01:06 AM
Logic Error dlsparks C# Programming 5 09-22-2007 11:55 PM
linking error vidhya Win32 Programming 2 06-13-2007 02:13 AM
Help with code (parse error) BWIGLEY Game Development 1 11-29-2006 03:58 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 02:53 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board