Segmentation Core Dump

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 2
Reputation: ericisshort is an unknown quantity at this point 
Solved Threads: 0
ericisshort ericisshort is offline Offline
Newbie Poster

Segmentation Core Dump

 
0
  #1
Apr 14th, 2008
This is probably the most frustrating thing in c++ for me. I can handle compile errors just fine, but when I get a core dump, I get so frustrated, because I have no idea where the problem is, especially when I have 300+ lines of code to be looking at.

Although I have fixed it before, I guess I don't quite understand what it is or why its exactly happening. Could someone give me a decent explanation, and some tips on troubleshooting this prob.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,829
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 750
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: Segmentation Core Dump

 
1
  #2
Apr 14th, 2008
A segmentation fault is when you access memory that doesn't belong to you. Usually it results from dereferencing a pointer that doesn't point where you expect, or indexing an array out of bounds.
New members chased away this month: 3
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 979
Reputation: mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice 
Solved Threads: 209
mitrmkar mitrmkar is offline Offline
Posting Shark

Re: Segmentation Core Dump

 
0
  #3
Apr 14th, 2008
Originally Posted by ericisshort View Post
because I have no idea where the problem is
Here is one link that might get you started
http://www.cprogramming.com/debugging/segfaults.html
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC