forked from Bananymous/banan-os
				
			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:
		
							parent
							
								
									3ad0d2328d
								
							
						
					
					
						commit
						d9068eebb5
					
				| 
						 | 
					@ -315,7 +315,7 @@ no_memory:
 | 
				
			||||||
	dwarnln("could not allocate {H} bytes ({} aligned)", size, align);
 | 
						dwarnln("could not allocate {H} bytes ({} aligned)", size, align);
 | 
				
			||||||
	dwarnln(" {6H} free (fixed)", s_kmalloc_fixed_info.free);
 | 
						dwarnln(" {6H} free (fixed)", s_kmalloc_fixed_info.free);
 | 
				
			||||||
	dwarnln(" {6H} free", s_kmalloc_info.free);
 | 
						dwarnln(" {6H} free", s_kmalloc_info.free);
 | 
				
			||||||
	Debug::dump_stack_trace();
 | 
						//Debug::dump_stack_trace();
 | 
				
			||||||
	ASSERT(!is_corrupted());
 | 
						ASSERT(!is_corrupted());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return nullptr;
 | 
						return nullptr;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -189,7 +189,8 @@ static void init2(void* tty1)
 | 
				
			||||||
	MUST(Process::create_kernel(
 | 
						MUST(Process::create_kernel(
 | 
				
			||||||
		[](void*)
 | 
							[](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();
 | 
								Process::current().exit();
 | 
				
			||||||
		}, nullptr
 | 
							}, nullptr
 | 
				
			||||||
	));
 | 
						));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue