ubd_setup_common
err = ubd_setup_common(str, NULL, &error);
ret = ubd_setup_common(str, &n, error_out);