core dump generation in IBM machine

Hi, im getting a core dump file in a AIX machine while using a complex c++ program. The same program is working without any core error in another system with sun OS 5.9. The program has used structs, LL's and lots of call by references. What may be the reason. will it be a problem with the OS ?

Perhaps it could be a problem with the way your c++ app itself.
You should try and find out where the app crashes. If you have gdb for AIX, use that to get to the crash point.

the same c++ code is running without errors in other machines. i checked the same code in a sunOS 5.9 machine and in an AIX 5 machine. Its not giving the error in those machines. This error is with this one machine only. checked the c++ code as u suggested by including logs. execution of a function is returning a success, but the returned success is not caught at the calling function and is giving the core exactly there. what may be the reason and what can be done for this ?

Pls use either DBX or GDB to debug the source code.
Possible reasons for core dump can be -
access to non-existent (local) memory (dangling pointers) or
memory buffer overflows.