Core dump generation in sun OS

Hi, im getting a core dump file in my sun OS version 5.9 while using a complex c++ program. The same program is working without any core error in another system with same sun OS and same version. 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 ?

what's the kernel patch level in the "Good" system and "Bad" system?
What is the model of both machines?

It's unlikely to be the OS. You should start by analyzing the core file.

PATH=$PATH:/usr/proc/bin
pstack core
pldd core
pmap core
pfiles core

Suresh, you may want to get SUN assist you to get the root cause analysis for the coredump