![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|