netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Eugene Crosser <crosser@average.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Python bindings crash when more than one Nftables is instantiated
Date: Wed, 15 Sep 2021 17:04:48 +0200	[thread overview]
Message-ID: <20210915150448.GA19577@salvia> (raw)
In-Reply-To: <5dcf2dd4-0fdf-30d7-6588-1e571c486289@average.org>

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

On Tue, Sep 14, 2021 at 07:46:16PM +0200, Eugene Crosser wrote:
> Hello,
> 
> it seems to me that this should not be happening. Use case is not as
> pathological as it may seem: your program may be using different third party
> modules, each of them instantiate `Nftables` interface.
> 
> $ sudo python
> [sudo] password for echerkashin:
> Python 3.9.7 (default, Sep  3 2021, 06:18:44)
> [GCC 11.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from nftables import Nftables
> >>> n1=Nftables()
> >>> n2=Nftables()
> >>> <Ctrl-D>
> double free or corruption (top)
> Aborted
> 
> Note that it happens on exit (possibly on the second call to __del__()).
> 
> nftables v0.9.9

Upstream fix:

http://git.netfilter.org/nftables/commit/?id=b85769f9397c72ab62387ccc5b7a66d0c3ff5f21

Thanks for reporting.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2021-09-15 15:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-14 17:46 Python bindings crash when more than one Nftables is instantiated Eugene Crosser
2021-09-15 15:04 ` Pablo Neira Ayuso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210915150448.GA19577@salvia \
    --to=pablo@netfilter.org \
    --cc=crosser@average.org \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).