Python bindings crash when more than one Nftables is instantiated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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)

Note that it happens on exit (possibly on the second call to __del__()).

nftables v0.9.9



Attachment: OpenPGP_signature
Description: OpenPGP digital signature

[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux