[PATCH] migration to libusb-1.0

NIIBE Yutaka gniibe at fsij.org
Thu Feb 25 12:20:25 CET 2016


On 02/25/2016 06:16 PM, Andre Heinecke wrote:
> I've restarted my Computer since yesterday and while I was able to reliably 
> reproduce the problem by switching between 2.1.11 and master yesterday today 
> it works fine with master. :-(
> So maybe it was just related to the state of my system?

When something is going wrong, the behavior of new libusb could be
easily fatal, since USB packets and meta data (length, direction,
etc.) is all in user space.

I guess that scdaemon has issues and new libusb just reveals that.
I've been using scdaemon with new libusb daily.  Perhaps, my use
cases are limited.

> With d0d9708 and debug-ccid-driver I now get a different failure
> signing failed: No SmartCard daemon
> (If i remove the debug line I'm getting invalid value again)
> 
> I'm not sure if it helps as master already shows a different behavior
> but the log is here:
> 
> http://files.intevation.de/users/aheinecke/scdaemon-d0d9708.log.gpg
> 
> It's so huge that I think parts of memory are dumped and I'm not sure if there 
> is private information in there so I've encrypted it to you.

In the situations of "invalid value" and the (huge) log, the size
returned by libusb_bulk_transfer is negative or very big.  I don't
know how it happens.

Let us test further.
-- 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20160225/202a429f/attachment.sig>


More information about the Gnupg-devel mailing list