Another PDB fix
Check malloc return value in PDB
Fix #1567 - Show error when trying to divide by zero