Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当程序的freopen非法时,LemonLime将整体崩溃 #176

Closed
Cyril-44 opened this issue Sep 10, 2022 · 8 comments
Closed

当程序的freopen非法时,LemonLime将整体崩溃 #176

Cyril-44 opened this issue Sep 10, 2022 · 8 comments
Labels
整叉劈了 | Bug 有一些不该发生的东西发生了

Comments

@Cyril-44
Copy link

  • 描述一下这个 Bug

如题,当有同学写成freopen("*.out","r",stdout)或不加freopen时,LemonLime会崩溃

  • 如何复现

重现 Bug 的步骤:

  1. 新建magic题目(文件读写)
  2. 新建cpp文件并在在程序里写:
#include <stdio.h>
int main() {
  freopen("magic.in", "r", stdin);
  freopen("magic.out", "r", stdout);
  return 0;
}

或者

int main() {
  return 0;
}
  1. 复制到source/example文件夹
  2. 测试全部
  3. 崩溃啦~
  • 期望获得的结果

FileIO Error 文件读写错误 / Runtime Error 运行时错误

  • 环境:

版本代号: 0.3.4:223
系统: Windows 11 22H2 (内部版本 22621.382)

  • 其他信息
虽然那些学生讲了多少遍都不听,但是我总不能一个一个查吧。。。
@Cyril-44 Cyril-44 added the 整叉劈了 | Bug 有一些不该发生的东西发生了 label Sep 10, 2022
@CoelacanthusHex CoelacanthusHex added the OS: Win Windows 系统相关的问题 label Sep 10, 2022
@alphagocc
Copy link
Member

无法复现

@Cyril-44
Copy link
Author

???

@Cyril-44
Copy link
Author

怎么会呢

@Cyril-44
Copy link
Author

要不我录个视频吧

@CoelacanthusHex CoelacanthusHex added the 需要更多信息 | Question 就这点信息,不好干活啊 label Sep 10, 2022
@Cyril-44
Copy link
Author

2022-09-10.23-32-32.mp4

@alphagocc
Copy link
Member

9d9b221

@prayerhgq
Copy link

0.3.3没有这个问题,0.3.4确实有这个问题。

@alphagocc alphagocc removed 需要更多信息 | Question 就这点信息,不好干活啊 OS: Win Windows 系统相关的问题 labels Sep 11, 2022
@alphagocc alphagocc pinned this issue Sep 11, 2022
@alphagocc
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
整叉劈了 | Bug 有一些不该发生的东西发生了
Projects
None yet
Development

No branches or pull requests

4 participants