* Python bindings crash when more than one Nftables is instantiated
@ 2021-09-14 17:46 Eugene Crosser
2021-09-15 15:04 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Eugene Crosser @ 2021-09-14 17:46 UTC (permalink / raw)
To: netfilter-devel
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Python bindings crash when more than one Nftables is instantiated
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
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2021-09-15 15:04 UTC (permalink / raw)
To: Eugene Crosser; +Cc: netfilter-devel
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-15 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.