Bug hunting

Christian Gagneraud chris at techworks.ie
Tue Aug 7 14:11:02 UTC 2012

On 07/08/12 14:54, Peter Stuge wrote:
> Hi Chris,
> Christian Gagneraud wrote:
>> Another "bug" I discovered is that if you just do a device scan to print
>> available device and exit the python script, it will generate plenty of
>> error messages like "libusb:warning [cancel_bulk_transfer] unrecognised
>> discard errno 9", the workaround is to simply wait a bit before exiting.
>> It seems that some USB packets are still pending after calling
>> osmosdr.source_c().
> I'm interested in this since I'm the libusb maintainer.
> Error 9 means that ioctl() returns "Invalid file descriptor" - so the
> fd that came from open():ing the device has since become invalid. I
> would appreciate if you can provide a short (python) program to
> reproduce this error, or perhaps you can provide a debug log,
> according to the http://libusb.org/wiki/debug page. It shouldn't

Hi Peter,

Please find attached the full log. I can provide u with a simple python 
program, but it will depends on gnuradio, gr-osmosdr and you will need a 
compatible device plugged in as well.


> happen.
> Thanks
> //Peter

Christian Gagneraud,
Embedded systems engineer.
Techworks Marine
1 Harbour road
Dun Laoghaire
Co. Dublin
Tel: + 353 (0) 1 236 5990
Web: http://www.techworks.ie/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libusb.log
Type: text/x-log
Size: 226058 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20120807/b082703f/attachment.bin>

More information about the osmocom-sdr mailing list