Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2015 23:53:22 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        John-Mark Gurney <jmg@funkthat.com>
Cc:        FreeBSD Current <freebsd-current@FreeBSD.org>, Lawrence Stewart <lstewart@room52.net>, Pawel Pekala <pawel@FreeBSD.org>, "K. Macy" <kmacy@FreeBSD.org>
Subject:   Re: Instant panic while trying run ports-mgmt/poudriere
Message-ID:  <55E61042.2050401@FreeBSD.org>
In-Reply-To: <20150901182406.GN33167@funkthat.com>
References:  <20150715180526.GM8523@funkthat.com> <20150715223703.78b9197c@FreeBSD.org> <CAHM0Q_PLRP4t6JgkstXHNOVV%2B2DyathOgi8bg4-RQkW-BcGXow@mail.gmail.com> <20150806233328.47a02594@FreeBSD.org> <55CB5428.2090505@room52.net> <55D96E24.9060106@FreeBSD.org> <20150826233616.GU33167@funkthat.com> <55DEBA8B.5060009@FreeBSD.org> <20150827180945.GW33167@funkthat.com> <55DF713D.7000808@FreeBSD.org> <20150901182406.GN33167@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help

John-Mark,

with all the due respect I have to invoke the forest-vs-trees argument here:

- it is established that in the knote() loop the current knote member of the
klist can be removed
- it's a fact that getting a pointer to a next element from a removed element is
an illegal operation
- FOREACH_SAFE is specifically designed to handle exactly this kind of the iteration



-- 
Andriy Gapon



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