Unix/Linux Go Back    

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

Segmentation Fault (core dumped)


core dumped, segmentation fault

Thread Tools Search this Thread Display Modes
Old Unix and Linux 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
Old Unix and Linux 01-20-2006
kduffin's Unix or Linux Image
kduffin kduffin is offline Forum Advisor  
Join Date: Nov 2003
Last Activity: 29 June 2017, 11:12 AM EDT
Location: Wandering the world
Posts: 484
Thanks: 0
Thanked 3 Times in 2 Posts
Generally such Segmentation Fault (core dumped) errors are caused by addressing non-existent/allocated memory. Here's a few links:



Sponsored Links
Old Unix and Linux 01-20-2006
blowtorch's Unix or Linux Image
blowtorch blowtorch is offline Forum Advisor  
Join Date: Dec 2004
Last Activity: 1 July 2016, 6:18 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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:06 AM.