heitzmann / gdstk

Gdstk (GDSII Tool Kit) is a C++/Python library for creation and manipulation of GDSII and OASIS files.
https://heitzmann.github.io/gdstk/
Boost Software License 1.0
345 stars 86 forks source link

Tests crash: flexpath_test.py::test_raith_data Fatal Python error: Segmentation fault #263

Open yurivict opened 3 months ago

yurivict commented 3 months ago
flexpath_test.py::test_transforms ERROR                                                                                                                                               [ 62%]
flexpath_test.py::test_raith_data Fatal Python error: Segmentation fault

Thread 0x00001d15d8206100 (most recent call first):
  File "/usr/local/lib/python3.11/socket.py", line 294 in accept
  File "/usr/local/lib/python3.11/site-packages/pytest_rerunfailures.py", line 470 in run_server
  File "/usr/local/lib/python3.11/threading.py", line 982 in run
  File "/usr/local/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/local/lib/python3.11/threading.py", line 1002 in _bootstrap

Current thread 0x00001d1595e12000 (most recent call first):
  File "/usr/ports/cad/py-gdstk/work-py311/gdstk-0.9.53/tests/flexpath_test.py", line 157 in test_raith_data
  File "/usr/local/lib/python3.11/site-packages/_pytest/python.py", line 195 in pytest_pyfunc_call
  File "/usr/local/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/local/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/local/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/local/lib/python3.11/site-packages/_pytest/python.py", line 1772 in runtest
  File "/usr/local/lib/python3.11/site-packages/_pytest/runner.py", line 172 in pytest_runtest_call
  File "/usr/local/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/local/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/local/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/local/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 146 in <lambda>
  File "/usr/local/lib/python3.11/site-packages/_pytest/runner.py", line 340 in from_call
  File "/usr/local/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 145 in _call_runtest_hook
  File "/usr/local/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 149 in call_and_report
  File "/usr/local/lib/python3.11/site-packages/_pytest/runner.py", line 134 in runtestprotocol
  File "/usr/local/lib/python3.11/site-packages/_pytest/runner.py", line 115 in pytest_runtest_protocol
  File "/usr/local/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 89 in pytest_runtest_protocol
  File "/usr/local/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/local/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/local/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/local/lib/python3.11/site-packages/_pytest/main.py", line 364 in pytest_runtestloop
  File "/usr/local/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/local/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/local/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/local/lib/python3.11/site-packages/_pytest/main.py", line 339 in _main
  File "/usr/local/lib/python3.11/site-packages/_pytest/main.py", line 285 in wrap_session
  File "/usr/local/lib/python3.11/site-packages/_pytest/main.py", line 332 in pytest_cmdline_main
  File "/usr/local/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/local/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/local/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/local/lib/python3.11/site-packages/_pytest/config/__init__.py", line 174 in main
  File "/usr/local/lib/python3.11/site-packages/_pytest/config/__init__.py", line 197 in console_main
  File "/usr/local/lib/python3.11/site-packages/pytest/__main__.py", line 7 in <module>
  File "<frozen runpy>", line 88 in _run_code
  File "<frozen runpy>", line 198 in _run_module_as_main

Extension modules: hunter._predicates, hunter._tracer, hunter.vendor._cymem.cymem, hunter._event, _time_machine, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, gdstk._gdstk, pydantic.typing, pydantic.errors, pydantic.version, pydantic.utils, pydantic.class_validators, pydantic.config, pydantic.color, pydantic.datetime_parse, pydantic.validators, pydantic.networks, pydantic.types, pydantic.json, pydantic.error_wrappers, pydantic.fields, pydantic.parse, pydantic.schema, pydantic.main, pydantic.dataclasses, pydantic.annotated_types, pydantic.decorator, pydantic.env_settings, pydantic.tools, pydantic, pydantic._hypothesis_plugin (total: 43)
*** Signal 11

Version: 0.9.53 Python 3.11 FreeBSD 14.1

heitzmann commented 3 months ago

Any chance you can get some debug info to see exactly what caused the segfault (maybe with a debug build and gdb)? The built-in tests are not failing. It looks like you're using multiple threads, is that right?