Skip to content

[Bug]: 安同 OS 更新 x86 运行时后,部分 32 位 Linux 及 Wine 应用无法启动 #31

Open

Description

@MingcongBai

Bug Description / 错误描述

安同 OS 近期打包了 LATX 1.6 的测试包,并尝试更新了其 x86 运行时组件 (emukit) 后,发现部分 32 位应用程序(如FTL: Faster Than Light 游戏)及 Wine 程序(包括 winecfg)无法启动,该问题与内核分页大小、Wine 版本似乎无关

Environment / 环境

操作系统: 安同 OS
Linux 内核版本: 6.14.0
GCC 版本: 14.2.0
GLIBC 版本: 2.40
LAT 版本号 / 提交 Hash: 1.5.3 ~ master

Steps to Reproduce / 重现步骤

如运行 winecfg 时,报错:

wine: chdir to /tmp/.wine-1000/server-10302-d80572 : 没有那个文件或目录

32 位 FTL 报错(64 位版本启动正常):

Image

安装安同 OS 后执行如下命令可复现问题环境:

oma upgrade -y
oma topics --opt-in latx-1.6.0
oma topics --opt-in emukit-202504

Expected Behavior / 预期行为

上述程序均应工作正常

Actual Behavior / 实际行为

见上

Screenshots or Logs / 截图或日志

见上

Severity / 严重性

Critical / 严重

Additional Information / 附加信息

No response

Activity

  1. added
    bug
    on Apr 3, 2025
  2. specialpointcentral commented on Apr 3, 2025

    @specialpointcentral
    Contributor

    请问在别的发行版本上能复现吗

  3. LaurenIsACoder commented on Apr 5, 2025

    @LaurenIsACoder
    Contributor

    目前手上没有安同系统,准备先在 loongnix 旧世界上手动解压 emukit 看能否可以复现,请问具体有什么 linux 应用可以复现吗?如果可以的话,linux 应用调试起来更方便。
    @MingcongBai

  4. MingcongBai commented on Apr 7, 2025

    @MingcongBai
    ContributorAuthor

    目前手上没有安同系统,准备先在 loongnix 旧世界上手动解压 emukit 看能否可以复现,请问具体有什么 linux 应用可以复现吗?如果可以的话,linux 应用调试起来更方便。 @MingcongBai

    最直观的是 Wine 本身,此外是正文中提到的 FTL 游戏,这个游戏有 32 及 64 位版本,可供比较

  5. LaurenIsACoder commented on Apr 15, 2025

    @LaurenIsACoder
    Contributor

    请使用 PR #48 测试看问题是否解决

  6. MingcongBai commented on Apr 15, 2025

    @MingcongBai
    ContributorAuthor

    请使用 PR #48 测试看问题是否解决

    测试发现 FTL 已可成功启动,但 Wine 依然起不来,这是 strace 记录:

    https://aosc.io/paste/detail?id=d8c6f029-49f2-4b7b-bed0-a21ddc5fdc10

    症状是 winecfg 启动时卡住,如果发送 SIGKILL,会看到如下错误:

    wine client error:0: wine client error:0: recvmsg: 连接被对方重置
    recvmsg: 连接被对方重置
    
  7. LaurenIsACoder commented on Apr 23, 2025

    @LaurenIsACoder
    Contributor

    请使用 PR #48 测试看问题是否解决

    测试发现 FTL 已可成功启动,但 Wine 依然起不来,这是 strace 记录:

    https://aosc.io/paste/detail?id=d8c6f029-49f2-4b7b-bed0-a21ddc5fdc10

    症状是 winecfg 启动时卡住,如果发送 SIGKILL,会看到如下错误:

    wine client error:0: wine client error:0: recvmsg: 连接被对方重置
    recvmsg: 连接被对方重置
    

    定位为 uapi 与 mesa libdrm 头文件中 struct drm_amdgpu_gem_va 数据结构不匹配导致,建议 OS 修复后复测,如无误可关闭该 issue。

  8. luzeng87 commented on Apr 24, 2025

    @luzeng87
    Contributor

    linux-user//ioctl/ioctl_type/type_amdgpu_drm.h uapi变了,这部分也需要调整,但需要考虑如何能够同时支持新老uapi.

     44 STRUCT(drm_amdgpu_gem_va,
     45     TYPE_INT,
     46     TYPE_INT,
     47     TYPE_INT,
     48     TYPE_INT,
     49     TYPE_ULONGLONG,
     50     TYPE_ULONGLONG,
     51     TYPE_ULONGLONG)
  9. LaurenIsACoder commented on Apr 27, 2025

    @LaurenIsACoder
    Contributor

    linux-user//ioctl/ioctl_type/type_amdgpu_drm.h uapi变了,这部分也需要调整,但需要考虑如何能够同时支持新老uapi.

    44 STRUCT(drm_amdgpu_gem_va,
    45 TYPE_INT,
    46 TYPE_INT,
    47 TYPE_INT,
    48 TYPE_INT,
    49 TYPE_ULONGLONG,
    50 TYPE_ULONGLONG,
    51 TYPE_ULONGLONG)

    LATX, fix: Detect drm_amdgpu_gem_va size and improve ioctl compatibility #60

  10. luzeng87 commented on Apr 30, 2025

    @luzeng87
    Contributor

    @MingcongBai Has this issue been resolved?

  11. MingcongBai commented on Apr 30, 2025

    @MingcongBai
    ContributorAuthor

    @MingcongBai Has this issue been resolved?

    抱歉,最近较为繁忙,上次测试时 Wine 依然无法启动,但 @liushuyu 反馈 FTL 应该已经可以启动

    我这边假期再次测试后反馈情况

  12. specialpointcentral commented on May 29, 2025

    @specialpointcentral
    Contributor

    @MingcongBai Has this issue been resolved?

    抱歉,最近较为繁忙,上次测试时 Wine 依然无法启动,但 @liushuyu 反馈 FTL 应该已经可以启动

    我这边假期再次测试后反馈情况

    请问有结果吗~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions