Unable to handle kernel NULL pointer dereference at virtual address 00000000问题的解决

简介: 今天在编译好内核模块后,安装内核模块memdev.ko的时候,出现了Unable to handle kernel NULL pointer dereference at virtual address 00000000等如图所示的问题:     在百度和google找了很多答案,明显就是跟指针有关系。

      今天在编译好内核模块后,安装内核模块memdev.ko的时候,出现了Unable to handle kernel NULL pointer dereference at virtual address 00000000等如图所示的问题:

 

 

在百度和google找了很多答案,明显就是跟指针有关系。。。访问了空指针什么的。。。

 

可是代码也有一些怎么找呢??

 

于是我想了一个办法,加入打印语句帮助我知道到底哪个函数出了问题!

 

果然,一下就找到了,如图:

 

 

于是,问题就迎刃而解了。。。

 

 

 

启发链接:

http://book.51cto.com/art/201112/308323.htm

http://blog.sina.com.cn/s/blog_4ab2ba570100y7fk.html

 

目录
相关文章
|
5月前
|
存储 Cloud Native Linux
Failed to open/create the internal network ‘HostInterfaceNetworking-VirtualBox Host-Only Ethernet
Failed to open/create the internal network ‘HostInterfaceNetworking-VirtualBox Host-Only Ethernet
|
10月前
|
存储 运维 Java
Unable to open socket file: target process not responding or HotSpot VM not loaded
在说问题之前,还是那句话,linux 系统一切皆文件。之所以这个错误,那肯定是某些文件有问题。经过查阅相关资料了解到如下: 1.java进程在启动时,在%TEMP%/hsperfdata_%USERNAME%路径下创建进程的临时文件。 %TEMP% 在windows系统中表示 windows的临时目录。一般在C:\Users\用户名\AppData\Local\Temp %TEMP% 在linux 系统中,一般在/tmp目录下
3281 0
|
11月前
|
Linux Windows
The Genymotion virtual device could not obtain an IP address
The Genymotion virtual device could not obtain an IP address
56 0
relocation R_X86_64_PC32 against symbol ff_pw_9 can not be used when making a shared object
relocation R_X86_64_PC32 against symbol ff_pw_9 can not be used when making a shared object
212 0
libgsm.a relocation R_X86_64_PC32 can not be used when making a shared object; recompile with -fPIC
libgsm.a relocation R_X86_64_PC32 can not be used when making a shared object; recompile with -fPIC
172 0
relocation R_X86_64_PC32 against symbol can not be used when making a shared object recompile with
relocation R_X86_64_PC32 against symbol can not be used when making a shared object recompile with
422 0
error:‘struct vm_fault‘ has no member named ‘virtual_address‘
error:‘struct vm_fault‘ has no member named ‘virtual_address‘
112 0
error:‘struct vm_fault‘ has no member named ‘virtual_address‘