This crash is caused by this code, which has been added under ZBX-10076:
/* set codepage to utf-8 */if (ZBX_DB_OK == ret && SUCCEED != zbx_ibm_db2_success(SQLSetConnectAttr(ibm_db2.hdbc, SQL_ATTR_CLIENT_CODEPAGE,
ret = ZBX_DB_FAIL;
Removing this code allows to see a database connection error message:
20450:20170513:120539.722 [Z3001] connection to database 'szbxnext2031' failed: [-1001] HY501 [IBM][CLI Driver] SQL1001N "SZBXNEXT2031" is not a valid database name. SQLSTATE=2E000
20450:20170513:120539.722 Cannot connect to the database. Exiting...