Asterisk ODBC Problem

Hi ;
I have setup PostgreSQL and asterisk ,Odbc and asterisk works very well there is no problem.
But When my users leave a message ,Asterisk see message and try to parse then crash with segmentation fault and restart.
I could not find any solutions for this problem.