查看问题详情

编号项目分类查看权限最后更新
0000153Anolis OS 8* OTHERSpublic2021-06-24 09:19
报告员yinyongchen 分派给xingwei-liu  
优先级low严重性minor出现频率always
状态 resolved处理状况fixed 
标题0000153: [DDE][x86_64/aarch64] 执行带有dde-、deepin-前缀的多个包中的二进制发生core dump
描述执行带有dde-、deepin-前缀的多个包中的二进制发生core dump
x86_64 与 aarch64 均涉及,错误输出一致
涉及的包及其中发生coredump的二进制:
pkg: dde-calendar --> bin: dde-calendar
pkg: dde-clipboard --> bin: dde-clipboard、dde-clipboardloader
pkg: dde-control-center --> bin: abrecovery、dde-control-center
pkg: dde-desktop --> bin: dde-desktop
pkg: dde-dock --> bin: dde-dock
pkg: dde-file-manager --> bin: dde-file-manager、dde-file-manager-pkexec、dde-property-dialog
pkg: dde-launcher --> bin: dde-launcher
pkg: dde-session-shell --> bin: dde-lock、deepin-greeter、lightdm-deepin-greeter
pkg: dde-session-ui --> bin: dde-license-dialog、dde-pixmix
pkg: deepin-devicemanager --> bin: deepin-devicemanager
pkg: deepin-draw --> bin: deepin-draw
pkg: deepin-editor --> bin: deepin-editor
pkg: deepin-font-manager --> bin: deepin-font-manager
pkg: deepin-image-viewer --> bin: deepin-image-viewer
pkg: deepin-picker --> bin: deepin-picker
pkg: deepin-reader --> bin: deepin-reader
pkg: deepin-screen-recorder --> bin: deepin-screen-recorder
pkg: deepin-shortcut-viewer --> bin: deepin-shortcut-viewer
pkg: deepin-system-monitor --> bin: deepin-system-monitor
pkg: deepin-terminal --> bin: deepin-terminal

[环境信息]:
内核信息:
[root@VM20210305-8]# uname -r
4.19.91-23.1.an8.x86_64

操作系统信息:
# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.2"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.2"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.2"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

[期望结果]:
执行包中二进制文件不会发生core dump

[实际结果]:
包中二进制文件发生core dump
所有发生coredump的二进制都是相同报错,下面任举一例:
# /usr/bin/dde-calendar -h
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)


[原因定位]:
根据提示信息,应该是缺少qt库中的 qt.qpa.xcb、qt.qpa.plugin这两个库,疑似缺少一些前置包的安装

[修复建议]:
请确认
问题重现步骤通用安装命令:
yum install -y ${pkg_name}
/usr/bin/${bin_name} -h
例:测试dde-calendar包时,执行
yum install -y dde-calendar
/usr/bin/dde-calendar -h
附注yum repolist:
Repo-id : AppStream
Repo-revision : 1620751376
Repo-updated : Wed 12 May 2021 10:45:48 AM CST
Repo-baseurl : http://mirrors.openanolis.org/anolis/8/AppStream/x86_64/os
-----
Repo-id : BaseOS
Repo-revision : 1621826816
Repo-updated : Mon 24 May 2021 11:26:55 AM CST
Repo-baseurl : http://mirrors.openanolis.org/anolis/8/BaseOS/x86_64/os
-----
Repo-id : DDE
Repo-revision : 1622076969
Repo-updated : Thu 27 May 2021 08:56:09 AM CST
Repo-baseurl : http://mirrors.openanolis.org/anolis/8/DDE/x86_64/os
-----
Repo-id : PowerTools
Repo-revision : 1620751359
Repo-updated : Wed 12 May 2021 12:42:39 AM CST
Repo-baseurl : http://mirrors.openanolis.org/anolis/8/PowerTools/x86_64/os
-----
Repo-id : epel
Repo-revision : 1622594593
Repo-updated : Wed 02 Jun 2021 08:45:48 AM CST
Repo-baseurl : http://mirrors.aliyun.com/epel/8/Everything/x86_64/
-----
Repo-id : epel-modular
Repo-revision : 1621734663
Repo-updated : Sun 23 May 2021 09:51:18 AM CST
Repo-baseurl : http://yum.tbsite.net/epel/8/Modular/x86_64/
标签8.2GA-210611

活动

xingwei-liu

2021-06-07 11:42

开发人员   ~0000249

最后编辑: 2021-06-07 11:43

anolis GA镜像安装虚拟机
安装dde-calendar
执行dde-calendar --help
问题未复现
dde-calendar.png (23,759 字节)   
dde-calendar.png (23,759 字节)   

yinyongchen

2021-06-23 16:21

报告者   ~0000280

目前怀疑是测试环境镜像差异导致,开发是否使用的是带图形化组件的镜像安装?
测试机目前默认均使用最小安装(无图形化组件),执行二进制时会出现core dump,
按之前对齐的方案是在测试环境中先安装dde的全部组件再执行二进制,但目前测试验证时仍会发生core dump
只有在设置环境变量 QT_QPA_PLATFORM=offscreen 时才可以正常显示,请开发看下是否正常?
image.png (27,883 字节)   
image.png (27,883 字节)   

xingwei-liu

2021-06-23 18:00

开发人员   ~0000284

根据您的描述,您应该是在tty的状态下进行的测试,dde环境的相关包需要在图形界面的环境中进行测试;
设置环境变量QT_QPA_PLATFORM=offscreen ,可以使qt应用运行在无图形的环境中,所以执行命令会正常显示;
如果可以的话,可以在图形界面的环境中进行测试。

问题历史

日期 用户名 字段 更改
2021-06-02 15:36 yinyongchen 新建问题
2021-06-06 14:58 jacobwang 分派给 => xingwei-liu
2021-06-06 14:58 jacobwang 优先级 中 => 低
2021-06-06 14:58 jacobwang 状态 新建 => 已分配
2021-06-07 11:13 cherryliyumei 添加标签: 8.2GA-210611
2021-06-07 11:42 xingwei-liu 注释已添加: 0000249
2021-06-07 11:42 xingwei-liu 添加了以下文件:: dde-calendar.png
2021-06-07 11:43 xingwei-liu 注释已编辑: 0000249
2021-06-23 16:21 yinyongchen 注释已添加: 0000280
2021-06-23 16:21 yinyongchen 添加了以下文件:: image.png
2021-06-23 18:00 xingwei-liu 注释已添加: 0000284
2021-06-24 09:19 xingwei-liu 状态 已分配 => 已解决
2021-06-24 09:19 xingwei-liu 处理状况 未处理 => 已修正