Error paging when kmalloc function is called
-
- Posts: 12
- Joined: Tue May 08, 2012 6:19 am
Error paging when kmalloc function is called
Hi, I'm using the file heap.c (http://code.google.com/p/jamesm-tutoria ... ce/browse/ # svn 2Fthe_heap% 2Fbranches% 2Fsrc%) of JamesM, but sometimes I call the function kmalloc error occurs paging. In another tutorial (http://www.jamesmolloy.co.uk/tutorial_html/7.-The 20Heap.html%), the same error does not happen. I'm finding it strange because not always the error occurs. Please can someone help me. Thank you.
Lemon X OS
Re: Error paging when kmalloc function is called
It's quite normal for memory allocation problems to seem intermittent. If there are bugs in your memory management they may depend on the usage pattern. There is nothing special here, the answer is to debug.I'm finding it strange because not always the error occurs. Please can someone help me. Thank you.
If a trainstation is where trains stop, what is a workstation ?
Re: Error paging when kmalloc function is called
Try debugging it. It's a lost art.AlexanderSilvaB wrote:Hi, I'm using the file heap.c (http://code.google.com/p/jamesm-tutoria ... ce/browse/ # svn 2Fthe_heap% 2Fbranches% 2Fsrc%) of JamesM, but sometimes I call the function kmalloc error occurs paging. In another tutorial (http://www.jamesmolloy.co.uk/tutorial_html/7.-The 20Heap.html%), the same error does not happen. I'm finding it strange because not always the error occurs. Please can someone help me. Thank you.
-
- Posts: 12
- Joined: Tue May 08, 2012 6:19 am
Re: Error paging when kmalloc function is called
Here is my debug logs on Bochs (
) and VirtualBox ( ), I understand little about it...Lemon X OS
-
- Posts: 12
- Joined: Tue May 08, 2012 6:19 am
Re: Error paging when kmalloc function is called
berkus You're right, I'm doing things quickly, first I have to learn more about all this... Thank you...
Lemon X OS
Re: Error paging when kmalloc function is called
That is not debugging. That is outsourcing debugging.AlexanderSilvaB wrote:Here is my debug logs on Bochs () and VirtualBox ( ), I understand little about it...
Re: Error paging when kmalloc function is called
I have ever used this code , but I have not found bugs on kmalloc (fit some problems).
-
- Posts: 12
- Joined: Tue May 08, 2012 6:19 am
Re: Error paging when kmalloc function is called
I finally managed to solve the problem was a bug in my code GDT that was influencing the allocation of memory. Thank you all ...
Lemon X OS