Engine may hang due to races when starting crypt thread and simultaneous shutdown ---------------------------------------------------------------------------------
Key: CORE-6360 URL: http://tracker.firebirdsql.org/browse/CORE-6360 Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 3.0.6, 4.0 Beta 2 Reporter: Alexander Peshkov When CM thread starting it assigns its internal attachment flag "ATT_crypt_thread", but on short connection this attachment and shutdown racing and flag may be never assigned therefore attachment and CM thread can not properly stopped causing server hang. Reproducing: #!/bin/bash set -e echo Auto = y > plugins/DbCrypt_example.conf rm tmp.fdb echo "create database 'tmp.fdb';" | bin/isql -u sysdba -p masterkey while true; do cp tmp.fdb repro.fdb; echo 'alter database encrypt with "DbCrypt_example";'| bin/isql -u sysdba -p masterkey repro.fdb done -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel