登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
数据库相关
>
数据库服务
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
441
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】【自动化】jdbc接口执行json_to_record函数,发生core_dump导致主机挂了
已验收
#I6SXJL
缺陷
李春龙
创建于
2023-04-04 16:12
【标题描述】:jdbc接口执行json_to_record函数,发生core_dump导致主机挂了 【测试类型:SQL功能】【测试版本:5.1.0】 【自动化】jdbc接口执行json_to_record函数,发生core_dump导致主机挂了 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): openEuler release 20.03 (LTS-SP1) Linux kwepwebenv15402 4.19.90-2012.5.0.0054.oe1.x86_64 #1 SMP Tue Dec 22 15:58:47 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux 【测试环境】(单机/1主x备x级联备): 1主2备 【被测功能】: sql功能 【测试类型】: 功能测试 【数据库版本】(查询命令: gaussdb -V): gaussdb (openGauss 5.0.0 build d4ec129b) compiled at 2023-04-03 17:23:58 commit 0 last mr 【预置条件】: 数据库正常 【操作步骤】(请填写详细的操作步骤): 1.Jdbc连接数据库,执行sql:select * from json_to_record('{"a":1,"b":"foo","d":false}',false) as x(a int, b text, c boolean); 【预期输出】: 执行通过 a | b | c ---+-----+--- 1 | foo | 【实际输出】: 主机挂掉,报错如下: socket is not closed; Urgent packet sent to backend successfully; An I/O error occured while sending to the backend.detail:EOF Exception; core 堆栈: #0 0x00007f5f24c28a17 in ?? () from /data/kyleze/opengauss/install/app/lib/libgcc_s.so.1 #1 0x00007f5f24c2a738 in _Unwind_Backtrace () from /data/kyleze/opengauss/install/app/lib/libgcc_s.so.1 #2 0x00007f5f24b444f8 in backtrace () from /usr/lib64/libc.so.6 #3 0x0000563ce0de0589 in print_call_stack (fd=122, pc=165) at fatal_err.cpp:237 #4 0x0000563ce0de0c13 in gen_err_msg (sig=sig@entry=11, si=si@entry=0x7f5e401975b0, uc=uc@entry=0x7f5e40197480) at fatal_err.cpp:608 #5 0x0000563ce1039d2d in do_ffic (sig=11, si=0x7f5e401975b0, uc=0x7f5e40197480) at gs_bbox.cpp:73 #6 0x0000563ce1039d81 in bbox_handler (sig=<optimized out>, si=<optimized out>, uc=<optimized out>) at gs_bbox.cpp:104 #7 <signal handler called> #8 0x00000000000000a5 in ?? () #9 0x0000563ce0dea9d5 in InputFunctionCall (flinfo=flinfo@entry=0x7f5e41bb9cb8, str=str@entry=0x0, typioparam=3865579652, typmod=-1, can_ignore=can_ignore@entry=false) at fmgr.cpp:2162 #10 0x0000563ce0c13cdb in populate_record_worker (fcinfo=<optimized out>, have_record_arg=<optimized out>) at jsonfuncs.cpp:1993 #11 0x0000563ce14755dc in ExecMakeTableFunctionResult (funcexpr=<optimized out>, econtext=0x7f5e41bb8270, expectedDesc=0x7f5e41bb8e70, randomAccess=false, node=node@entry=0x7f5e41bb8050) at execQual.cpp:3188 #12 0x0000563ce14d467e in FunctionNext (node=0x7f5e41bb8050) at nodeFunctionscan.cpp:63 #13 0x0000563ce147e6f8 in ExecScan (node=0x7f5e41bb8050, access_mtd=0x563ce14d4610 <FunctionNext(FunctionScanState*)>, recheck_mtd=0x563ce14d45e0 <FunctionRecheck(FunctionScanState*, TupleTableSlot*)>) at execScan.cpp:133 #14 0x0000563ce145b945 in ExecProcNode (node=0x7f5e41bb8050) at ../../../../src/include/executor/executor.h:278 #15 ExecutePlan (motJitContext=0x0, dest=0x7f5e4191a570, direction=<optimized out>, numberTuples=0, sendTuples=true, operation=CMD_SELECT, planstate=0x7f5e41bb8050, estate=0x7f5e407c6050) at execMain.cpp:2238 #16 standard_ExecutorRun (queryDesc=0x7f5e41b4ed10, direction=<optimized out>, count=0) at execMain.cpp:642 #17 0x0000563ce12d23b5 in explain_ExecutorRun (queryDesc=0x7f5e41b4ed10, direction=ForwardScanDirection, count=0) at auto_explain.cpp:122 #18 0x0000563ce145babd in ExecutorRun (queryDesc=queryDesc@entry=0x7f5e41b4ed10, direction=direction@entry=ForwardScanDirection, count=count@entry=0) at execMain.cpp:492 #19 0x0000563ce13d286e in PortalRunSelect (portal=portal@entry=0x7f5e41bb4050, forward=forward@entry=true, count=0, count@entry=9223372036854775807, dest=dest@entry=0x7f5e4191a570) at pquery.cpp:1413 #20 0x0000563ce13d2ed0 in PortalRun (portal=portal@entry=0x7f5e41bb4050, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=true, dest=dest@entry=0x7f5e4191a570, altdest=altdest@entry=0x7f5e4191a570, completionTag=completionTag@entry=0x7f5e401992a0 "") at pquery.cpp:1149 #21 0x0000563ce13cb869 in exec_execute_message (max_rows=9223372036854775807, portal_name=0x7f5e4191a050 "") at postgres.cpp:5272 #22 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f5e87459da0, dbname=<optimized out>, username=<optimized out>) at postgres.cpp:9491 #23 0x0000563ce132854e in BackendRun (port=port@entry=0x7f5e40199410) at postmaster.cpp:9217 #24 0x0000563ce134e218 in GaussDbThreadMain<(knl_thread_role)1> (arg=0x7f5e9c43b5a0) at postmaster.cpp:13593 #25 0x0000563ce13285d5 in InternalThreadFunc (args=<optimized out>) at postmaster.cpp:14212 #26 0x00007f5f24bfef2b in ?? () from /usr/lib64/libpthread.so.0 #27 0x00007f5f24b3670f in clone () from /usr/lib64/libc.so.6 【原因分析】: 1. 这个问题的根因 2. 问题推断过程 3. 还有哪些原因可能造成类似现象 4. 该问题是否有临时规避措施 5. 问题解决方案 6. 预计修复问题时间 【日志信息】(请附上日志文件、截图、coredump信息): 【测试代码】:
【标题描述】:jdbc接口执行json_to_record函数,发生core_dump导致主机挂了 【测试类型:SQL功能】【测试版本:5.1.0】 【自动化】jdbc接口执行json_to_record函数,发生core_dump导致主机挂了 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): openEuler release 20.03 (LTS-SP1) Linux kwepwebenv15402 4.19.90-2012.5.0.0054.oe1.x86_64 #1 SMP Tue Dec 22 15:58:47 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux 【测试环境】(单机/1主x备x级联备): 1主2备 【被测功能】: sql功能 【测试类型】: 功能测试 【数据库版本】(查询命令: gaussdb -V): gaussdb (openGauss 5.0.0 build d4ec129b) compiled at 2023-04-03 17:23:58 commit 0 last mr 【预置条件】: 数据库正常 【操作步骤】(请填写详细的操作步骤): 1.Jdbc连接数据库,执行sql:select * from json_to_record('{"a":1,"b":"foo","d":false}',false) as x(a int, b text, c boolean); 【预期输出】: 执行通过 a | b | c ---+-----+--- 1 | foo | 【实际输出】: 主机挂掉,报错如下: socket is not closed; Urgent packet sent to backend successfully; An I/O error occured while sending to the backend.detail:EOF Exception; core 堆栈: #0 0x00007f5f24c28a17 in ?? () from /data/kyleze/opengauss/install/app/lib/libgcc_s.so.1 #1 0x00007f5f24c2a738 in _Unwind_Backtrace () from /data/kyleze/opengauss/install/app/lib/libgcc_s.so.1 #2 0x00007f5f24b444f8 in backtrace () from /usr/lib64/libc.so.6 #3 0x0000563ce0de0589 in print_call_stack (fd=122, pc=165) at fatal_err.cpp:237 #4 0x0000563ce0de0c13 in gen_err_msg (sig=sig@entry=11, si=si@entry=0x7f5e401975b0, uc=uc@entry=0x7f5e40197480) at fatal_err.cpp:608 #5 0x0000563ce1039d2d in do_ffic (sig=11, si=0x7f5e401975b0, uc=0x7f5e40197480) at gs_bbox.cpp:73 #6 0x0000563ce1039d81 in bbox_handler (sig=<optimized out>, si=<optimized out>, uc=<optimized out>) at gs_bbox.cpp:104 #7 <signal handler called> #8 0x00000000000000a5 in ?? () #9 0x0000563ce0dea9d5 in InputFunctionCall (flinfo=flinfo@entry=0x7f5e41bb9cb8, str=str@entry=0x0, typioparam=3865579652, typmod=-1, can_ignore=can_ignore@entry=false) at fmgr.cpp:2162 #10 0x0000563ce0c13cdb in populate_record_worker (fcinfo=<optimized out>, have_record_arg=<optimized out>) at jsonfuncs.cpp:1993 #11 0x0000563ce14755dc in ExecMakeTableFunctionResult (funcexpr=<optimized out>, econtext=0x7f5e41bb8270, expectedDesc=0x7f5e41bb8e70, randomAccess=false, node=node@entry=0x7f5e41bb8050) at execQual.cpp:3188 #12 0x0000563ce14d467e in FunctionNext (node=0x7f5e41bb8050) at nodeFunctionscan.cpp:63 #13 0x0000563ce147e6f8 in ExecScan (node=0x7f5e41bb8050, access_mtd=0x563ce14d4610 <FunctionNext(FunctionScanState*)>, recheck_mtd=0x563ce14d45e0 <FunctionRecheck(FunctionScanState*, TupleTableSlot*)>) at execScan.cpp:133 #14 0x0000563ce145b945 in ExecProcNode (node=0x7f5e41bb8050) at ../../../../src/include/executor/executor.h:278 #15 ExecutePlan (motJitContext=0x0, dest=0x7f5e4191a570, direction=<optimized out>, numberTuples=0, sendTuples=true, operation=CMD_SELECT, planstate=0x7f5e41bb8050, estate=0x7f5e407c6050) at execMain.cpp:2238 #16 standard_ExecutorRun (queryDesc=0x7f5e41b4ed10, direction=<optimized out>, count=0) at execMain.cpp:642 #17 0x0000563ce12d23b5 in explain_ExecutorRun (queryDesc=0x7f5e41b4ed10, direction=ForwardScanDirection, count=0) at auto_explain.cpp:122 #18 0x0000563ce145babd in ExecutorRun (queryDesc=queryDesc@entry=0x7f5e41b4ed10, direction=direction@entry=ForwardScanDirection, count=count@entry=0) at execMain.cpp:492 #19 0x0000563ce13d286e in PortalRunSelect (portal=portal@entry=0x7f5e41bb4050, forward=forward@entry=true, count=0, count@entry=9223372036854775807, dest=dest@entry=0x7f5e4191a570) at pquery.cpp:1413 #20 0x0000563ce13d2ed0 in PortalRun (portal=portal@entry=0x7f5e41bb4050, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=true, dest=dest@entry=0x7f5e4191a570, altdest=altdest@entry=0x7f5e4191a570, completionTag=completionTag@entry=0x7f5e401992a0 "") at pquery.cpp:1149 #21 0x0000563ce13cb869 in exec_execute_message (max_rows=9223372036854775807, portal_name=0x7f5e4191a050 "") at postgres.cpp:5272 #22 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f5e87459da0, dbname=<optimized out>, username=<optimized out>) at postgres.cpp:9491 #23 0x0000563ce132854e in BackendRun (port=port@entry=0x7f5e40199410) at postmaster.cpp:9217 #24 0x0000563ce134e218 in GaussDbThreadMain<(knl_thread_role)1> (arg=0x7f5e9c43b5a0) at postmaster.cpp:13593 #25 0x0000563ce13285d5 in InternalThreadFunc (args=<optimized out>) at postmaster.cpp:14212 #26 0x00007f5f24bfef2b in ?? () from /usr/lib64/libpthread.so.0 #27 0x00007f5f24b3670f in clone () from /usr/lib64/libc.so.6 【原因分析】: 1. 这个问题的根因 2. 问题推断过程 3. 还有哪些原因可能造成类似现象 4. 该问题是否有临时规避措施 5. 问题解决方案 6. 预计修复问题时间 【日志信息】(请附上日志文件、截图、coredump信息): 【测试代码】:
评论 (
4
)
登录
后才可以发表评论
状态
已验收
待办的
已确认
已答复
已取消
挂起
修复中
已完成
待回归
测试中
已验收
负责人
未设置
胡正超
gentle_hu
负责人
协作者
+负责人
+协作者
周斌
justbk
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
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 帐号,请先登录后再操作。
立即登录
没有帐号,去注册