From cf1fcdd614ed2016f23af94a2ef3b27f3340ac9b Mon Sep 17 00:00:00 2001 From: weizuo93 Date: Fri, 30 Jul 2021 09:24:30 +0800 Subject: [PATCH] fix BE coredump in UserFunctionCache (#6331) Co-authored-by: weizuo --- be/src/runtime/user_function_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/runtime/user_function_cache.cpp b/be/src/runtime/user_function_cache.cpp index f173feb349..aa1086e8f7 100644 --- a/be/src/runtime/user_function_cache.cpp +++ b/be/src/runtime/user_function_cache.cpp @@ -305,7 +305,7 @@ Status UserFunctionCache::_download_lib(const std::string& url, UserFunctionCach auto fp_closer = [](FILE* fp) { fclose(fp); }; std::unique_ptr fp(fopen(tmp_file.c_str(), "w"), fp_closer); if (fp == nullptr) { - LOG(WARNING) << "fail to open file, file=" << tmp_file << ", error=" << ferror(fp.get()); + LOG(WARNING) << "fail to open file, file=" << tmp_file; return Status::InternalError("fail to open file"); }