From owner-freebsd-current@FreeBSD.ORG Mon Jun 30 04:01:24 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 41EC543A for ; Mon, 30 Jun 2014 04:01:24 +0000 (UTC) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 034802711 for ; Mon, 30 Jun 2014 04:01:23 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id y20so6376078ier.40 for ; Sun, 29 Jun 2014 21:01:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=Pc2Ixn9QcK3GlLvTpebEG8BZ/7mI1dCketdILX053JU=; b=EmYu6XKL1TgnubIh147RPf+JxM/Y++G96g7irdRYiGQbl5G/9h9SDiQMU0G7VvzN3c v32VHhSi1ULDPttA2WFlDZmG0jWV61+e6PPO0FvcY6Q/8MZV6r9BA0Oo+pXHJNIbpIXL anHQqKLaLMGe3OSGs7r2WyZN+9RKhhEJXMl62XOugBF9jkCAIfeZFs6qyLiMqAkv7O3J y12xnTeDEAxlBFE+Wk4fnloT5KzXECVKRL6gyd02cyrZnAVWvMhvGHWX/GDhSBEzOy+C gvSY81+RByRfWUtifsEJoyLjHxOQrRLGGIlHm4sMykVhayzAApRbam0ILNVBkJ92yZ0x 95OQ== X-Gm-Message-State: ALoCoQm/taoAz6sou6tw/z2OxH1mTay15LGrq4ib7gvMUnVwYzWdOITpy4/NtSrjN1xLp6cKQGS53zXHJ/ZvW+KtjB/rpNIjg8BHxuFVfEdL9cdtyTFMLoA= X-Received: by 10.43.129.74 with SMTP id hh10mr27193751icc.48.1404100882134; Sun, 29 Jun 2014 21:01:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.43.69.131 with HTTP; Sun, 29 Jun 2014 21:01:07 -0700 (PDT) In-Reply-To: <53AED789.9070504@selasky.org> References: <53A3E81B.5050805@selasky.org> <53A79732.6060705@selasky.org> <53A90116.7040306@selasky.org> <53A907E9.5020007@selasky.org> <53A9C37A.7030803@selasky.org> <53AA5A0E.1050704@selasky.org> <53AC8C21.6080504@selasky.org> <53AD01C6.1080005@selasky.org> <53AED789.9070504@selasky.org> From: "Lundberg, Johannes" Date: Mon, 30 Jun 2014 13:01:07 +0900 Message-ID: Subject: Re: ucom_free Fatal trap on shutdown / module unload To: FreeBSD Current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: Hans Petter Selasky , Fredrik Lindberg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Mon, 30 Jun 2014 04:01:24 -0000 As I mention in earlier mail, it is when I comment out following lines it works # For full debugger support use (turn off in stable branch): options DDB # Support DDB. options GDB # Support remote GDB. options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=3D8 # Separate malloc(9) zones I have tried different levels of debugging and I have narrowed it down to INVARIANTS. That is # For full debugger support use (turn off in stable branch): #options DDB # Support DDB. #options GDB # Support remote GDB. #options DEADLKRES # Enable the deadlock resolver #options INVARIANTS # Enable calls of extra sanity checking #options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS # Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed #options MALLOC_DEBUG_MAXZONES=3D8 # Separate malloc(9) zones works but the following crashes when unloading uhso. # For full debugger support use (turn off in stable branch): #options DDB # Support DDB. #options GDB # Support remote GDB. #options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS # Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed #options MALLOC_DEBUG_MAXZONES=3D8 # Separate malloc(9) zones -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Sat, Jun 28, 2014 at 11:56 PM, Hans Petter Selasky wrote: > On 06/28/14 08:59, Lundberg, Johannes wrote: > >> The problem exists already from Revision *239180* >> where= ucom >> >> was introduced.. Also observe that it only crashes when full debugging i= s >> enabled. No problems with debugging off (release settings in kernel conf= ). >> >> > Interesting. > > You mean USB_DEBUG is defined or hw.usb.ucom.debug is set? > > --HPS > > --=20 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =E7=A7=98=E5=AF=86=E4=BF=9D=E6=8C=81=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=EF= =BC=9A=E3=81=93=E3=81=AE=E9=9B=BB=E5=AD=90=E3=83=A1=E3=83=BC=E3=83=AB=E3=81= =AF=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=9F=E3=82=82=E3=81=AE=E3=81=A7=E3=81=82=E3=82=8A=E3=80=81=E7=A7=98=E5= =8C=BF=E7=89=B9=E6=A8=A9=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=81=A8=E3=81=AA=E3=82= =8B=E6=83=85=E5=A0=B1=E3=82=92=E5=90=AB=E3=82=93=E3=81=A7=E3=81=84=E3=81=BE= =E3=81=99=E3=80=82 =E3=82=82=E3=81=97=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E4=BB=A5=E5=A4=96=E3= =81=AE=E6=96=B9=E3=81=8C=E5=8F=97=E4=BF=A1=E3=81=95=E3=82=8C=E3=81=9F=E5=A0= =B4=E5=90=88=E3=80=81=E3=81=93=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE= =E7=A0=B4=E6=A3=84=E3=80=81=E3=81=8A=E3=82=88=E3=81=B3=E3=81=93=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E4=B8=80=E5=88= =87=E3=81=AE=E9=96=8B=E7=A4=BA=E3=80=81 =E8=A4=87=E5=86=99=E3=80=81=E9=85=8D=E5=B8=83=E3=80=81=E3=81=9D=E3=81=AE=E4= =BB=96=E3=81=AE=E5=88=A9=E7=94=A8=E3=80=81=E3=81=BE=E3=81=9F=E3=81=AF=E8=A8= =98=E8=BC=89=E5=86=85=E5=AE=B9=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8F=E3=81=84= =E3=81=8B=E3=81=AA=E3=82=8B=E8=A1=8C=E5=8B=95=E3=82=82=E3=81=95=E3=82=8C=E3= =81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=8A=E9=A1=98=E3=81=84=E7=94=B3=E3=81= =97=E4=B8=8A=E3=81=92=E3=81=BE=E3=81=99=E3=80=82 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message.