Peter A. Bigot wrote:
The segfault makes sense, since the patch has the library detect a transfer error that used to be ignored and then set a flag that inhibits the wait for in-progress asynch actions to complete before shutting down: AFAICT libusb1 is known to get upset when this happens.
libusb gets upset because it is a usage error. You can't shut down before cleaning up anything you have allocated/started/created for the context.
//Peter