In log_error(), assert that ival and sval have reasonable values. There's no reason...