![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |