Comments (2)
今天重新测试了一下,不用 Arbiter 的情况如下:
Arbiter 的配置如下:
直接在 GUI 下启动的情况下挂掉了
result 文件如下
可能之前写了尾递归,但是之前测试我没有开 -O2
,看了一下汇编不会优化,挺怪的。但是这个测试应该比较有代表性。
开了栈之后就 OK 了
from oi-wiki.
感谢您的反馈,但是我现在已经AFO了😇。
我这个commit确实是在上古版本的NOI Linux下做的,当时评测如果不这么跑的话确实是会RE的。但现在NOI Linux更新了,我也不清楚他是怎么搞的,我也不想再下一个NOI Linux去检查这个问题了。
方便的话,欢迎您自己提交一个PR来修改这个描述。
关于如何验证这个情况,您可以做一下这些测试:
在终端中直接运行这个程序,观测是否会segmentation fault。确定这个程序是否本身就是会使用大量栈的。注意保持编译选项一致,避免编译器优化影响结果(例如可能进行的尾递归优化)。(我不清楚能不能直接使用arbiter编译出来的程序,可以的话直接用是更好的)
在终端中输入 ulimit -s
,程序会输出当前环境下允许使用的栈大小。用这个命令可以检查一下NOI Linux是否是改了默认栈设置,使得所有程序都可以直接跑而不会爆栈。我本地WSL会返回8192,对应8M的默认值。
from oi-wiki.
Related Issues (20)
- [内容有误] 支配树页面 typo HOT 5
- 关于 TimSort HOT 1
- [RFC] helloworld中,可以添加 std::cout 写法 HOT 1
- 关于评论区 HOT 3
- pair 中 Dijkstra 代码的错误 HOT 3
- [BUG] qq群链接挂了 HOT 1
- [内容改进] 连分数与 Stern-Brocot 树页面内容改进
- Add 查理线段树
- Add 线段树新写法
- Add CLion C/C++单文件运行介绍 HOT 1
- [内容改进] 关于倍增后缀数组部分的常数优化 HOT 5
- [BUG] task-handler 文件中 git log 格式错误 HOT 1
- [内容有误] 红黑树-删除后的平衡维护-case5 中的颜色判断与对应代码 HOT 1
- [内容有误] 左偏树页面中「棘手的操作」代码在 C++17 及以上有误 HOT 3
- [内容有误] 线段树中《线段树的区间修改与懒惰标记》一节的第二张图疑似有误 HOT 4
- [内容有误] 平衡因子定义出错 HOT 3
- [内容有误] 红黑树的性质少了一条
- O(1) 异或和 HOT 2
- [内容有误] Delaunay 三角剖分的示例代码时间复杂度错误 HOT 1
- Add 另一类特殊图上 Dinic 的时间复杂度分析 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oi-wiki.