a coredump file with corrupt stack, no any usefull info. How can I find the call stack? the stack shows:
#0 0x04229c7a in ?? ()
#1 0x00921fa7 in ?? ()
#2 0xbfc17e04 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
and the address of eip shows "cannot access memory".
Displaying the call stack requires correct instruction pointer (eip), stack pointer (esp) and valid stack contents.
From your output it looks like the stack had been corrupted and the previous function returned to some random address (eip=0x04229c7a).
So, you are out of luck.
Try running your program under valgrind.