Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 2010 15:26:00 +0100
From:      Max Laier <max@love2party.net>
To:        freebsd-net@freebsd.org
Cc:        Giulio Ferro <auryn@zirakzigil.org>, Greg Hennessy <Greg.Hennessy@nviz.net>, freebsd-pf@freebsd.org
Subject:   Re: PF + BRIDGE + PFSYNC causes system freezing
Message-ID:  <201003181526.00442.max@love2party.net>
In-Reply-To: <4BA232D6.6030400@zirakzigil.org>
References:  <4B8E4850.1060104@zirakzigil.org> <201003171800.51027.max@love2party.net> <4BA232D6.6030400@zirakzigil.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 18 March 2010 15:04:06 Giulio Ferro wrote:
> On 17.03.2010 18:00, Max Laier wrote:
> > Can you enable WITNESS and compile in DDB. Make sure to report any LORs
> >
> >>> and once the system freezes try to enter the debugger and get ps and
> >>> locks information.
> >>>
> >>> show allchains
> >>> show alllocks
> >>> ps
> >>>
> >>> After that you can try to "call doadump" so you get the information in
> >>> the coredump and don't have to transcribe it manually.
> >>>
> >>> Thanks,
> >>>     Max
> >>
> >> Sorry, I'm not really an expert of this, but how can I enter the
> >> debugger if the system has frozen?
> >
> > Ctrl+Alt+ESC (in default configuration).
> > _______________________________________________
> 
> I've added this  to the kernel
> 
> option          KDB
> option          WITNESS
> option          WITNESS_KDB

remove WITNESS_KDB, it's not what you want.

> option          DDB
> 
> 
> Now it can't even boot properly. It stops when it tries to configure
> networking:
> uma_zalloc_arg: zone "256" with the following non-sleepable locks held:
> exclusive rw ifnet_rw (ifnet_rw) r = 0 (0xffffffff80e31b20) locked @
> /usr/src/sys/net/if.c:414

a "bt" would help in this case to see where the bad alloc is.

> show allchains
> <no result>
> 
> show alllocks
> exclusive rw ifnet_rw (ifnet_rw) r = 0 (0xffffffff80e31b20) locked @
> /usr/src/sys/net/if.c:414
> exclusive sx ifnet_sx (ifnet_sx) r = 0 (0xffffffff80e31b40) locked @
> /usr/src/sys/net/if.c:414
> 
> ps
> <returns a lot of stuff. tell me to search something in particular>
> 
> call doadump
> Cannot dump. Device not defined or unavailable

define "dumpdev" in rc.conf to a swap partition with enough space or call 
dumpon(8).

Thanks,
  Max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003181526.00442.max>