From owner-freebsd-usb@freebsd.org Tue Sep 4 17:05:25 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62502FF5702 for ; Tue, 4 Sep 2018 17:05:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6F2DF77A05 for ; Tue, 4 Sep 2018 17:05:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 07AB7FF56F3; Tue, 4 Sep 2018 17:05:24 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA38DFF56F1 for ; Tue, 4 Sep 2018 17:05:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BF30779DD for ; Tue, 4 Sep 2018 17:05:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D97C46A35 for ; Tue, 4 Sep 2018 17:05:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w84H5Mg7061867 for ; Tue, 4 Sep 2018 17:05:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w84H5MTQ061866 for usb@FreeBSD.org; Tue, 4 Sep 2018 17:05:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Tue, 04 Sep 2018 17:05:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.4-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ludovic.rousseau+freebsd@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 17:05:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231076 --- Comment #6 from Ludovic Rousseau -= -- 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.=