Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
5895e3cc
O
oceanbase
项目概览
Metz
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5895e3cc
编写于
4月 18, 2022
作者:
X
xuhuleon
提交者:
LINGuanRen
4月 18, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
support check stack overflow for asan
上级
abd9aad3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
25 addition
and
5 deletion
+25
-5
deps/oblib/src/common/ob_smart_call.h
deps/oblib/src/common/ob_smart_call.h
+11
-5
src/share/ob_errno.cpp
src/share/ob_errno.cpp
+10
-0
src/share/ob_errno.def
src/share/ob_errno.def
+1
-0
src/share/ob_errno.h
src/share/ob_errno.h
+3
-0
未找到文件。
deps/oblib/src/common/ob_smart_call.h
浏览文件 @
5895e3cc
...
...
@@ -102,11 +102,17 @@ inline int call_with_new_stack(SContext& sctx)
ret; \
})
#else
#define SMART_CALL(func) \
({ \
int ret = OB_SUCCESS; \
ret = func; \
ret; \
#define SMART_CALL(func) \
({ \
int ret = OB_SUCCESS; \
bool is_overflow = false; \
if (OB_FAIL(check_stack_overflow(is_overflow, STACK_RESERVED_SIZE))) { \
} else if (!is_overflow) { \
ret = func; \
} else { \
ret = OB_STACK_OVERFLOW; \
} \
ret; \
})
#endif
}
// end of namespace common
...
...
src/share/ob_errno.cpp
浏览文件 @
5895e3cc
...
...
@@ -3318,6 +3318,16 @@ static struct ObStrErrorInit
ORACLE_ERRNO[-OB_CLUSTER_NAME_HASH_CONFLICT] = 600;
ORACLE_STR_ERROR[-OB_CLUSTER_NAME_HASH_CONFLICT] = "ORA-00600: internal error code, arguments: -4378, cluster name conflict";
ORACLE_STR_USER_ERROR[-OB_CLUSTER_NAME_HASH_CONFLICT] = "ORA-00600: internal error code, arguments: -4378, cluster name conflict";
ERROR_NAME[-OB_STACK_OVERFLOW] = "OB_STACK_OVERFLOW";
ERROR_CAUSE[-OB_STACK_OVERFLOW] = "Internal Error";
ERROR_SOLUTION[-OB_STACK_OVERFLOW] = "Contact OceanBase Support";
MYSQL_ERRNO[-OB_STACK_OVERFLOW] = -1;
SQLSTATE[-OB_STACK_OVERFLOW] = "HY000";
STR_ERROR[-OB_STACK_OVERFLOW] = "stack overflow";
STR_USER_ERROR[-OB_STACK_OVERFLOW] = "stack overflow";
ORACLE_ERRNO[-OB_STACK_OVERFLOW] = 600;
ORACLE_STR_ERROR[-OB_STACK_OVERFLOW] = "ORA-00600: internal error code, arguments: -4385, stack overflow";
ORACLE_STR_USER_ERROR[-OB_STACK_OVERFLOW] = "ORA-00600: internal error code, arguments: -4385, stack overflow";
ERROR_NAME[-OB_IMPORT_NOT_IN_SERVER] = "OB_IMPORT_NOT_IN_SERVER";
ERROR_CAUSE[-OB_IMPORT_NOT_IN_SERVER] = "Internal Error";
ERROR_SOLUTION[-OB_IMPORT_NOT_IN_SERVER] = "Contact OceanBase Support";
src/share/ob_errno.def
浏览文件 @
5895e3cc
...
...
@@ -423,6 +423,7 @@ DEFINE_ERROR(OB_DISK_ERROR, -4375, -1, "HY000", "observer has disk error");
DEFINE_ORACLE_ERROR(OB_UNIMPLEMENTED_FEATURE, -4376, -1, "HY000", "unimplemented feature", 3001, "unimplemented feature");
DEFINE_ERROR_EXT(OB_ERR_DEFENSIVE_CHECK, -4377, -1, "HY000", "fatal internal error", "fatal internal error in [%.*s]");
DEFINE_ERROR(OB_CLUSTER_NAME_HASH_CONFLICT, -4378, -1, "HY000", "cluster name conflict");
DEFINE_ERROR(OB_STACK_OVERFLOW, -4385, -1, "HY000", "stack overflow");
////////////////////////////////////////////////////////////////
//error code for root server & server management -4500 ---- -5000
...
...
src/share/ob_errno.h
浏览文件 @
5895e3cc
...
...
@@ -238,6 +238,7 @@ constexpr int OB_DISK_ERROR = -4375;
constexpr
int
OB_UNIMPLEMENTED_FEATURE
=
-
4376
;
constexpr
int
OB_ERR_DEFENSIVE_CHECK
=
-
4377
;
constexpr
int
OB_CLUSTER_NAME_HASH_CONFLICT
=
-
4378
;
constexpr
int
OB_STACK_OVERFLOW
=
-
4385
;
constexpr
int
OB_IMPORT_NOT_IN_SERVER
=
-
4505
;
constexpr
int
OB_CONVERT_ERROR
=
-
4507
;
constexpr
int
OB_BYPASS_TIMEOUT
=
-
4510
;
...
...
@@ -1572,6 +1573,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
#define OB_UNIMPLEMENTED_FEATURE__USER_ERROR_MSG "unimplemented feature"
#define OB_ERR_DEFENSIVE_CHECK__USER_ERROR_MSG "fatal internal error in [%.*s]"
#define OB_CLUSTER_NAME_HASH_CONFLICT__USER_ERROR_MSG "cluster name conflict"
#define OB_STACK_OVERFLOW__USER_ERROR_MSG "stack overflow"
#define OB_IMPORT_NOT_IN_SERVER__USER_ERROR_MSG "Import not in service"
#define OB_CONVERT_ERROR__USER_ERROR_MSG "Convert error"
#define OB_BYPASS_TIMEOUT__USER_ERROR_MSG "Bypass timeout"
...
...
@@ -3029,6 +3031,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
#define OB_UNIMPLEMENTED_FEATURE__ORA_USER_ERROR_MSG "ORA-03001: unimplemented feature"
#define OB_ERR_DEFENSIVE_CHECK__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4377, fatal internal error in [%.*s]"
#define OB_CLUSTER_NAME_HASH_CONFLICT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4378, cluster name conflict"
#define OB_STACK_OVERFLOW__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4385, stack overflow"
#define OB_IMPORT_NOT_IN_SERVER__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4505, Import not in service"
#define OB_CONVERT_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4507, Convert error"
#define OB_BYPASS_TIMEOUT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4510, Bypass timeout"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录