-
Notifications
You must be signed in to change notification settings - Fork 320
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
lab1运行结果不对 #148
Labels
question
Further information is requested
Comments
wx 群里其实有过两次讨论这个问题。应该确实是数组过大的问题,导致启动栈溢出了
|
好的,问题解决了,非常感谢。 |
请问第一种解决方法该如何实现呢?
|
这里是因为,array 的元素要求实现 Copy Trait,而我们的
|
太感谢了! |
大佬想请教下,是怎么debug 得出是启动栈溢出的结论的?有什么调试方法可以分享一下吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在TCB中加入syscall_times时运行结果[FAIL] not found <get_time OK13047! (\d+)>,在ch3b_sleep中get_time()得到的是0,无法通过测试,去掉syscall_times后其他的都通过了,只有[FAIL] not found ,ch3_taskinfo.rs无法比较syscall_times不能通过,之前有个一样的问题#95
有人回答说是因为TCB里面放一个500大小的数组太大了, 似乎是内存的问题, 你改成5就可以了. btw 似乎这样实现的性能比较低,但是如果改成大小为5的数组的话,ch3_taskinfo.rs 中assert_eq!(1, info.syscall_times[SYSCALL_TASK_INFO]);SYSCALL_TASK_INFO是410,还是不能通过。
The text was updated successfully, but these errors were encountered: