CDR+ODBC with Asterisk 1.0.9 crashes

I’ve tried to use CDR with odbc. My odbc configuration works fine, i can connect with isql, the table is created and when asterisk starts it logs in successfully. But when a call terminates and the cdr record should be inserted, asterisk crashes without a note on the console or log.

I use Asterisk 1.0.9, self compiled. The ODBC databasedriver is freetds.

Anyone using this configuration?