GPF in Win98

Dear All, I have recently started using Softice on my win98 machine.
Occasionally I get the following error reported by softice. I don’t know
what it means and how can I use that information to start debugging the
problem in the driver.

"Break due to general protection Fault (0Dh) : Fault=0000
MSR LastExceptionFromIp=0041340C
MSR LastExceptionToIp=0047883C "

Can somebody help decode this message line by line. Yes, I don’t know what
GPF (0D or 06) means either !

Thanks a lot for your help.
regards,
Hassan


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

First line means you have a general protection fault. Fault=0
means it did not happen while loading a selector. 5.11 of
24319202 “Intel Architecture Software Developer?s Manual Volume 3:
System Programming” contains a full description of possible reasons.
MSR LastExceptionFromIP is refering to a register on the Intel
architure which stores the address of the last branching instruction
before the exception occurs. The LastExceptionToIp shows where that
branch went.

An example:

401000 nop
401001 jz 401003
401002 nop
401003 SOMETHING_THAT_CAUSES_A_GENERAL_PROTECTION_FAULT

In this case softice would read
"Break due to general protection Fault (0Dh) : Fault=0000
MSR LastExceptionFromIp=00401001

If the jnz jumped it would read
MSR LastExceptionToIp=401003
if not it’d read
MSR LastExceptionToIp=401002

Forgive my ramblings,
Anders

P.s.
The above mentioned manual have a chapter on debugging. It’s all in
there.

Tuesday, July 10, 2001, 5:00:39 PM, you wrote:

HIK> Dear All, I have recently started using Softice on my win98 machine.
HIK> Occasionally I get the following error reported by softice. I don’t know
HIK> what it means and how can I use that information to start debugging the
HIK> problem in the driver.

HIK> "Break due to general protection Fault (0Dh) : Fault=0000
HIK> MSR LastExceptionFromIp=0041340C
HIK> MSR LastExceptionToIp=0047883C "

HIK> Can somebody help decode this message line by line. Yes, I don’t know what
HIK> GPF (0D or 06) means either !

HIK> Thanks a lot for your help.
HIK> regards,
HIK> Hassan

HIK> _________________________________________________________________________
HIK> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

HIK> —
HIK> You are currently subscribed to ntdev as: xxxxx@flaffer.com
HIK> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Best regards,
Anders mailto:xxxxx@flaffer.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Many many thanks Anders !
regards,
Hassan

From: Anders Fogh
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Re: GPF in Win98
>Date: Wed, 11 Jul 2001 22:02:00 -0700
>
>First line means you have a general protection fault. Fault=0
>means it did not happen while loading a selector. 5.11 of
>24319202 “Intel Architecture Software Developer’s Manual Volume 3:
>System Programming” contains a full description of possible reasons.
>MSR LastExceptionFromIP is refering to a register on the Intel
>architure which stores the address of the last branching instruction
>before the exception occurs. The LastExceptionToIp shows where that
>branch went.
>
>An example:
>
>401000 nop
>401001 jz 401003
>401002 nop
>401003 SOMETHING_THAT_CAUSES_A_GENERAL_PROTECTION_FAULT
>
>In this case softice would read
>"Break due to general protection Fault (0Dh) : Fault=0000
>MSR LastExceptionFromIp=00401001
>
>If the jnz jumped it would read
>MSR LastExceptionToIp=401003
>if not it’d read
>MSR LastExceptionToIp=401002
>
>Forgive my ramblings,
>Anders
>
>P.s.
>The above mentioned manual have a chapter on debugging. It’s all in
>there.
>
>
>Tuesday, July 10, 2001, 5:00:39 PM, you wrote:
>
>HIK> Dear All, I have recently started using Softice on my win98 machine.
>HIK> Occasionally I get the following error reported by softice. I don’t
>know
>HIK> what it means and how can I use that information to start debugging
>the
>HIK> problem in the driver.
>
>HIK> "Break due to general protection Fault (0Dh) : Fault=0000
>HIK> MSR LastExceptionFromIp=0041340C
>HIK> MSR LastExceptionToIp=0047883C "
>
>HIK> Can somebody help decode this message line by line. Yes, I don’t know
>what
>HIK> GPF (0D or 06) means either !
>
>HIK> Thanks a lot for your help.
>HIK> regards,
>HIK> Hassan
>
>HIK>
>
>HIK> Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
>
>
>HIK> —
>HIK> You are currently subscribed to ntdev as: xxxxx@flaffer.com
>HIK> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
>–
>Best regards,
> Anders mailto:xxxxx@flaffer.com
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com