Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > assert in usbport

Reply
Thread Tools Display Modes

assert in usbport

 
 
Tom Picard
Guest
Posts: n/a

 
      08-11-2005
trying to determine if my fast usb device is being plugged into a 1.1 host
on XP.
So I try getting what is called the direct client access to USB Bus
seems ok, get a pointer to the IsDeviceHighSpeed() function, it returns 1 on
ehci and 0 on uhci, that is good, no probelms.
Not interested in the interface any more so I
InterfaceDereference(BusInterfaceV1.BusContext) // identical parameter
passed to IsDeviceHigh....
and get an assert
<TEST_TRAP> c:\sandbox\usb\rhcproto\ms24nov03\hcd\usbport\busi f.c, line 116
Break instruction exception - code 80000003 (first chance)
nt!DbgBreakPoint:
8052a5cc cc int 3
0: kd>
continues ok
1. Is there an easier way to determine what I need to know? or
2. any more info why am I getting an assert here? would checked build give
me more details?

Note: I don't think I am supposed to call InterfaceReference()
but I tried that too and got an assert also

Thanks
tom
 
Reply With Quote
 
 
 
 
Scott Noone
Guest
Posts: n/a

 
      08-11-2005
Hi,

Looks more like a hardcoded breakpoint than an ASSERT to me...

Are you running a checked version of USBPORT? The free build on my XP dev
box shows this as the assembly for the dereference routine:

lkd> u usbport!USBPORT_BusInterfaceDereference
USBPORT!USBPORT_BusInterfaceDereference:
f65bf396 c20400 ret 0x4

So making that call doesn't actually do anything. I'd check out the listing
for the checked USBSTOR and see if it's just a DbgBreakPoint and a return or
if it looks like it's doing some other validation.

-scott

--
Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com

"Tom Picard" <> wrote in message
news:4130112C-774F-404C-BDC1-...
> trying to determine if my fast usb device is being plugged into a 1.1
> host
> on XP.
> So I try getting what is called the direct client access to USB Bus
> seems ok, get a pointer to the IsDeviceHighSpeed() function, it returns 1
> on
> ehci and 0 on uhci, that is good, no probelms.
> Not interested in the interface any more so I
> InterfaceDereference(BusInterfaceV1.BusContext) // identical parameter
> passed to IsDeviceHigh....
> and get an assert
> <TEST_TRAP> c:\sandbox\usb\rhcproto\ms24nov03\hcd\usbport\busi f.c, line
> 116
> Break instruction exception - code 80000003 (first chance)
> nt!DbgBreakPoint:
> 8052a5cc cc int 3
> 0: kd>
> continues ok
> 1. Is there an easier way to determine what I need to know? or
> 2. any more info why am I getting an assert here? would checked build
> give
> me more details?
>
> Note: I don't think I am supposed to call InterfaceReference()
> but I tried that too and got an assert also
>
> Thanks
> tom



 
Reply With Quote
 
Doron Holan [MS]
Guest
Posts: n/a

 
      08-12-2005
also, are you sure you are running released (and not beta) bits? the file
path does not look like a released binary to me.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Scott Noone" <> wrote in message
news:...
> Hi,
>
> Looks more like a hardcoded breakpoint than an ASSERT to me...
>
> Are you running a checked version of USBPORT? The free build on my XP dev
> box shows this as the assembly for the dereference routine:
>
> lkd> u usbport!USBPORT_BusInterfaceDereference
> USBPORT!USBPORT_BusInterfaceDereference:
> f65bf396 c20400 ret 0x4
>
> So making that call doesn't actually do anything. I'd check out the
> listing for the checked USBSTOR and see if it's just a DbgBreakPoint and a
> return or if it looks like it's doing some other validation.
>
> -scott
>
> --
> Scott Noone
> Software Engineer
> OSR Open Systems Resources, Inc.
> http://www.osronline.com
>
> "Tom Picard" <> wrote in message
> news:4130112C-774F-404C-BDC1-...
>> trying to determine if my fast usb device is being plugged into a 1.1
>> host
>> on XP.
>> So I try getting what is called the direct client access to USB Bus
>> seems ok, get a pointer to the IsDeviceHighSpeed() function, it returns 1
>> on
>> ehci and 0 on uhci, that is good, no probelms.
>> Not interested in the interface any more so I
>> InterfaceDereference(BusInterfaceV1.BusContext) // identical parameter
>> passed to IsDeviceHigh....
>> and get an assert
>> <TEST_TRAP> c:\sandbox\usb\rhcproto\ms24nov03\hcd\usbport\busi f.c, line
>> 116
>> Break instruction exception - code 80000003 (first chance)
>> nt!DbgBreakPoint:
>> 8052a5cc cc int 3
>> 0: kd>
>> continues ok
>> 1. Is there an easier way to determine what I need to know? or
>> 2. any more info why am I getting an assert here? would checked build
>> give
>> me more details?
>>
>> Note: I don't think I am supposed to call InterfaceReference()
>> but I tried that too and got an assert also
>>
>> Thanks
>> tom

>
>



 
Reply With Quote
 
Tom Picard
Guest
Posts: n/a

 
      08-12-2005
thanks, yes you are right it is some beta or debug version
tom

"Doron Holan [MS]" wrote:

> also, are you sure you are running released (and not beta) bits? the file
> path does not look like a released binary to me.
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Scott Noone" <> wrote in message
> news:...
> > Hi,
> >
> > Looks more like a hardcoded breakpoint than an ASSERT to me...
> >
> > Are you running a checked version of USBPORT? The free build on my XP dev
> > box shows this as the assembly for the dereference routine:
> >
> > lkd> u usbport!USBPORT_BusInterfaceDereference
> > USBPORT!USBPORT_BusInterfaceDereference:
> > f65bf396 c20400 ret 0x4
> >
> > So making that call doesn't actually do anything. I'd check out the
> > listing for the checked USBSTOR and see if it's just a DbgBreakPoint and a
> > return or if it looks like it's doing some other validation.
> >
> > -scott
> >
> > --
> > Scott Noone
> > Software Engineer
> > OSR Open Systems Resources, Inc.
> > http://www.osronline.com
> >
> > "Tom Picard" <> wrote in message
> > news:4130112C-774F-404C-BDC1-...
> >> trying to determine if my fast usb device is being plugged into a 1.1
> >> host
> >> on XP.
> >> So I try getting what is called the direct client access to USB Bus
> >> seems ok, get a pointer to the IsDeviceHighSpeed() function, it returns 1
> >> on
> >> ehci and 0 on uhci, that is good, no probelms.
> >> Not interested in the interface any more so I
> >> InterfaceDereference(BusInterfaceV1.BusContext) // identical parameter
> >> passed to IsDeviceHigh....
> >> and get an assert
> >> <TEST_TRAP> c:\sandbox\usb\rhcproto\ms24nov03\hcd\usbport\busi f.c, line
> >> 116
> >> Break instruction exception - code 80000003 (first chance)
> >> nt!DbgBreakPoint:
> >> 8052a5cc cc int 3
> >> 0: kd>
> >> continues ok
> >> 1. Is there an easier way to determine what I need to know? or
> >> 2. any more info why am I getting an assert here? would checked build
> >> give
> >> me more details?
> >>
> >> Note: I don't think I am supposed to call InterfaceReference()
> >> but I tried that too and got an assert also
> >>
> >> Thanks
> >> tom

> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bsod:usbport.sys Lancer252 Windows Vista General Discussion 8 02-04-2009 08:10 PM
USBPORT Bugcheck D2 in Windows 2000 SP4 Alanlee Windows Vista Drivers 1 02-05-2005 03:19 AM
Assert connected to zwwritefile Bob_from_Corinth Windows Vista Drivers 5 08-08-2004 07:51 AM
What does it mean this assert ? Peter Windows Vista Drivers 2 06-13-2004 07:32 AM
UsbPort.sys handling of CRC/bad packets Gordon Free Windows Vista Drivers 0 05-07-2004 07:33 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59