LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2009, 10:13 AM   #1
shaiva
LQ Newbie
 
Registered: Sep 2009
Posts: 15

Rep: Reputation: 0
segmentation fault core dump


How to collect the core when a core is dumped by segmentation fault by a simple program .
Where can i collect the core ?Big doubt.
 
Old 09-23-2009, 11:04 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
The core dump is typically called "core" and is usually in the directory from which the program started. If not you can do "find / -name core" to try to find core files. If you do "file <pathto>/core" it should show you information about what the core file is an image of.

Note that you might have to change limits to allow core files beyond a certain size or at all depending on the distro you're on.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to force a core-dump...segmentation fault johnpaulodonnell Programming 2 10-23-2008 06:05 AM
php core dump with segmentation fault ohcarol *BSD 9 10-14-2008 09:19 AM
How to take core dump for a application crashing with segmentation fault wjkkwjkf Red Hat 2 08-25-2008 12:30 PM
segmentation fault (core dumped) - what??? Micro420 Programming 6 12-07-2006 01:03 AM
Segmentation fault (core dumped) hasanaydin Linux - General 0 03-27-2002 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration