kdb shows some wrong function in stack trace...

Probhas Chandra Patra probhas.patra at wipro.com
Tue Dec 18 06:00:01 PST 2001


Hi,

I am porting the IPSec from FreeBsd to LINUX. I am debugging the kernel
rigth now. I am facing a problem with KDB(kernel version 2.4.2). I ran
some applications(IPSec related). During the run of one of the
applications, the kernel paniced throwing up the following message:

" Unable to handle null pointer at the address ...."

At that point I noted down the instruction pointer (eip value) and
traced the stack (using the command 'bt'). The stack shows the function
in which the kernel paniced (let's say the function is 'X').

After that I rebooted the machine and did the following :

" gbd -c /proc/kcore vmlinux"

and took assembly dump by giving the following command:
(gdb) disassemble <eip value>

The assembly dump shows that the eip is not within the scope of the
function 'X' (that is shown in the stack trace)!

Has anybody faced this kind of problem earlier? Please help me regarding
this.

Thanks,
Probhas

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Wipro_Disclaimer.txt
Url: http://oss.sgi.com/pipermail/kdb/attachments/20011218/ccf4465d/attachment.txt 


More information about the kdb mailing list