Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Sep 2018 17:05:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 231076] libusb_cancel_transfer() does NOT cancel a transfer after the USB device is removed
Message-ID:  <bug-231076-19105-6WHEOX1fXB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-231076-19105@https.bugs.freebsd.org/bugzilla/>
References:  <bug-231076-19105@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231076

--- Comment #6 from Ludovic Rousseau <ludovic.rousseau+freebsd@gmail.com> -=
--
I added more logs in libusb, rebuilt and installed.

The problem is that I get in the "not started" case:
https://github.com/freebsd/freebsd/blob/master/lib/libusb/libusb10.c#L1546

I logged all the fields used in the if/else cases:
LIBUSB_FUNCTION: libusb_cancel_transfer enter
LIBUSB_FUNCTION: state: 1
LIBUSB_FUNCTION: entry.tqe_prev: 0x0
LIBUSB_FUNCTION: sxfer: 0x29007060
LIBUSB_FUNCTION: pxfer0: 0x28c2f348
LIBUSB_FUNCTION: pxfer1: 0x28c2f384
LIBUSB_FUNCTION: libusb20_tr_get_priv_sc1(pxfer0): 0x0
LIBUSB_FUNCTION: libusb20_tr_get_priv_sc1(pxfer1): 0x0
LIBUSB_FUNCTION: libusb_cancel_transfer leave

I don't know yet why libusb20_tr_get_priv_sc1() returns NULL.

What else should I do?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231076-19105-6WHEOX1fXB>