-
-
Notifications
You must be signed in to change notification settings - Fork 141
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 REPORT] 程序启动时slabmalloc在分配内存时panic #1045
Comments
使用 |
试了二十几次,没有复现一切正常 |
你确定你本地的版本是最新的吗?git log看看? |
我也遇到这个问题,并且几次复现都跟pci有关,在pci初始化之后才会出现。是不是最近啥改动导致了内存越界? |
刚开始pull最新主线后运行很容易触发(vnc and 无图形都会),基本上一次编译正常,再编译一次就出现这个bug。我尝试退到这个版本 #1009 ,并没有这样的问题。最后我切回主线之后发现已经触发不了这个bug了,有什么特定的触发条件吗? |
我也是同样的。并且只要出现bug的时候,如果不重新编译,只是反复运行的话,能稳定复现。但是make clean之后重新编译,又复现不了了 |
描述错误
启动阶段的时候slabmalloc在allocate内存时报错(概率性错误)
请填写您的电脑的信息:
重现步骤
make run启动内核
屏幕截图
其他上下文
位于slab.rs:40
ps: 我不清楚这里逻辑有误后Box::leak(boxed_page)会不会导致#1044的问题,maybe not?(QWQ)
系统日志
[ DEBUG ] (src/driver/base/device/bus.rs:300) bus 'virtio' add driver 'virtio_blk'
�[41m[ ERROR ] �[0m(src/lib.rs:115) Kernel Panic Occurred.
Location:
Message:
left: 2008
right: 0
Rust Panic Backtrace:
function:rust_begin_unwind() (+) 0518 address:0xffff800000247e66
function:core::panicking::panic_fmt() (+) 0027 address:0xffff80000036e27b
function:core::panicking::assert_failed_inner() (+) 0326 address:0xffff80000036e79e
function:core::panicking::assert_failed() (+) 0057 address:0xffff8000002ccec1
function:<slabmalloc::zone::ZoneAllocator as slabmalloc::Allocator>::refill() (+) 0771 address:0xffff8000002cf873
Current PCB:
The text was updated successfully, but these errors were encountered: