libusb-1.0 and RH5.3 segv

View: New views
2 Messages — Rating Filter:   Alert me  

libusb-1.0 and RH5.3 segv

by Patras, George :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm having a problem using libusb-1.0.3 and RedHat Enterprise 5.3 (2.6.18 kern)
I'm getting a segv in libusb_get_device_decriptor() - The same code works fine
however on an Ubuntu 9.04 system.
I get the same error with the lsusb sample code in examples dir of libusb-1.0.3

-------
(gdb)
libusb:error [initialize_device] open failed, ret=-1 errno=2
[New Thread 0xb7f0e6c0 (LWP 4149)]

Program received signal SIGSEGV, Segmentation fault.
0x005c2cdd in op_get_device_descriptor (dev=0xbff3e798, buffer=0xbff3e6fa
"\004\b\001", host_endian=0xbff3e70c) at os/linux_usbfs.c:204
204             memcpy(buffer, priv->dev_descriptor, DEVICE_DESC_LENGTH);
(gdb) Quit
--------

Any help would be greatly appreciated,
George

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: libusb-1.0 and RH5.3 segv

by Tim Roberts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Patras, George wrote:
> I'm having a problem using libusb-1.0.3 and RedHat Enterprise 5.3 (2.6.18 kern)
> I'm getting a segv in libusb_get_device_decriptor() - The same code works fine
> however on an Ubuntu 9.04 system.
> I get the same error with the lsusb sample code in examples dir of libusb-1.0.3
>
> -------
> (gdb)
> libusb:error [initialize_device] open failed, ret=-1 errno=2
>  

Well, that's the key, isn't it?  Do you know that your device is being
recognized by the hardware?  Are you running this as root, or do you
have udev rules to open the permissions?

--
Tim Roberts, timr@...
Providenza & Boekelheide, Inc.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel