when iam trying to execute the application, everything is going fine, but on exit its getting core dumped, and the stack trace is as shown below
Illegal instruction (illegal opcode) in . at 0x0 ($t1)
warning: Unable to access address 0x0 from core
(dbx) where
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
.() at 0x0
strstrea.__dt__Q2_3std6localeFv(??, ??) at 0xd0642894
__dt__Q2_3std13basic_filebufXTcTQ2_3std11char_traitsXTc__Fv(??, ??, ??) at 0xd0672828
abc_agent.vtbl.~CD_TraceFilebuf()(0xf0931c28, 0x2, 0x0), line 16 in "abc_agent.vtbl.cc"
abc_agent.vtbl.~CD_Trace()(0xf0931c18, 0x2, 0xf0734cb0), line 16 in "abc_agent.vtbl.cc"
abc_program.__srterm__0()(), line 36 in "abc_program.cc"
cuexit.on_exit(??) at 0xd02198b4
It's very difficult to help without seeing the code. The way to use the above output is to map it to the source code. Without it, it's little more than guesswork. To start with consider the following questions:
What are the constructor prototypes for CD_Trace?
How does that tie in with what is being passed as an argument and what does/do these constructor(s) do?