Installation problems

Hi Gurus

I have a driver which I am trying to install. But installation of the
driver is breaking into the debugger and giving a page fault error

page fault(0Eh) fault 0000

Well, the culprit seems to be the KegetCurrentIrql(). On removing the
instances of this function from my code, there is no problem of
installation. How can installation cause a page fault error?? Is there
some other problem with my driver?? wat could that be? Am I using the
Kegetcurrentirql() correctly??

ASSERT(Kegetcurrentirql()<=0x02); //checking for dispatch level or less.

Thanks in advance
Arijit


Arijit Bhattacharyya
Heidjerhof 3,
Room Number 154,
30625 Hannover,
Germany.
Phone number:+49-0511-1325993, +49-0176-24051109

E-mail:xxxxx@fht-esslingen.de

I had one instance like this if it matches yours.

Are you displaying any unicode string some ware like-

DbgPrint(“\nfullFileNameWrt:%wZ!”,&fullFileNameWrt);

Using %wZ at IRQL > 0 gives a page fault(0Eh)

-a

-----Original Message-----
From: Arijit Bhattacharyya [mailto:xxxxx@fht-esslingen.de]
Sent: Monday, October 18, 2004 3:57 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Installation problems

Hi Gurus

I have a driver which I am trying to install. But installation of the
driver is breaking into the debugger and giving a page fault error

page fault(0Eh) fault 0000

Well, the culprit seems to be the KegetCurrentIrql(). On removing the
instances of this function from my code, there is no problem of
installation. How can installation cause a page fault error?? Is there
some other problem with my driver?? wat could that be? Am I using the
Kegetcurrentirql() correctly??

ASSERT(Kegetcurrentirql()<=0x02); //checking for dispatch level or less.

Thanks in advance
Arijit


Arijit Bhattacharyya
Heidjerhof 3,
Room Number 154,
30625 Hannover,
Germany.
Phone number:+49-0511-1325993, +49-0176-24051109

E-mail:xxxxx@fht-esslingen.de


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com

I get the problem only while asserting the IRQL
And i have the assert on passive level

I had one instance like this if it matches yours.

Are you displaying any unicode string some ware like-

DbgPrint(“\nfullFileNameWrt:%wZ!”,&fullFileNameWrt);

Using %wZ at IRQL > 0 gives a page fault(0Eh)

-a

-----Original Message-----
From: Arijit Bhattacharyya [mailto:xxxxx@fht-esslingen.de]
Sent: Monday, October 18, 2004 3:57 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Installation problems

Hi Gurus

I have a driver which I am trying to install. But installation of the
driver is breaking into the debugger and giving a page fault error

page fault(0Eh) fault 0000

Well, the culprit seems to be the KegetCurrentIrql(). On removing the
instances of this function from my code, there is no problem of
installation. How can installation cause a page fault error?? Is there
some other problem with my driver?? wat could that be? Am I using the
Kegetcurrentirql() correctly??

ASSERT(Kegetcurrentirql()<=0x02); //checking for dispatch level or less.

Thanks in advance
Arijit


Arijit Bhattacharyya
Heidjerhof 3,
Room Number 154,
30625 Hannover,
Germany.
Phone number:+49-0511-1325993, +49-0176-24051109

E-mail:xxxxx@fht-esslingen.de


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Arijit Bhattacharyya
Heidjerhof 3,
Room Number 154,
30625 Hannover,
Germany.
Phone number:+49-0511-1325993, +49-0176-24051109

E-mail:xxxxx@fht-esslingen.de

Could you supply the !analyze -v info, so that we can see what’s on the
stack. If you’re struggling with a debug issue like this, there’s no such
thing as “too much information”, whilst it’s very easy to have “not enough
information”.

Obviously, you can replace any function/module name that would be
indicating which device/company is involved with “mydriver” and
“myfunction”, so that your “anonymity” is ensured.


Mats

xxxxx@lists.osr.com wrote on 10/18/2004 11:27:15 AM:

Hi Gurus

I have a driver which I am trying to install. But installation of the
driver is breaking into the debugger and giving a page fault error

page fault(0Eh) fault 0000

Well, the culprit seems to be the KegetCurrentIrql(). On removing the
instances of this function from my code, there is no problem of
installation. How can installation cause a page fault error?? Is there
some other problem with my driver?? wat could that be? Am I using the
Kegetcurrentirql() correctly??

ASSERT(Kegetcurrentirql()<=0x02); //checking for dispatch level or less.

Thanks in advance
Arijit


Arijit Bhattacharyya
Heidjerhof 3,
Room Number 154,
30625 Hannover,
Germany.
Phone number:+49-0511-1325993, +49-0176-24051109

E-mail:xxxxx@fht-esslingen.de


Questions? First check the Kernel Driver FAQ at http://www.
osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

ForwardSourceID:NT00005846

Arijit Bhattacharyya wrote:

Hi Gurus

I have a driver which I am trying to install. But installation of the
driver is breaking into the debugger and giving a page fault error

page fault(0Eh) fault 0000

Well, the culprit seems to be the KegetCurrentIrql(). On removing the
instances of this function from my code, there is no problem of
installation. How can installation cause a page fault error?? Is there
some other problem with my driver?? wat could that be? Am I using the
Kegetcurrentirql() correctly??

I have seen instances where the linker forgot to generate an import
table entry for KeGetCurrentIrql. This meant that when KeGetCurrentIrql
was called no dynamic link fixups had been done and the system branched
to 0.

Aso others have said. Get a backtrace from !analyze -v and we will be
able to give much more informed help.

Mike

> -----Original Message-----

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mike Pumford
Sent: Monday, October 18, 2004 7:59 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Installation problems

Arijit Bhattacharyya wrote:

> Hi Gurus
>
> I have a driver which I am trying to install. But
installation of the
> driver is breaking into the debugger and giving a page fault error
>
> page fault(0Eh) fault 0000
>
> Well, the culprit seems to be the KegetCurrentIrql(). On
removing the
> instances of this function from my code, there is no problem of
> installation. How can installation cause a page fault
error?? Is there
> some other problem with my driver?? wat could that be? Am I
using the
> Kegetcurrentirql() correctly??
>
I have seen instances where the linker forgot to generate an
import table entry for KeGetCurrentIrql. This meant that when
KeGetCurrentIrql was called no dynamic link fixups had been
done and the system branched to 0.

Eh? I’ve never seen that.

Aso others have said. Get a backtrace from !analyze -v and we
will be able to give much more informed help.

Mike


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
xxxxx@lists.osr.com

The only time I have ever seen something like this was with a stupid hack to
build a driver from Visual Studio ignoring the build process.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

“Mark Roddy” wrote in message news:xxxxx@ntdev…
>
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Mike Pumford
> > Sent: Monday, October 18, 2004 7:59 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] Installation problems
> >
> > Arijit Bhattacharyya wrote:
> >
> > > Hi Gurus
> > >
> > > I have a driver which I am trying to install. But
> > installation of the
> > > driver is breaking into the debugger and giving a page fault error
> > >
> > > page fault(0Eh) fault 0000
> > >
> > > Well, the culprit seems to be the KegetCurrentIrql(). On
> > removing the
> > > instances of this function from my code, there is no problem of
> > > installation. How can installation cause a page fault
> > error?? Is there
> > > some other problem with my driver?? wat could that be? Am I
> > using the
> > > Kegetcurrentirql() correctly??
> > >
> > I have seen instances where the linker forgot to generate an
> > import table entry for KeGetCurrentIrql. This meant that when
> > KeGetCurrentIrql was called no dynamic link fixups had been
> > done and the system branched to 0.
> >
>
> Eh? I’ve never seen that.
>
>
> > Aso others have said. Get a backtrace from !analyze -v and we
> > will be able to give much more informed help.
> >
> > Mike
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@hollistech.com To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
>
>
>

Don Burn wrote:

The only time I have ever seen something like this was with a stupid hack to
build a driver from Visual Studio ignoring the build process.

Nope. All done using DDK build environment using the DriverWorks C++
libraries. This was an NDIS miniport spread over multiple directories
with the final driver being build from component libraries. Never
worried about it too much as I managed to find a workaround.

Mike

Ok, so still non-standard (DriverWorks C++ is far from standard).


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

“Mike Pumford” wrote in message
news:xxxxx@ntdev…
> Don Burn wrote:
>
> > The only time I have ever seen something like this was with a stupid
hack to
> > build a driver from Visual Studio ignoring the build process.
> >
> >
> Nope. All done using DDK build environment using the DriverWorks C++
> libraries. This was an NDIS miniport spread over multiple directories
> with the final driver being build from component libraries. Never
> worried about it too much as I managed to find a workaround.
>
> Mike
>
>

C++ isn’t standard? Maybe it isn’t the norm for drivers, but it certainly
isn’t a hack, nor would I reach out to call it non-standard. DriverWorks
doesn’t do anything outside of the language that I am aware of. So, either
the linker works or it does not. I have never seen this problem though, and
I have used DriverWorks/DriverNetworks a bit.


Bill McKenzie
Software Engineer - Prism 802.11 Wireless Solutions
Conexant Systems, Inc.

“Don Burn” wrote in message news:xxxxx@ntdev…
> Ok, so still non-standard (DriverWorks C++ is far from standard).
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>
>
> “Mike Pumford” wrote in message
> news:xxxxx@ntdev…
> > Don Burn wrote:
> >
> > > The only time I have ever seen something like this was with a stupid
> hack to
> > > build a driver from Visual Studio ignoring the build process.
> > >
> > >
> > Nope. All done using DDK build environment using the DriverWorks C++
> > libraries. This was an NDIS miniport spread over multiple directories
> > with the final driver being build from component libraries. Never
> > worried about it too much as I managed to find a workaround.
> >
> > Mike
> >
> >
>
>
>