From owner-freebsd-current@FreeBSD.ORG Fri Dec 10 19:15:16 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63FE9106564A; Fri, 10 Dec 2010 19:15:16 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 761338FC0C; Fri, 10 Dec 2010 19:15:15 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id VAA12023; Fri, 10 Dec 2010 21:15:09 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4D027C3C.2030606@freebsd.org> Date: Fri, 10 Dec 2010 21:15:08 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Hans Petter Selasky References: <201012101915.40878.hselasky@c2i.net> In-Reply-To: <201012101915.40878.hselasky@c2i.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Oleg Nauman , freebsd-usb@freebsd.org, freebsd-current@freebsd.org Subject: Re: USB related panic on 8.2-PRERELEASE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2010 19:15:16 -0000 on 10/12/2010 20:15 Hans Petter Selasky said the following: > Hi, > > I think this is a known issue which never got fixed. Please try the attached > patch and report back. > > XXX_SAFE != XXX_REAL_SAFE :-) SAFE in sys/queue.h macros means only that it is safe to unlink/free current element in the loop body. Specifically it has nothing to do with concurrent modifications and locking. So, yes :) > On Thursday 09 December 2010 12:02:48 Oleg Nauman wrote: >> On Wed, Dec 8, 2010 at 7:05 PM, Oleg Nauman wrote: >>> Hello Hans, >>> >>> On Wed, Dec 8, 2010 at 3:33 PM, Hans Petter Selasky > wrote: >>>> On Wednesday 08 December 2010 11:41:28 Oleg Nauman wrote: >>>>> Hello, >>>>> >>>>> Unfortunately my notebook experienced the crash during the attempts to >>>>> attach EVDO modem supplied with builtin MicroSD cardreader. >>>>> Related core.txt file is attached as well as 'usbconfig >>>>> dump_all_config_desc' output (all_config.txt) >>>>> USB subsystem reports endless USB_ERR_STALLED events during attempts >>>>> to attach umass device, but attaches it finally ( sometimes it >>>>> attached after two attempts, sometimes it trying to attach during >>>>> 15-20 minutes ).MicroSD is inserted there, without any effect on >>>>> attachment attempts though. >>>> >>>> Hi, >>>> >>>> Can you reproduce the panic using a kernel built with INVARIANTS options >>>> and DEBUG_MEMGUARD . >>> >>> I rebuilt my kernel with options you mentioned ( have added >>> INVARIANT_SUPPORT required by INVARIANTS though ) >>> >>> Waiting on panic.. >> >> Got it finally ( core.txt file is attached ) >> -- Andriy Gapon