-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Bug] 多线程情况下触发用户态代码段的缺页异常处理失败 #9854
Labels
bug
This PR/issue is a bug in the current code.
Comments
可以确认下,k230上不使用v指令时是否存在问题。k230的v指令,感觉在rt-smart支持上并不算完好,导致上下文切换栈深度太深了 |
确认过这个示例运行时没执行到v指令,因为我的qemu6不支持v指令,当时qemu运行时编译内核没开v支持也没报错。这里只是一个单纯的缺页处理不完善的问题 |
用这个示例在k230第一次运行能触发数据区的缺页处理异常(原因同上)
|
这个问题是否也可以尝试在aarch64平台上验证下? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RT-Thread Version
master
Hardware Type/Architectures
qemu-virt64-riscv/k230
Develop Toolchain
GCC
Describe the bug
触发问题的代码
编译器
针对k230带V指令的gcc13(通用编译器gcc10无法触发)
现象描述
当两个线程同时触发同一指令地址的缺页异常时,一个线程成功映射页,另一个线程处理这个异常时被判定为权限问题导致异常处理失败
Other additional context
No response
The text was updated successfully, but these errors were encountered: