Thanks for replying. It was helpful. The problem was libptmalloc was not compiled with debug flag. It is on Solaris. Again if I get a core file from an application which was not compiled with debug flag (instead compiled with optimized flag on), can I get the arena info (main_arena) and print the malloc_state structure from the core file?