segmentation fault bug with mysql5 backend