登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
开源项目
>
数据库相关
>
数据库服务
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
443
Star
1.5K
Fork
1.8K
openGauss
/
openGauss-server
代码
Issues
982
Pull Requests
153
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
在国产浪潮飞腾2000 aarch64 cpu架构上安装openGauss数据库时提示Illegal instruction(core dumped)
已验收
#IAWL03
缺陷
26844
创建于
2024-10-12 15:46
问题简述: 在国产浪潮飞腾2000 aarch64 cpu架构上安装openGauss数据库时提示Illegal instruction(core dumped) 问题情形: 服务器信息 root@xxx /home # cat /etc/os-release NAME="openEuler" VERSION="22.03 (LTS-SP4)" ID="openEuler" VERSION_ID="22.03" PRETTY_NAME="openEuler 22.03 (LTS-SP4)" ANSI_COLOR="0;31" root@xxx /home # lscpu 架构: aarch64 CPU 运行模式: 64-bit 字节序: Little Endian CPU: 64 在线 CPU 列表: 0-63 厂商 ID: Phytium BIOS Vendor ID: Phytium 型号名称: FT-2000+ BIOS Model name: FT-2000+/64 型号: 2 每个核的线程数: 1 每个座的核数: 64 座: 1 步进: 0x1 BogoMIPS: 100.00 标记: fp asimd evtstrm crc32 cpuid Caches (sum of all): L1d: 2 MiB (64 instances) L1i: 2 MiB (64 instances) L2: 512 MiB (16 instances) NUMA: NUMA 节点: 8 NUMA 节点0 CPU: 0-7 NUMA 节点1 CPU: 8-15 NUMA 节点2 CPU: 16-23 NUMA 节点3 CPU: 24-31 NUMA 节点4 CPU: 32-39 NUMA 节点5 CPU: 40-47 NUMA 节点6 CPU: 48-55 NUMA 节点7 CPU: 56-63 Vulnerabilities: Gather data sampling: Not affected Itlb multihit: Not affected L1tf: Not affected Mds: Not affected Meltdown: Mitigation; PTI Mmio stale data: Not affected Retbleed: Not affected Spec rstack overflow: Not affected Spec store bypass: Vulnerable Spectre v1: Mitigation; __user pointer sanitization Spectre v2: Vulnerable Srbds: Not affected Tsx async abort: Not affected cpu为国产奔腾2000 排错思路: 通过更换多个高斯镜像版本之后发现均无法正常启动,且报错内容一致,尝试使用二进制方式部署,在将官网上对应架构的二级制包放置到服务器上,正常流程安装,结果还是不行,并且提示的报错信息与容器部署模式报错信息一致,此时大致可以判断应该是硬件兼容性问题,而不是镜像或者二级制安装包的问题,之后通过gbd调试工具,成功定位到问题点为cpu指令集支持问题,这个国产的ft-2000不支持操作指令ldaddal 排错过程: ###尝试在服务器上运行二进制程序文件,就会提示错误 omm@xxx ~/openGauss/bin $ gsql failed to connect Unknown:5432. Illegal instruction(核心已转储) ###通过gbd工具,进入调试模式,在调试模式上定位到程序崩溃的内存地址 omm@xxx ~/openGauss/bin $ gdb ./gsql GNU gdb (GDB) openEuler 11.1-9.oe2203sp4 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-openEuler-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./gsql... (No debugging symbols found in ./gsql) (gdb) run Starting program: /home/omm/openGauss/bin/gsql Missing separate debuginfos, use: dnf debuginfo-install glibc-2.34-152.oe2203sp4.aarch64 [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". failed to connect Unknown:5432. Program received signal SIGILL, Illegal instruction. 0x0000fffff73733a0 in PGClientLogic::~PGClientLogic() () from /home/omm/openGauss/lib/libpq_ce.so.5 Missing separate debuginfos, use: dnf debuginfo-install keyutils-libs-1.6.3-4.oe2203sp4.aarch64 libxcrypt-4.4.26-5.oe2203sp4.aarch64 ncurses-libs-6.3-15.oe2203sp4.aarch64 readline-8.1-3.oe2203sp4.aarch64 sssd-2.6.1-15.oe2203sp4.aarch64 xz-libs-5.2.5-4.oe2203sp4.aarch64 (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/omm/openGauss/bin/gsql [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". failed to connect Unknown:5432. Program received signal SIGILL, Illegal instruction. 0x0000fffff73733a0 in PGClientLogic::~PGClientLogic() () from /home/omm/openGauss/lib/libpq_ce.so.5 ###定位到内存地址为0x0000fffff73733a0,查看该内存地址对应的指令,指令为ldaddal (gdb) x/i 0x0000fffff73733a0 => 0xfffff73733a0 <_ZN13PGClientLogicD2Ev+496>: ldaddal w1, w1, [x2] (gdb) quit A debugging session is active. Inferior 1 [process 357602] will be killed. Quit anyway? (y or n) y 总结: 该问题应该是cpu与opengauss适配问题,麻烦能提供一份支持该cpu的版本,谢谢。
问题简述: 在国产浪潮飞腾2000 aarch64 cpu架构上安装openGauss数据库时提示Illegal instruction(core dumped) 问题情形: 服务器信息 root@xxx /home # cat /etc/os-release NAME="openEuler" VERSION="22.03 (LTS-SP4)" ID="openEuler" VERSION_ID="22.03" PRETTY_NAME="openEuler 22.03 (LTS-SP4)" ANSI_COLOR="0;31" root@xxx /home # lscpu 架构: aarch64 CPU 运行模式: 64-bit 字节序: Little Endian CPU: 64 在线 CPU 列表: 0-63 厂商 ID: Phytium BIOS Vendor ID: Phytium 型号名称: FT-2000+ BIOS Model name: FT-2000+/64 型号: 2 每个核的线程数: 1 每个座的核数: 64 座: 1 步进: 0x1 BogoMIPS: 100.00 标记: fp asimd evtstrm crc32 cpuid Caches (sum of all): L1d: 2 MiB (64 instances) L1i: 2 MiB (64 instances) L2: 512 MiB (16 instances) NUMA: NUMA 节点: 8 NUMA 节点0 CPU: 0-7 NUMA 节点1 CPU: 8-15 NUMA 节点2 CPU: 16-23 NUMA 节点3 CPU: 24-31 NUMA 节点4 CPU: 32-39 NUMA 节点5 CPU: 40-47 NUMA 节点6 CPU: 48-55 NUMA 节点7 CPU: 56-63 Vulnerabilities: Gather data sampling: Not affected Itlb multihit: Not affected L1tf: Not affected Mds: Not affected Meltdown: Mitigation; PTI Mmio stale data: Not affected Retbleed: Not affected Spec rstack overflow: Not affected Spec store bypass: Vulnerable Spectre v1: Mitigation; __user pointer sanitization Spectre v2: Vulnerable Srbds: Not affected Tsx async abort: Not affected cpu为国产奔腾2000 排错思路: 通过更换多个高斯镜像版本之后发现均无法正常启动,且报错内容一致,尝试使用二进制方式部署,在将官网上对应架构的二级制包放置到服务器上,正常流程安装,结果还是不行,并且提示的报错信息与容器部署模式报错信息一致,此时大致可以判断应该是硬件兼容性问题,而不是镜像或者二级制安装包的问题,之后通过gbd调试工具,成功定位到问题点为cpu指令集支持问题,这个国产的ft-2000不支持操作指令ldaddal 排错过程: ###尝试在服务器上运行二进制程序文件,就会提示错误 omm@xxx ~/openGauss/bin $ gsql failed to connect Unknown:5432. Illegal instruction(核心已转储) ###通过gbd工具,进入调试模式,在调试模式上定位到程序崩溃的内存地址 omm@xxx ~/openGauss/bin $ gdb ./gsql GNU gdb (GDB) openEuler 11.1-9.oe2203sp4 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-openEuler-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./gsql... (No debugging symbols found in ./gsql) (gdb) run Starting program: /home/omm/openGauss/bin/gsql Missing separate debuginfos, use: dnf debuginfo-install glibc-2.34-152.oe2203sp4.aarch64 [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". failed to connect Unknown:5432. Program received signal SIGILL, Illegal instruction. 0x0000fffff73733a0 in PGClientLogic::~PGClientLogic() () from /home/omm/openGauss/lib/libpq_ce.so.5 Missing separate debuginfos, use: dnf debuginfo-install keyutils-libs-1.6.3-4.oe2203sp4.aarch64 libxcrypt-4.4.26-5.oe2203sp4.aarch64 ncurses-libs-6.3-15.oe2203sp4.aarch64 readline-8.1-3.oe2203sp4.aarch64 sssd-2.6.1-15.oe2203sp4.aarch64 xz-libs-5.2.5-4.oe2203sp4.aarch64 (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/omm/openGauss/bin/gsql [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". failed to connect Unknown:5432. Program received signal SIGILL, Illegal instruction. 0x0000fffff73733a0 in PGClientLogic::~PGClientLogic() () from /home/omm/openGauss/lib/libpq_ce.so.5 ###定位到内存地址为0x0000fffff73733a0,查看该内存地址对应的指令,指令为ldaddal (gdb) x/i 0x0000fffff73733a0 => 0xfffff73733a0 <_ZN13PGClientLogicD2Ev+496>: ldaddal w1, w1, [x2] (gdb) quit A debugging session is active. Inferior 1 [process 357602] will be killed. Quit anyway? (y or n) y 总结: 该问题应该是cpu与opengauss适配问题,麻烦能提供一份支持该cpu的版本,谢谢。
评论 (
8
)
登录
后才可以发表评论
状态
已验收
待办的
已确认
已答复
已取消
挂起
修复中
已完成
待回归
测试中
已验收
负责人
未设置
申正
shenzheng4
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(4)
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 帐号,请先登录后再操作。
立即登录
没有帐号,去注册