登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
数据库相关
>
数据库服务
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
442
Star
1.5K
Fork
1.8K
openGauss
/
openGauss-server
代码
Issues
960
Pull Requests
165
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
【测试类型:SQL功能】【测试版本:5.1.0】exit handler sqlexception场景的core问题
已验收
#I84F41
缺陷
pengjiong
成员
创建于
2023-09-26 11:36
<!-- #请认真填写以下信息,否则可能由于无法定位,导致issue无法解决而被取消 --> 【标题描述】: 【测试类型:SQL功能】【测试版本:5.1.0】exit handler sqlexception场景的core问题 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): 【测试环境】(单机/1主x备x级联备): 【被测功能】: 【测试类型】: 【数据库版本】(查询命令: gaussdb -V): gaussdb (openGauss 5.1.0 build 38fc6f41) compiled at 2023-09-26 09:29:46 commit 0 last mr debug 【预置条件】: B库+dolphin插件 【操作步骤】(请填写详细的操作步骤): ``` set dolphin.sql_mode = 'block_return_multi_results,ansi_quotes'; delimiter | create table t3 (w char unique, x char)| insert into t3 values ('a', 'b')| create procedure bug6900_9074(z int) begin declare exit handler for sqlstate '23000' select '23000'; begin declare exit handler for sqlexception select 'sqlexception'; if z = 1 then insert into t3 values ('a', 'b'); else insert into t3 values ('x', 'y', 'z'); end if; end; end| call bug6900_9074(0)| call bug6900_9074(1)| delimiter ; ``` 【预期输出】:  【实际输出】: 第二次执行core:  core堆栈: ``` #0 BBOX_CreateCoredump (file_name=0x7f3bed1c27b0 "/data/core//core-gaussdb-3034157-2023_09_26_11_35_07-bbox.lz4") at bbox_create.cpp:404 #1 0x000000000157bec9 in bbox_handler (sig=6, si=0x7f3bed1c2e30, uc=0x7f3bed1c2d00) at gs_bbox.cpp:112 #2 <signal handler called> #3 0x00007f3d259436eb in raise () from /lib64/libc.so.6 #4 0x00007f3d25944a11 in abort () from /lib64/libc.so.6 #5 0x0000000001253db3 in ExceptionalCondition (conditionName=0x43139a2 "!(list->tail->next == __null)", errorType=0x43138b5 "FailedAssertion", fileName=0x43138ac "list.cpp", lineNumber=53) at assert.cpp:46 #6 0x0000000000cefcb3 in check_list_invariants (list=0x7f3beabbf160) at list.cpp:53 #7 0x0000000000cf0be0 in list_concat (list1=0x7f3beabbf160, list2=0x7f3beabbe840) at list.cpp:540 #8 0x000000000262d54d in expand_stmt_block (estate=0x7f3bed1c47b0, stmt=0x7f3beb0185c0, exception_flag=@0x7f3bed1c3fab: false, block_ptr_stack=0x7f3beac5cce0, resignal_in_handler=false) at pl_exec.cpp:3494 #9 0x000000000262cce1 in expand_stmts (estate=0x7f3bed1c47b0, stmts=0x7f3beb018788, exception_flag=@0x7f3bed1c3fab: false, block_ptr_stack=0x7f3beac5cce0, resignal_in_handler=false) at pl_exec.cpp:3362 #10 0x000000000262cb63 in exec_stmt_block_b_exception (estate=0x7f3bed1c47b0, block=0x7f3beb018838, block_ptr_stack=0x7f3beac5cce0, resignal_in_handler=false) at pl_exec.cpp:3336 #11 0x000000000262c1cb in exec_stmt_block (estate=0x7f3bed1c47b0, block=0x7f3beb018838, block_ptr_stack=0x7f3beac5cce0, resignal_in_handler=false) at pl_exec.cpp:3154 #12 0x000000000262e7ac in exec_stmt (estate=0x7f3bed1c47b0, stmt=0x7f3beb018838, resignal_in_handler=false) at pl_exec.cpp:3957 #13 0x000000000262e3d0 in exec_stmts (estate=0x7f3bed1c47b0, stmts=0x7f3beb018b08, resignal_in_handler=false) at pl_exec.cpp:3876 #14 0x000000000262c891 in exec_stmt_block (estate=0x7f3bed1c47b0, block=0x7f3beb018a18, block_ptr_stack=0x0, resignal_in_handler=false) at pl_exec.cpp:3255 #15 0x0000000002627188 in plpgsql_exec_function (func=0x7f3beb420060, fcinfo=0x7f3bed1c4f00, dynexec_anonymous_block=false) at pl_exec.cpp:1501 #16 0x00007f3bea1f9a72 in b_plpgsql_call_handler (fcinfo=0x7f3bed1c4f00) at pl_handler.cpp:876 #17 0x00007f3bea13dc4d in ExecuteCallStmt (stmt=0x7f3beb00f988, params=0x0, atomic=false) at functioncmds.cpp:3495 #18 0x00007f3bea226fdb in standard_ProcessUtility (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sent_to_remote=false, completion_tag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at plugin_utility.cpp:5094 #19 0x0000000001a873b6 in standard_ProcessUtility (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sent_to_remote=false, completion_tag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at utility.cpp:2564 #20 0x00007f3d25853927 in gsaudit_ProcessUtility_hook (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sentToRemote=false, completionTag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at gs_policy_plugin.cpp:819 #21 0x0000000001a9cd57 in pgaudit_ProcessUtility (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sentToRemote=false, completionTag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at auditfuncs.cpp:1419 #22 0x0000000001af4e90 in hypo_utility_hook (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sentToRemote=false, completionTag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCtas=false) at hypopg_index.cpp:167 #23 0x0000000001a85d49 in ProcessUtility (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sent_to_remote=false, completion_tag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at utility.cpp:1563 #24 0x0000000001a80b07 in PortalRunUtility (portal=0x7f3beac62060, utilityStmt=0x7f3beb00f988, isTopLevel=true, dest=0x7f3beb00fbf8, completionTag=0x7f3bed1c8870 "") at pquery.cpp:1724 #25 0x0000000001a81088 in PortalRunMulti (portal=0x7f3beac62060, isTopLevel=true, dest=0x7f3beb00fbf8, altdest=0x7f3beb00fbf8, completionTag=0x7f3bed1c8870 "") at pquery.cpp:1903 #26 0x0000000001a7f4cc in PortalRun (portal=0x7f3beac62060, count=9223372036854775807, isTopLevel=true, dest=0x7f3beb00fbf8, altdest=0x7f3beb00fbf8, completionTag=0x7f3bed1c8870 "") at pquery.cpp:1182 #27 0x0000000001a65e49 in exec_simple_query (query_string=0x7f3beb00e060 "call bug6900_9074(1);", messageType=QUERY_MESSAGE, msg=0x7f3bed1c8a80) at postgres.cpp:3000 #28 0x0000000001a736d3 in PostgresMain (argc=1, argv=0x7f3beb1df268, dbname=0x7f3beb1de2a0 "self_b", username=0x7f3beb1de258 "pengjiong") at postgres.cpp:9085 #29 0x00000000019b2987 in BackendRun (port=0x7f3bed1c9270) at postmaster.cpp:9398 #30 0x00000000019c3b19 in GaussDbThreadMain<(knl_thread_role)1> (arg=0x7f3c41846fd8) at postmaster.cpp:13898 #31 0x00000000019bf3a4 in InternalThreadFunc (args=0x7f3c41846fd8) at postmaster.cpp:14521 #32 0x00000000025f4bf6 in ThreadStarterFunc (arg=0x7f3c41846fc8) at gs_thread.cpp:380 #33 0x00007f3d25ad3fed in ?? () from /lib64/libpthread.so.0 #34 0x00007f3d25a0718f in clone () from /lib64/libc.so.6 ``` 【原因分析】: 1. 这个问题的根因 2. 问题推断过程 3. 还有哪些原因可能造成类似现象 4. 该问题是否有临时规避措施 5. 问题解决方案 6. 预计修复问题时间 【日志信息】(请附上日志文件、截图、coredump信息): 【测试代码】:
<!-- #请认真填写以下信息,否则可能由于无法定位,导致issue无法解决而被取消 --> 【标题描述】: 【测试类型:SQL功能】【测试版本:5.1.0】exit handler sqlexception场景的core问题 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): 【测试环境】(单机/1主x备x级联备): 【被测功能】: 【测试类型】: 【数据库版本】(查询命令: gaussdb -V): gaussdb (openGauss 5.1.0 build 38fc6f41) compiled at 2023-09-26 09:29:46 commit 0 last mr debug 【预置条件】: B库+dolphin插件 【操作步骤】(请填写详细的操作步骤): ``` set dolphin.sql_mode = 'block_return_multi_results,ansi_quotes'; delimiter | create table t3 (w char unique, x char)| insert into t3 values ('a', 'b')| create procedure bug6900_9074(z int) begin declare exit handler for sqlstate '23000' select '23000'; begin declare exit handler for sqlexception select 'sqlexception'; if z = 1 then insert into t3 values ('a', 'b'); else insert into t3 values ('x', 'y', 'z'); end if; end; end| call bug6900_9074(0)| call bug6900_9074(1)| delimiter ; ``` 【预期输出】:  【实际输出】: 第二次执行core:  core堆栈: ``` #0 BBOX_CreateCoredump (file_name=0x7f3bed1c27b0 "/data/core//core-gaussdb-3034157-2023_09_26_11_35_07-bbox.lz4") at bbox_create.cpp:404 #1 0x000000000157bec9 in bbox_handler (sig=6, si=0x7f3bed1c2e30, uc=0x7f3bed1c2d00) at gs_bbox.cpp:112 #2 <signal handler called> #3 0x00007f3d259436eb in raise () from /lib64/libc.so.6 #4 0x00007f3d25944a11 in abort () from /lib64/libc.so.6 #5 0x0000000001253db3 in ExceptionalCondition (conditionName=0x43139a2 "!(list->tail->next == __null)", errorType=0x43138b5 "FailedAssertion", fileName=0x43138ac "list.cpp", lineNumber=53) at assert.cpp:46 #6 0x0000000000cefcb3 in check_list_invariants (list=0x7f3beabbf160) at list.cpp:53 #7 0x0000000000cf0be0 in list_concat (list1=0x7f3beabbf160, list2=0x7f3beabbe840) at list.cpp:540 #8 0x000000000262d54d in expand_stmt_block (estate=0x7f3bed1c47b0, stmt=0x7f3beb0185c0, exception_flag=@0x7f3bed1c3fab: false, block_ptr_stack=0x7f3beac5cce0, resignal_in_handler=false) at pl_exec.cpp:3494 #9 0x000000000262cce1 in expand_stmts (estate=0x7f3bed1c47b0, stmts=0x7f3beb018788, exception_flag=@0x7f3bed1c3fab: false, block_ptr_stack=0x7f3beac5cce0, resignal_in_handler=false) at pl_exec.cpp:3362 #10 0x000000000262cb63 in exec_stmt_block_b_exception (estate=0x7f3bed1c47b0, block=0x7f3beb018838, block_ptr_stack=0x7f3beac5cce0, resignal_in_handler=false) at pl_exec.cpp:3336 #11 0x000000000262c1cb in exec_stmt_block (estate=0x7f3bed1c47b0, block=0x7f3beb018838, block_ptr_stack=0x7f3beac5cce0, resignal_in_handler=false) at pl_exec.cpp:3154 #12 0x000000000262e7ac in exec_stmt (estate=0x7f3bed1c47b0, stmt=0x7f3beb018838, resignal_in_handler=false) at pl_exec.cpp:3957 #13 0x000000000262e3d0 in exec_stmts (estate=0x7f3bed1c47b0, stmts=0x7f3beb018b08, resignal_in_handler=false) at pl_exec.cpp:3876 #14 0x000000000262c891 in exec_stmt_block (estate=0x7f3bed1c47b0, block=0x7f3beb018a18, block_ptr_stack=0x0, resignal_in_handler=false) at pl_exec.cpp:3255 #15 0x0000000002627188 in plpgsql_exec_function (func=0x7f3beb420060, fcinfo=0x7f3bed1c4f00, dynexec_anonymous_block=false) at pl_exec.cpp:1501 #16 0x00007f3bea1f9a72 in b_plpgsql_call_handler (fcinfo=0x7f3bed1c4f00) at pl_handler.cpp:876 #17 0x00007f3bea13dc4d in ExecuteCallStmt (stmt=0x7f3beb00f988, params=0x0, atomic=false) at functioncmds.cpp:3495 #18 0x00007f3bea226fdb in standard_ProcessUtility (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sent_to_remote=false, completion_tag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at plugin_utility.cpp:5094 #19 0x0000000001a873b6 in standard_ProcessUtility (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sent_to_remote=false, completion_tag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at utility.cpp:2564 #20 0x00007f3d25853927 in gsaudit_ProcessUtility_hook (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sentToRemote=false, completionTag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at gs_policy_plugin.cpp:819 #21 0x0000000001a9cd57 in pgaudit_ProcessUtility (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sentToRemote=false, completionTag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at auditfuncs.cpp:1419 #22 0x0000000001af4e90 in hypo_utility_hook (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sentToRemote=false, completionTag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCtas=false) at hypopg_index.cpp:167 #23 0x0000000001a85d49 in ProcessUtility (processutility_cxt=0x7f3bed1c82d0, dest=0x7f3beb00fbf8, sent_to_remote=false, completion_tag=0x7f3bed1c8870 "", context=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at utility.cpp:1563 #24 0x0000000001a80b07 in PortalRunUtility (portal=0x7f3beac62060, utilityStmt=0x7f3beb00f988, isTopLevel=true, dest=0x7f3beb00fbf8, completionTag=0x7f3bed1c8870 "") at pquery.cpp:1724 #25 0x0000000001a81088 in PortalRunMulti (portal=0x7f3beac62060, isTopLevel=true, dest=0x7f3beb00fbf8, altdest=0x7f3beb00fbf8, completionTag=0x7f3bed1c8870 "") at pquery.cpp:1903 #26 0x0000000001a7f4cc in PortalRun (portal=0x7f3beac62060, count=9223372036854775807, isTopLevel=true, dest=0x7f3beb00fbf8, altdest=0x7f3beb00fbf8, completionTag=0x7f3bed1c8870 "") at pquery.cpp:1182 #27 0x0000000001a65e49 in exec_simple_query (query_string=0x7f3beb00e060 "call bug6900_9074(1);", messageType=QUERY_MESSAGE, msg=0x7f3bed1c8a80) at postgres.cpp:3000 #28 0x0000000001a736d3 in PostgresMain (argc=1, argv=0x7f3beb1df268, dbname=0x7f3beb1de2a0 "self_b", username=0x7f3beb1de258 "pengjiong") at postgres.cpp:9085 #29 0x00000000019b2987 in BackendRun (port=0x7f3bed1c9270) at postmaster.cpp:9398 #30 0x00000000019c3b19 in GaussDbThreadMain<(knl_thread_role)1> (arg=0x7f3c41846fd8) at postmaster.cpp:13898 #31 0x00000000019bf3a4 in InternalThreadFunc (args=0x7f3c41846fd8) at postmaster.cpp:14521 #32 0x00000000025f4bf6 in ThreadStarterFunc (arg=0x7f3c41846fc8) at gs_thread.cpp:380 #33 0x00007f3d25ad3fed in ?? () from /lib64/libpthread.so.0 #34 0x00007f3d25a0718f in clone () from /lib64/libc.so.6 ``` 【原因分析】: 1. 这个问题的根因 2. 问题推断过程 3. 还有哪些原因可能造成类似现象 4. 该问题是否有临时规避措施 5. 问题解决方案 6. 预计修复问题时间 【日志信息】(请附上日志文件、截图、coredump信息): 【测试代码】:
评论 (
5
)
登录
后才可以发表评论
状态
已验收
待办的
已确认
已答复
已取消
挂起
修复中
已完成
待回归
测试中
已验收
负责人
未设置
暖阳
nnuanyang
负责人
协作者
+负责人
+协作者
Loong
willloong
负责人
协作者
+负责人
+协作者
标签
qa_nopassed_01
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (17)
标签 (29)
master
6.0.0
master_bak08271930
5.0.0
bugfix_0725
3.0.0
7.0.0-RC1
iud_dev
dev_board
5.1.0
kms
2.0.0
3.1.0
2.1.0
1.1.0
1.0.1
1.0.0
v6.0.2
v7.0.0-RC1
v6.0.1
v3.0.6
v6.0.0
v3.0.5B009
v5.0.3
v5.0.2
v6.0.0-RC1
v3.0.5
v5.0.1
v5.1.0
5.1.0
v5.0.0
v3.0.3
v3.1.1
v3.0.2
v3.1.0
v2.0.5
v3.0.1
v2.0.4
v2.0.3
v3.0.0
v2.1.0
v2.0.1
v2.0.0
v1.1.0
v1.0.1
v1.0.0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册