Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2014 13:01:07 +0900
From:      "Lundberg, Johannes" <johannes@brilliantservice.co.jp>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Cc:        Hans Petter Selasky <hps@selasky.org>, Fredrik Lindberg <fli@shapeshifter.se>
Subject:   Re: ucom_free Fatal trap on shutdown / module unload
Message-ID:  <CAASDrVnGMb81FxfJBQrdYwf_W=mpd=xvfgWTneOuuL=9cexDOA@mail.gmail.com>
In-Reply-To: <53AED789.9070504@selasky.org>
References:  <CAASDrVkFfhyU8Jb4EB%2B4V32skfFijX9TKLSysjGK=0ye=G9GgA@mail.gmail.com> <53A3E81B.5050805@selasky.org> <CAASDrVnpVgmP4zg0jbqAc197DnX5_bgWRE3pA08foRMF6N9WVQ@mail.gmail.com> <53A79732.6060705@selasky.org> <CAASDrVkBjqoKFTF48Vyv3dRRUxKfVpCZ5uMjb7P%2BMy_tnGOF7w@mail.gmail.com> <53A90116.7040306@selasky.org> <CAASDrVnfxR40OsJLRLQUfyzhBHuHynYAqmaq=9EBUxZHMUCYnw@mail.gmail.com> <CAASDrVmYCdZ8UOsp7yESpi2KBDvQgG2HvSGrWGUyiETcpz7Y_g@mail.gmail.com> <53A907E9.5020007@selasky.org> <CAASDrVkPK0M2caZ0wmfwJrTGF5h99-4s71KfuRcNFEOcWtAqCA@mail.gmail.com> <53A9C37A.7030803@selasky.org> <CAASDrV=CDX4mSdZRNcSgNgWWscntt8xd4a2sfGnKuBmPKkd-%2BA@mail.gmail.com> <53AA5A0E.1050704@selasky.org> <CAASDrV=a0kc0QAxa3MuVq1qvfW_yun%2BeUr0E360oCsPF7tWTvg@mail.gmail.com> <53AC8C21.6080504@selasky.org> <CAASDrV=AupNhXrXQfoecidm4sWokxrG4qfa3tMJ4raYQUSaJEA@mail.gmail.com> <53AD01C6.1080005@selasky.org> <CAASDrVnezuH4iyAU5CbBZdWziVxgmoa7EuBX1ESNB7kXN5w4vA@mail.gmail.com> <53AED789.9070504@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <hps@selasky.org>
wrote:

> On 06/28/14 08:59, Lundberg, Johannes wrote:
>
>> The problem exists already from Revision *239180*
>> <http://svnweb.freebsd.org/base?view=3Drevision&revision=3D239180>; 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAASDrVnGMb81FxfJBQrdYwf_W=mpd=xvfgWTneOuuL=9cexDOA>