Skip to content

Python 3.12 tests segfault #5

@jaraco

Description

@jaraco

Between a2 and a3, the tests for jaraco.net.devices.linux have started failing with a segfault:

Run tox
python: install_deps> python -I -m pip install 'requests_mock@ git+https://github.com/jaraco/requests-mock@bugfix-17'
.pkg: install_requires> python -I -m pip install 'setuptools>=56' 'setuptools_scm[toml]>=3.4.1'
.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.12.0-alpha.3/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_editable> python /opt/hostedtoolcache/Python/3.12.0-alpha.3/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: install_requires_for_build_editable> python -I -m pip install wheel
.pkg: build_editable> python /opt/hostedtoolcache/Python/3.12.0-alpha.3/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
python: install_package_deps> python -I -m pip install BeautifulSoup4 cherrypy fabric feedparser 'flake8<5' 'ifconfig-parser; sys_platform == "darwin"' importlib-resources jaraco.collections jaraco.email jaraco.fabric jaraco.functools jaraco.logging jaraco.text 'jsonpickle!=3.0.0' 'keyring>=0.6' mechanize more-itertools 'path>=16.6' pathvalidate pyparsing 'pytest-black>=0.3.7; platform_python_implementation != "PyPy"' 'pytest-checkdocs>=2.4' pytest-cov 'pytest-enabler>=1.3' 'pytest-flake8; python_version < "3.12"' 'pytest-mypy>=0.9.1; platform_python_implementation != "PyPy"' 'pytest>=6' python-dateutil 'pywin32; sys_platform == "win32" and python_version < "3.12"' requests requests-mock types-python-dateutil types-requests
python: install_package> python -I -m pip install --force-reinstall --no-deps .tox/.tmp/package/1/jaraco.net-0.1.dev1+ge0d1db9-0.editable-py3-none-any.whl
python: commands[0]> pytest
============================= test session starts ==============================
platform linux -- Python 3.12.0a3, pytest-7.2.0, pluggy-1.0.0
cachedir: .tox/python/.pytest_cache
rootdir: /home/runner/work/jaraco.net/jaraco.net, configfile: pytest.ini
plugins: black-0.3.12, mypy-0.10.2, cov-4.0.0, enabler-2.0.0, checkdocs-2.9.0, requests-mock-1.10.1.dev1
collected 85 items

conftest.py ...                                                          [  3%]
. .                                                                      [  4%]
docs/conf.py ..                                                          [  7%]
jaraco/net/__init__.py ..                                                [  9%]
jaraco/net/compat.py ..                                                  [ 11%]
jaraco/net/dnsbl.py ..                                                   [ 14%]
jaraco/net/icmp.py ....                                                  [ 19%]
jaraco/net/importer.py ..                                                [ 21%]
jaraco/net/inet.py ..                                                    [ 23%]
jaraco/net/ntp.py ...                                                    [ 27%]
jaraco/net/rss.py ..                                                     [ 29%]
jaraco/net/scanner.py ...                                                [ 33%]
jaraco/net/site.py ..                                                    [ 35%]
jaraco/net/stats.py ..                                                   [ 38%]
jaraco/net/tail.py ..                                                    [ 40%]
jaraco/net/tcp.py ..                                                     [ 42%]
jaraco/net/udp.py ..                                                     [ 45%]
jaraco/net/wake.py ..                                                    [ 47%]
jaraco/net/whois.py ..                                                   [ 50%]
Fatal Python error: Segmentation fault

Current thread 0x00007ffa85a8cc40 (most recent call first):
  File "<shim>", line ??? in <interpreter trampoline>
  File "/home/runner/work/jaraco.net/jaraco.net/jaraco/net/devices/linux.py", line 99 in get_ip_addresses
  File "<doctest net.devices[1]>", line 1 in <module>
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.3/x64/lib/python3.12/doctest.py", line 1350 in __run
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.3/x64/lib/python3.12/doctest.py", line 1497 in run
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.3/x64/lib/python3.12/doctest.py", line 1858 in run
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/doctest.py", line 297 in runtest
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/runner.py", line 167 in pytest_runtest_call
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/runner.py", line 260 in <lambda>
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/runner.py", line 339 in from_call
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/runner.py", line 259 in call_runtest_hook
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/runner.py", line 220 in call_and_report
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/runner.py", line 131 in runtestprotocol
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/runner.py", line 112 in pytest_runtest_protocol
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/main.py", line 349 in pytest_runtestloop
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/main.py", line 324 in _main
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/main.py", line 270 in wrap_session
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/main.py", line 317 in pytest_cmdline_main
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/config/__init__.py", line 167 in main
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/lib/python3.12/site-packages/_pytest/config/__init__.py", line 190 in console_main
  File "/home/runner/work/jaraco.net/jaraco.net/.tox/python/bin/pytest", line 8 in <module>
jaraco/net/devices/__init__.py ..python: exit -11 (75.57 seconds) /home/runner/work/jaraco.net/jaraco.net> pytest pid=2016
.pkg: _exit> python /opt/hostedtoolcache/Python/3.12.0-alpha.3/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
  python: FAIL code -11 (128.39=setup[52.82]+cmd[75.57] seconds)
  evaluation failed :( (128.50 seconds)

Error: Process completed with exit code 245.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions