All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eugene Crosser <crosser@average.org>
To: netfilter-devel@vger.kernel.org
Subject: Python bindings crash when more than one Nftables is instantiated
Date: Tue, 14 Sep 2021 19:46:16 +0200	[thread overview]
Message-ID: <5dcf2dd4-0fdf-30d7-6588-1e571c486289@average.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 656 bytes --]

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

Regards,

Eugene


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2021-09-14 17:55 UTC|newest]

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

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=5dcf2dd4-0fdf-30d7-6588-1e571c486289@average.org \
    --to=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.