Thanks to visit codestin.com
Credit goes to github.com

Skip to content

segfault in a docker container on host with ipv6 disabled when using getaddrinfo from socket.py #100795

Closed
@ptempier

Description

@ptempier

Bug report

I did open an issue with fail2ban, but apparently the issue is in python itself.
fail2ban/fail2ban#3438

fail2ban-python -c 'from fail2ban.server.ipdns import DNSUtils; print(DNSUtils.dnsToIp("fail2ban_01"))'

fail2ban_01 is the container name and its hostname

I am sorry , i am not a python dev, so at this moment, the best i can provide as a minimal test is the backtrace.
It will show exactly which function was called, with which paramater, from which file thr function was taken from.

Your environment

  • CPython versions tested on: python3.9-3.9.16-1.el9.x86_64
  • Operating system and architecture: x86_64 vm on a dell server
  • Container inside that vm, run with docker 20.10.22

OS of the vm centos stream 9
OS of the container centos stream 9

ipv6 disabled with net.ipv6.conf.all.disable_ipv6 = 1

Linked PRs

Metadata

Metadata

Assignees

Labels

pendingThe issue will be closed if no feedback is providedtype-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions