The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 11-06-2008 10:47 PM
bus error (coredump) charu UNIX for Dummies Questions & Answers 4 12-12-2007 06:05 AM
coredump after every reboot xnightcrawl UNIX for Advanced & Expert Users 2 03-24-2006 06:41 PM
Bus Error(coredump) Jayesh UNIX for Advanced & Expert Users 2 10-04-2005 03:35 PM
metainit gives coredump dangral SUN Solaris 5 08-03-2005 02:19 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-12-2002
lala lala is offline
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.
  #2 (permalink)  
Old 03-12-2002
jurrien jurrien is offline
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.
  #3 (permalink)  
Old 03-12-2002
mbb mbb is offline
Registered User
  
 

Join Date: Aug 2001
Location: UK
Posts: 104
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0