Skip to content

[BUG] ubuntu 24LTS 当使用sudo运行,将文件io重定向到stdio时评测结果总是“程序无法运行” #266

@LiuZiaoPeter

Description

@LiuZiaoPeter

Describe the bug
描述一下这个 Bug

如题

To Reproduce
如何复现
Steps to reproduce the behavior: 像下面这样写出重现 Bug 的步骤:

  1. 使用 sudo 运行 lemonlime
  2. 新建比赛 / 打开现有的比赛
  3. 新建试题 / 打开现有的试题
  4. 配置题目数据点(截图没截到)
  5. 点击题目,如图勾选“定向到标准输入”和/或“定向到标准输出
Image
  1. 评测选手程序,显示“程序不能运行”
Image

Expected behavior
期望获得的结果

选手程序应当正确运行

Screenshots
有截图吗?
If applicable, add screenshots to help explain your problem. 如果可以的话,附上屏幕截图来帮助表现 bug。

见上

Environment:
环境:

  • Version: 0.3.5 LemonLime-linux-qt6-x86_64-Release
  • OS: Ubuntu 24.04.3 LTS,虚拟机软件使用 VMWare Workstation 17 Pro 17.6.2 build-24409262,安装了 VMWare Tools,主机是 Windows11

Additional context
其他信息
Add any other context about the problem here. 如果,你还有想说的话……

Metadata

Metadata

Assignees

No one assigned

    Labels

    整叉劈了 | Bug有一些不该发生的东西发生了

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions