发新话题
打印

请教程序运行时内核出错问题!

请教程序运行时内核出错问题!

出错信息显示如下:Unable to handle kernel NULL pointer dereference at virtual address 00000000                                                                                    
printing eip:                                                                                                                                                  
c021f369                                                                                                                                                        
*pde = 00000000                                                                                                                                                
Oops: 0000                                                                                                                                                      
CPU:    0                                                                                                                                                      
EIP:    0010:[<c021f369>]    Not tainted                                                                                                                        
EFLAGS: 00010286                                                                                                                                                
eax: 00000000   ebx: 00000001   ecx: c7dcfc00   edx: 00000000                                                                                                   
esi: c6cdfe3c   edi: c6cdfe2c   ebp: c7dcfc00   esp: c6cdfc44                                                                                                   
ds: 0018   es: 0018   ss: 0018                                                                                                                                 
Process pluto (pid: 988, stackpage=c6cdf000)                                                                                                                    
Stack: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000                                                                                 
       00000000 00000040 00000040 c7d39f30 c6cdfcb0 c01fb021 c7d39ed8 c7d39ef0                                                                                 
       c7d39ed8 c6cdfcb0 00000282 c6eb9220 c7d39ed8 c6cdfcb0 c6eb9230 c01f4176                                                                                 
Call Trace: [<c01fb021>] [<c01f4176>] [<c01e43fc>] [<c01f5196>] [<c01f4fe0>]                                                                                    
   [<c01f4fe0>] [<c01f8551>] [<c01f2206>] [<c01b191c>] [<c010ee1a>] [<c01b1b47>]                                                                                
   [<c012ca16>] [<c0106ceb>]                                                                                                                                    
                                                                                                                                                               
Code: 66 83 38 0a 0f 85 14 01 00 00 6a 00 83 c0 08 50 e8 52 74 fe                                                                                               

请教高手该如何解决?万分感谢!

      

TOP

什么情况下出这问题的,说清楚      

TOP

我曾遇到过相同的问题,并找到了出错原因:程序中current->mm为空即current->mm==NULL,但程序却试图访问current->mm所指结构中的分量。      

TOP

在用户程序中,程序访问了空指针所指的变量,出错是:segmentation fault(core dumped);在内核程序中,程序访问了空指针所指的变量,就会产生上面的错误。      

TOP

发新话题