[Swan-dev] crash after pluto: Fix addresspool reference count
Wolfgang Nothdurft
wolfgang at linogate.de
Thu Oct 5 18:36:52 UTC 2017
Am 05.10.2017 um 20:18 schrieb Antony Antony:
> Wow, this patch looks like a heavy hammer solution. To reference count the
> pool for each lease? There is something else going on. I imagine reproducing
> #299 will give more info. Also wonder no unrefrence when the lease goes
> away. Did you check for memory leak after this patch?
>
> Thanks for the proposed patch, it gave a bit more insight into the issue.
>
memory leak is not the problem, because at the moment the
unrefence_addresspool is called to often.
My final solution at the moment is to move unreference_addresspool to
the release leases function and when the non-instance connection is deleted.
The question is for what the refcount stands, only for installing a
addresspool it is not necessary in my opinion. But I'm not as deep in
the code as the one who wrote it initially.
But the patch is not finished, I will post it tomorrow, when I fixed the
last problem and have our tests successfully finished.
Wolfgang
More information about the Swan-dev
mailing list