Memory problems in schedule()
Hi
I am trying to implement a different process scheduling algorithm in linux kernel 2.4.30. I am doing this as a hobby and am using User Mode Linux to test my changes. I have the following problems with the implement
1) Whenever I select a process to run using my algorithm the kernel panics with "Segfault with no mm" basically the "mm" field of the task_struct that I selected is empty. I don't understand why this should happen, since I have just added code to select a process and haven't modified any memory related code in the schedule() function.
2) I am able to run the UMLfied kernel under gdb, however the execution never halts even though I set several breakpoints. Also these breakpoints have not been set in interrupt handling code and I have compiled the code with -g option.
I have been stuck with these problems since a long time and would appreciate if someone could help me with it.
Thank you all.
- Vishal
Signature · 1 line
A dream is just a dream. A goal is a dream with a plan and a deadline.
Quoted 5 lines · Vishal Patil
1) Whenever I select a process to run using my algorithm the kernel panics with "Segfault with no mm" basically the "mm" field of the
task_structthat I selected is empty. I don't understand why this should happen, since I have just added code to select a process and haven't modified any memory related code in theschedule()function.
Start with a backtrace from the panic and debug it from there.
Quoted 4 lines
2) I am able to run the UMLfied kernel under gdb, however the execution never halts even though I set several breakpoints. Also these breakpoints have not been set in interrupt handling code and I have compiled the code with -g option.
UML and gdb versions? tt or skas mode?
Jeff
Jeff
Please find the answer to questions below,
Quoted 7 lines · Jeff Dike
Quoted 5 lines · Vishal Patil
1) Whenever I select a process to run using my algorithm the kernel panics with "Segfault with no mm" basically the "mm" field of the
task_structthat I selected is empty. I don't understand why this should happen, since I have just added code to select a process and haven't modified any memory related code in theschedule()function.
Quoted 8 lines
Start with a backtrace from the panic and debug it from there.
Quoted 4 lines
2) I am able to run the UMLfied kernel under gdb, however the execution never halts even though I set several breakpoints. Also these breakpoints have not been set in interrupt handling code and I have compiled the code with -g option.
UML and gdb versions? tt or skas mode?
GNU gdb Red Hat Linux (6.1post-1.20040607.41rh)
uml-patch-2.4.27-1
skas mode.
Thank you.
Quoted 2 lines
Jeff
Signature · 1 line
A dream is just a dream. A goal is a dream with a plan and a deadline.
Quoted 3 lines · Vishal Patil
GNU gdb Red Hat Linux (6.1post-1.20040607.41rh)
uml-patch-2.4.27-1
skas mode.
Disable CONFIG_MODE_TT. gdb seems confused by the exec that tt mode does early on.
Jeff