Segmentation Fault (core dumped) | Unix Linux Forums | Programming

  Go Back    


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Segmentation Fault (core dumped)

Programming


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-20-2006
bankpro bankpro is offline
Registered User
 
Join Date: Jan 2006
Last Activity: 26 April 2006, 7:54 AM EDT
Location: Mumbai
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Segmentation Fault (core dumped)

what r the situations to receive an error msg like the one below

Segmentation Fault (core dumped)
Sponsored Links
    #2  
Old 01-20-2006
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
 
Join Date: Nov 2003
Last Activity: 21 January 2014, 4:03 PM EST
Location: Belize
Posts: 484
Thanks: 0
Thanked 3 Times in 2 Posts
Generally such errors are caused by addressing non-existent/allocated memory. Here's a few links:

link1
link2

Cheers,

Keith
Sponsored Links
    #3  
Old 01-20-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
AFK
 
Join Date: Dec 2004
Last Activity: 10 October 2013, 8:46 AM EDT
Location: UK
Posts: 2,351
Thanks: 0
Thanked 6 Times in 6 Posts
Trying to read from an illegal memory location will cause this fault. i.e.
1. If you fopen a file, it fails and the file pointer returned is NULL and you try to read from that file pointer. This will give you a segmentation fault.
The Following User Says Thank You to blowtorch For This Useful Post:
console (12-05-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Segmentation Fault/ core dumped in metadb taherahmed UNIX for Advanced & Expert Users 0 04-05-2011 11:23 AM
Segmentation fault (core dumped) fido.genial Red Hat 1 06-14-2009 12:26 PM
segmentation fault core dumped junaid.nehvi Solaris 4 05-28-2009 12:23 AM
Segmentation Fault (core dumped) junaid.nehvi Solaris 6 11-04-2008 12:52 PM
Segmentation fault (core dumped) Ivo UNIX for Dummies Questions & Answers 1 02-08-2002 10:23 AM



All times are GMT -4. The time now is 08:25 AM.