[SOLVED] Debugging kernel, How ?

Status
Not open for further replies.

Raady Here

Full Member level 5
Joined
Jun 8, 2013
Messages
242
Helped
26
Reputation
52
Reaction score
26
Trophy points
28
Location
India
Visit site
Activity points
1,571
Hi,

If I was given a crashed or hanged up kernel , I want to analyse what had happened ?

How to start debugging the kernel ? Is there any link related so that I can understand better or any one can send steps and procedure to debug a kernel.

Regards,
Raady.
 

you should get a memory dump...................the rest is art and skill and hard work
 

As first think, you should understand what crash your kernel. Is it a vanilla one? Are you writing a module?
Before tol debug a kernel isfundemental to know what is the issue.
Try dmesg and or syslog.
To debug kernel is very difficults and is impossible to be described as a linear sequence of steps.

Lollo
 


My teacher had given me a crashed kernel zimage and asked me to debug.
I want to know where to start it ?

I have seen some in searching it could be done using backtrace / ltrace/strace. But I couldn't find any documentation regarding that , using how and debug.
I want to know any links which has steps to follow.

Regards,
Raady.
 

What do you mean with 'crashed kernel zimage'... a core dump?
If you have yes ,you have a snapshot of the crash situation and you can debug it by gdb, too. I hope for you that the kernel has bee compiled with debug options enabled

Lollo
 

As first think, you should understand what crash your kernel. Is it a vanilla one? Are you writing a module?
Before tol debug a kernel isfundemental to know what is the issue.
Try dmesg and or syslog.
To debug kernel is very difficults and is impossible to be described as a linear sequence of steps.



**broken link removed**
**broken link removed**
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…