alex, i took a look at allow_trusted code and perhaps the reason for the crash is that the code does not check that dh_handle exists before making the query and db connection is closed if db query fails. -- juha