|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
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. |
| Sponsored Links |
|
|
|
|||
|
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 |
|
|
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 04:35 PM |
| metainit gives coredump | dangral | Solaris | 5 | 08-03-2005 03:19 PM |