8 Star 0 Fork 17

src-openEuler / systemtap

 / 详情

【openEuler-23.09 rc1 】【arm/x86 】stap-exporter.service 服务启动有报错信息

已验收
缺陷
创建于  
2023-08-30 11:22

【环境信息】
openeulerversion=openEuler-23.09
compiletime=2023-08-23-17-31-23
gccversion=12.3.1-7.oe2309
kernelversion=6.4.0-1.0.1.5.oe2309
openjdkversion=1.8.0.382.b05-0.oe2309
软件信息:
systemtap-4.5-2.oe2203
【问题复现步骤】
1.dnf install -y kernel-devel systemtap-stap-exporter systemtap*
2.systemctl start stap-exporter.service
3.systemctl status stap-exporter.service
出现概率(是否必现,概率性错误):必现
【预期结果】
服务start成功,没有错误日志
【实际结果】
服务启动后,查询状态有报错信息
输入图片说明

评论 (13)

zhangpanting 创建了缺陷

Hi zhangpanting, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Computing, and any of the maintainers: @openeuler-robot , @liqingqing_1229 , @abushwang , @wangbin , @SuperSix173 , @Juyin

openeuler-ci-bot 添加了
 
sig/Computing
标签
zhangpanting 负责人设置为swf504
zhangpanting 计划截止日期设置为2023-08-31
zhangpanting 计划开始日期设置为2023-08-30
zhangpanting 优先级设置为次要

怀疑是kernel、kernel-devel包不配套导致的
uname -r看一下内核版本
rpm -qa |grep kernel看一下内核相关包的版本
@zhangpanting

使用rc1的包没有出现这个情况
输入图片说明

服务日志输出:
输入图片说明

用新安装的rc2 机器验证,启动服务后有下面报错
输入图片说明
输入图片说明
操作流程:
输入图片说明
输入图片说明
@swf504

差异分析报告
版本变更原因 版本升级 变更后版本 4.9
差异分类 差异项 差异说明 影响评估与适配方案
特性变化 新增特性/删除特性/变更特性实现 新增特性:支持64bit RISC-V架构 无影响
配置文件 新增/变更/删除配置项
ABI差异 新增/变更/删除API 新增API:支持rhel6,新增hlist_add_tail_rcu接口 无影响
新增/变更/删除结构体
命令行/功能 新增/变更/删除命令
新增/变更/删除命令选项 新增命令选项:dtrace新增-o选项支持指定cpp的输出文件;增加--sign-module=PATH选项用于stap服务器使用 ;增加stap --language-server命令启动语言服务器 无影响
新增/变更/删除日志输出
SPEC文件 新增/变更/删除 编译依赖、安装依赖、依赖的软件版本变更
删除依赖:runtime-virthost删除依赖libvirt >= 1.0.2 无影响,openEuler不支持构建runtime-virthost包
变更依赖:支持python 3.10 无影响
新增子包:新增systemtap-jupyter子包,用于在本地或容器内编译、运行jupyter kernel 无影响
拆分软件包方式变更
其他 新增功能 新增语言服务器功能;新增Jupyter kernel:Isystemtap;使用bunsen测试套件日志分析包替代postgresql webdb 无影响

执行 dnf install -y kernel-devel systemtap*
ystemctl start stap-exporter.service
systemctl status stap-exporter.service
systemctl stop stap-exporter.service
systemctl status stap-exporter.service
查询状态有个报错信息
输入图片说明
输入图片说明
@langfei

zhangpanting 任务状态已完成 修改为待办的

该问题确认为非问题,以上报错原因是先执行systemctl start stap-exporter.service后,stap-exporter服务正在编译ko阶段(status命令可以看到还在pass3),如下图:
输入图片说明
若此时再去执行systemctl stop stap-exporter.service命令,又会强制打断编译ko流程,所以出现编译报错如下:
输入图片说明
signal: 15 即表示进程被中断。

验证如下:
若start命令后等待一段时间后,再去stop,就不会出现报错。
[root@openEuler ~]# systemctl start stap-exporter.service
[root@openEuler ~]# systemctl status stap-exporter.service
● stap-exporter.service - Export metrics from designated systemtap scripts to Prometheus.
Loaded: loaded (/usr/lib/systemd/system/stap-exporter.service; disabled; preset: disabled)
Active: active (running) since Mon 2023-09-18 16:21:16 CST; 4s ago
Main PID: 6569 (stap-exporter)
Tasks: 6 (limit: 17878)
Memory: 106.5M
CGroup: /system.slice/stap-exporter.service
├─6569 /usr/bin/python3 /usr/sbin/stap-exporter -p 9900 -k 300
├─6570 stap -v --example -m stap_exporter_6569_4 also_ran.stp
├─6574 make -C /lib/modules/6.4.0-8.0.0.16.oe2309.aarch64/build M=/tmp/stapDm9EhN modules CONFIG_DEBUG_INFO= CONFIG_DEBUG_INFO_BTF_MODULES= ARCH=arm64 CC_VERSION_TEXT=foo CONFIG_CC_VERSION_TEXT=foo>
├─6785 make -f ./scripts/Makefile.build obj=/tmp/stapDm9EhN need-builtin=1 need-modorder=1
├─6799 /bin/sh -c "set -e; TMP=/tmp/stapDm9EhN/.tmp
$$/tmp; trap "rm -rf /tmp/stapDm9EhN/.tmp
$$" EXIT; mkdir -p /tmp/stapDm9EhN/.tmp_$$; if ( gcc -Werror -D__KERNEL__ -mlittle-endian -DC>
├─6801 gcc -Werror -D__KERNEL__ -mlittle-endian -DCC_USING_PATCHABLE_FUNCTION_ENTRY -DKASAN_SHADOW_SCALE_SHIFT= -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-st>
└─6803 /usr/libexec/gcc/aarch64-openEuler-linux/12/cc1 -quiet -D KERNEL -D CC_USING_PATCHABLE_FUNCTION_ENTRY -D KASAN_SHADOW_SCALE_SHIFT= -D CONFIG_CC_HAS_K_CONSTRAINT=1 -D "ARM64_ASM_ARCH="ar>

Sep 18 16:21:16 openEuler systemd[1]: Started Export metrics from designated systemtap scripts to Prometheus..
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 1: parsed user script and 468 library scripts using 135100virt/100096res/8320shr/91408data kb, in 550usr/120sys/690real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 2: analyzed script: 3 probes, 17 functions, 98 embeds, 3 globals using 137228virt/103428res/9600shr/93536data kb, in 290usr/50sys/348real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 3: translated to C into "/tmp/stapDm9EhN/__stap_exporter_6569_4_src.c" using 137360virt/103812res/9856shr/93668data kb, in 0usr/10sys/10real ms.
[root@openEuler ~]# systemctl status stap-exporter.service
● stap-exporter.service - Export metrics from designated systemtap scripts to Prometheus.
Loaded: loaded (/usr/lib/systemd/system/stap-exporter.service; disabled; preset: disabled)
Active: active (running) since Mon 2023-09-18 16:21:16 CST; 38s ago
Main PID: 6569 (stap-exporter)
Tasks: 8 (limit: 17878)
Memory: 105.8M
CGroup: /system.slice/stap-exporter.service
├─6569 /usr/bin/python3 /usr/sbin/stap-exporter -p 9900 -k 300
├─6570 stap -v --example -m __stap_exporter_6569_4 also_ran.stp
└─6878 /usr/libexec/systemtap/stapio /tmp/stapDm9EhN/__stap_exporter_6569_4.ko -F3

Sep 18 16:21:16 openEuler systemd[1]: Started Export metrics from designated systemtap scripts to Prometheus..
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 1: parsed user script and 468 library scripts using 135100virt/100096res/8320shr/91408data kb, in 550usr/120sys/690real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 2: analyzed script: 3 probes, 17 functions, 98 embeds, 3 globals using 137228virt/103428res/9600shr/93536data kb, in 290usr/50sys/348real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 3: translated to C into "/tmp/stapDm9EhN/__stap_exporter_6569_4_src.c" using 137360virt/103812res/9856shr/93668data kb, in 0usr/10sys/10real ms.
Sep 18 16:21:33 openEuler stap-exporter[6570]: Pass 4: compiled C into "__stap_exporter_6569_4.ko" in 12570usr/3480sys/14684real ms.
Sep 18 16:21:33 openEuler stap-exporter[6570]: Pass 5: starting run.
[root@openEuler ~]# systemctl stop stap-exporter.service
[root@openEuler ~]# systemctl status stap-exporter.service
○ stap-exporter.service - Export metrics from designated systemtap scripts to Prometheus.
Loaded: loaded (/usr/lib/systemd/system/stap-exporter.service; disabled; preset: disabled)
Active: inactive (dead)

Sep 18 16:21:16 openEuler systemd[1]: Started Export metrics from designated systemtap scripts to Prometheus..
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 1: parsed user script and 468 library scripts using 135100virt/100096res/8320shr/91408data kb, in 550usr/120sys/690real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 2: analyzed script: 3 probes, 17 functions, 98 embeds, 3 globals using 137228virt/103428res/9600shr/93536data kb, in 290usr/50sys/348real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 3: translated to C into "/tmp/stapDm9EhN/__stap_exporter_6569_4_src.c" using 137360virt/103812res/9856shr/93668data kb, in 0usr/10sys/10real ms.
Sep 18 16:21:33 openEuler stap-exporter[6570]: Pass 4: compiled C into "__stap_exporter_6569_4.ko" in 12570usr/3480sys/14684real ms.
Sep 18 16:21:33 openEuler stap-exporter[6570]: Pass 5: starting run.
Sep 18 16:22:03 openEuler systemd[1]: Stopping Export metrics from designated systemtap scripts to Prometheus....
Sep 18 16:22:03 openEuler stap-exporter[6570]: Pass 5: run completed in 20usr/170sys/30465real ms.
Sep 18 16:22:03 openEuler systemd[1]: stap-exporter.service: Deactivated successfully.
Sep 18 16:22:03 openEuler systemd[1]: Stopped Export metrics from designated systemtap scripts to Prometheus..
[root@openEuler ~]#

服务启动需要时间,需要等待成功后再停止服务

swf504 任务状态待办的 修改为已完成

等到ko 编译完成后再执行stop 没有报错
输入图片说明
输入图片说明

zhangpanting 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/systemtap.git
git@gitee.com:src-openeuler/systemtap.git
src-openeuler
systemtap
systemtap

搜索帮助