Kernel: kmalloc does not dump stack trace
dump_stack_trace() page faults and i dont feel like debugging this now :)
This commit is contained in:
@@ -315,7 +315,7 @@ no_memory:
|
||||
dwarnln("could not allocate {H} bytes ({} aligned)", size, align);
|
||||
dwarnln(" {6H} free (fixed)", s_kmalloc_fixed_info.free);
|
||||
dwarnln(" {6H} free", s_kmalloc_info.free);
|
||||
Debug::dump_stack_trace();
|
||||
//Debug::dump_stack_trace();
|
||||
ASSERT(!is_corrupted());
|
||||
|
||||
return nullptr;
|
||||
|
||||
@@ -189,7 +189,8 @@ static void init2(void* tty1)
|
||||
MUST(Process::create_kernel(
|
||||
[](void*)
|
||||
{
|
||||
MUST(LibELF::ELF::load_from_file("/bin/test"sv));
|
||||
if (auto res = LibELF::ELF::load_from_file("/boot/banan-os.kernel"sv); res.is_error())
|
||||
dwarnln("{}", res.error());
|
||||
Process::current().exit();
|
||||
}, nullptr
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user