NULL pointer dereference....
Hi, I am seeing a kernel panic while i keep on reset my device (ARM based) . In one of the reset sequence ( not every immediate reset, after a random resets) i am seeing my platform device structure becoming NULL. The device pointer is one of the member in the my local driver structure. Interestingly it is a first variable in that structure. When the kernel panic happens when i check the other structure variables all are fine except the first 2 variables. ( device pointer is the first variable in that structure). In kernel is there any way that i can put a watch on the memory locations/variable updates? If it is possible please know me the procedure to do that. I appreciate your help. -- Regards, Murali N
Hi Murali... On Mon, Jan 17, 2011 at 15:57, Murali N <nalajala.murali@gmail.com> wrote:
In kernel is there any way that i can put a watch on the memory locations/variable updates? If it is possible please know me the procedure to do that.
The closest that I can think of are by using either kmemleak (it's in kernel debugging section when you configure kernel before compiling it) or putting it under emulator such as Qemu and hook gdb into it (thus making it like user space app running inside usual debugger). -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
participants (2)
-
Mulyadi Santosa -
Murali N