The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to set CoreDump in SuSE 10 Laksmi Security 1 3 Weeks Ago 07:47 PM
bus error (coredump) charu UNIX for Dummies Questions & Answers 4 12-12-2007 03:05 AM
coredump after every reboot xnightcrawl UNIX for Advanced & Expert Users 2 03-24-2006 03:41 PM
Bus Error(coredump) Jayesh UNIX for Advanced & Expert Users 2 10-04-2005 12:35 PM
metainit gives coredump dangral SUN Solaris 5 08-03-2005 11:19 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-12-2002
Registered User
 

Join Date: Dec 2001
Location: malaysia
Posts: 2
Post coredump

i create one executed file (based on c language). when 1 try to
executed the file, the result show me the bus error (coredump).
can you help me to solve this problem. thanks.
__________________
saifulnizam md johari
Reply With Quote
Forum Sponsor
  #2  
Old 03-12-2002
Registered User
 

Join Date: Sep 2000
Posts: 70
gdb

you can use the program gdb so you can see where it crashes. And then you can fix it.
gdb is a debugger program. it will trace where you program crash and how.
Reply With Quote
  #3  
Old 03-12-2002
mbb mbb is offline
Registered User
 

Join Date: Aug 2001
Location: UK
Posts: 103
Most core dumps that I make are caused by one of two things:

1. Not terminating strings, or processing strings (char arrays) outside the array bounds.
2. Passing a variable into a function that requires a pointer to that variable. i.e. use &var instead of var in the function call.

Give your code the once over to see if it is one of the above two.

Core dumps can be difficult to deal with because the program is stopped in its tracks and the point of failure might not be your bug - that is probably elsewhere.

If you don't have access to a debugger then, identifying the line of code the program fails on, will go a long way to solving the issue. Use a log file or printf statements to locate the point at which the program core dumps. It you get a log message, then you know your program is still alive. It shouldn't take too long to locate the problem.
__________________
Senior Analyst/Programmer
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0