Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault during extrude() when both=True #1550

Open
greyltc opened this issue Mar 26, 2024 · 2 comments
Open

segfault during extrude() when both=True #1550

greyltc opened this issue Mar 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@greyltc
Copy link
Contributor

greyltc commented Mar 26, 2024

To Reproduce

The error is here on the 2.4.0 release and on 4f2cec0 with the OCP 7.7.2.0 release, but this error has been here a while for me I think (for a year or more, just getting around to reporting it now).

It shows up during the standard tests:

python -m pytest tests

But it's much easier to produce like this:

$ python -c 'import cadquery; cadquery.Workplane("XZ").circle(1.0).extrude(1.0, both=True)'
[pumpkin:77621:0:77621] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x38)
==== backtrace (tid:  77621) ====
 0 0x000000000003c770 __sigaction()  ???:0
 1 0x0000000000058de2 TopoDS_Builder::Add()  ???:0
 2 0x00000000001ca19c ShapeUpgrade_UnifySameDomain::IntUnifyFaces()  ???:0
 3 0x00000000001c4129 ShapeUpgrade_UnifySameDomain::UnifyFaces()  ???:0
 4 0x00000000001c6e29 ShapeUpgrade_UnifySameDomain::Build()  ???:0
 5 0x00000000056b8ce1 std::vector<unsigned short, std::allocator<unsigned short> >::_M_default_append()  ???:0
 6 0x0000000000ea9365 std::__detail::_Map_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, void*>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, void*> >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[]()  ???:0
 7 0x000000000017d0e1 PyToken_OneChar()  ???:0
 8 0x000000000015b0dc _PyObject_MakeTpCall()  ???:0
 9 0x00000000001665d3 _PyEval_EvalFrameDefault()  ???:0
10 0x000000000021fae4 PyEval_EvalCode()  ???:0
11 0x000000000021f4cc PyEval_EvalCode()  ???:0
12 0x000000000023cd03 _PyLong_FromTime_t()  ???:0
13 0x0000000000238e0a PyUnicode_DecodeASCII()  ???:0
14 0x000000000022dbad PyRun_StringFlags()  ???:0
15 0x000000000022da20 PyRun_SimpleStringFlags()  ???:0
16 0x0000000000247f5e Py_RunMain()  ???:0
17 0x00000000002131eb Py_BytesMain()  ???:0
18 0x0000000000025cd0 __libc_init_first()  ???:0
19 0x0000000000025d8a __libc_start_main()  ???:0
20 0x0000000000001045 _start()  ???:0
=================================

works fine:

$ python -c 'import cadquery; cadquery.Workplane("XZ").circle(1.0).extrude(1.0, both=False)'

Backtrace

platform linux -- Python 3.11.8, pytest-8.1.1, pluggy-1.4.0
PySide6 6.6.2 -- Qt runtime 6.6.2 -- Qt compiled 6.6.2
rootdir: REDACTED/python-cadquery/src/cadquery
plugins: pylama-7.7.1, flaky-3.7.0, ordering-0.6, xvfb-2.0.0, cov-4.1.0, mock-3.12.0, anyio-4.3.0, forked-1.6.0, qt-4.4.0, rerunfailures-14.0, dash-2.15.0, asyncio-0.23.6, hypothesis-6.99.11
asyncio: mode=Mode.STRICT
collected 540 items / 18 deselected / 522 selected                                                                                                                                                                                                                                                                     

tests/test_assembly.py .........................................................................                                                                                                                                                                                                                 [ 13%]
tests/test_cad_objects.py .....................................                                                                                                                                                                                                                                                  [ 21%]
tests/test_cadquery.py ...................................................Fatal Python error: Segmentation fault

Current thread 0x0000780a36619740 (most recent call first):
  File "REDACTED/python-cadquery/src/cadquery/cadquery/occ_impl/shapes.py", line 385 in clean
  File "REDACTED/python-cadquery/src/cadquery/cadquery/cq.py", line 3278 in <listcomp>
  File "REDACTED/python-cadquery/src/cadquery/cadquery/cq.py", line 3277 in _combineWithBase
  File "REDACTED/python-cadquery/src/cadquery/cadquery/cq.py", line 3127 in extrude
  File "REDACTED/python-cadquery/src/cadquery/tests/test_cadquery.py", line 3619 in testExtrude
  File "/usr/lib/python3.11/unittest/case.py", line 579 in _callTestMethod
  File "/usr/lib/python3.11/unittest/case.py", line 623 in run
  File "/usr/lib/python3.11/unittest/case.py", line 678 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/unittest.py", line 321 in runtest
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 172 in pytest_runtest_call
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 146 in <lambda>
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 340 in from_call
  File "/usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 145 in _call_runtest_hook
  File "/usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 149 in call_and_report
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 134 in runtestprotocol
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 115 in pytest_runtest_protocol
  File "/usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 89 in pytest_runtest_protocol
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 364 in pytest_runtestloop
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 339 in _main
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 285 in wrap_session
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 332 in pytest_cmdline_main
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/config/__init__.py", line 174 in main
  File "/usr/lib/python3.11/site-packages/_pytest/config/__init__.py", line 197 in console_main
  File "/usr/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: markupsafe._speedups, zmq.backend.cython.context, zmq.backend.cython.message, zmq.backend.cython.socket, zmq.backend.cython._device, zmq.backend.cython._poll, zmq.backend.cython._proxy_steerable, zmq.backend.cython._version, zmq.backend.cython.error, zmq.backend.cython.utils, tornado.speedups, psutil._psutil_linux, psutil._psutil_posix, _cffi_backend, simplejson._speedups, xxsubtype, shiboken6.Shiboken, PySide6.QtCore, PySide6.QtGui, PySide6.QtWidgets, PySide6.QtTest, vtkmodules.vtkCommonCore, vtkmodules.vtkCommonMath, vtkmodules.vtkCommonTransforms, vtkmodules.vtkCommonDataModel, vtkmodules.vtkCommonExecutionModel, vtkmodules.vtkCommonMisc, vtkmodules.vtkFiltersCore, 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, matplotlib._c_internal_utils, PIL._imaging, matplotlib._path, kiwisolver._cext, ezdxf.acc.vector, ezdxf.acc.matrix44, ezdxf.acc.construct, ezdxf.acc.bezier4p, ezdxf.acc.bezier3p, ezdxf.acc.bspline, pandas._libs.tslibs.np_datetime, pandas._libs.tslibs.dtypes, pandas._libs.tslibs.base, pandas._libs.tslibs.nattype, pandas._libs.tslibs.timezones, pandas._libs.tslibs.tzconversion, pandas._libs.tslibs.ccalendar, pandas._libs.tslibs.fields, pandas._libs.tslibs.timedeltas, pandas._libs.tslibs.timestamps, pandas._libs.properties, pandas._libs.tslibs.offsets, pandas._libs.tslibs.parsing, pandas._libs.tslibs.conversion, pandas._libs.tslibs.period, pandas._libs.tslibs.vectorized, pandas._libs.ops_dispatch, pandas._libs.missing, pandas._libs.hashtable, pandas._libs.algos, pandas._libs.interval, pandas._libs.tslib, pandas._libs.lib, pandas._libs.hashing, pandas._libs.ops, numexpr.interpreter, pandas._libs.arrays, pandas._libs.index, pandas._libs.join, pandas._libs.sparse, pandas._libs.reduction, pandas._libs.indexing, pandas._libs.internals, pandas._libs.writers, pandas._libs.window.aggregations, pandas._libs.window.indexers, pandas._libs.reshape, pandas._libs.tslibs.strptime, pandas._libs.groupby, pandas._libs.testing, pandas._libs.parsers, pandas._libs.json, _nlopt, ezdxf.acc.mapbox_earcut, vtkmodules.vtkIOXMLParser, vtkmodules.vtkIOXML, vtkmodules.vtkRenderingCore, vtkmodules.vtkFiltersGeneral, vtkmodules.vtkFiltersExtraction, casadi._casadi, vtkmodules.vtkIOCore, vtkmodules.vtkImagingCore, vtkmodules.vtkIOImage, vtkmodules.vtkRenderingContext2D, vtkmodules.vtkRenderingFreeType, vtkmodules.vtkRenderingSceneGraph, vtkmodules.vtkRenderingVtkJS, vtkmodules.vtkIOExport, vtkmodules.vtkFiltersSources, vtkmodules.vtkInteractionWidgets, vtkmodules.vtkRenderingAnnotation, vtkmodules.vtkInteractionStyle (total: 113)
Segmentation fault      (core dumped) python -m pytest tests

Core dump

Mar 26 16:51:59 systemd[1]: Started Process Core Dump (PID 37927/UID 0).
Mar 26 16:52:01 systemd-coredump[37928]: [🡕] Process 37898 (python) of user 1000 dumped core.
                                                
                                                Stack trace of thread 37898:
                                                #0  0x0000780a35eab32c n/a (libc.so.6 + 0x8d32c)
                                                #1  0x0000780a35e5a6c8 raise (libc.so.6 + 0x3c6c8)
                                                #2  0x0000780a35e5a770 n/a (libc.so.6 + 0x3c770)
                                                #3  0x0000780a1f15bde2 _ZNK14TopoDS_Builder3AddER12TopoDS_ShapeRKS0_ (libTKBRep.so.7.7 + 0x58de2)
                                                #4  0x0000780a1f3ca19c _ZN28ShapeUpgrade_UnifySameDomain13IntUnifyFacesERK12TopoDS_ShapeRK26NCollection_IndexedDataMapIS0_16NCollection_ListIS0_E23TopTools_ShapeMapHasherERK19NCollection_DataMapIS0_15NCollection_MapIS0_S6_ES6_ERKSC_ (libTKShHealing.so.7.7 + 0x1ca19c)
                                                #5  0x0000780a1f3c4129 _ZN28ShapeUpgrade_UnifySameDomain10UnifyFacesEv (libTKShHealing.so.7.7 + 0x1c4129)
                                                #6  0x0000780a1f3c6e29 _ZN28ShapeUpgrade_UnifySameDomain5BuildEv (libTKShHealing.so.7.7 + 0x1c6e29)
                                                #7  0x0000780a26f91905 n/a (OCP.cpython-311-x86_64-linux-gnu.so + 0x5391905)
                                                #8  0x0000780a227adb38 n/a (OCP.cpython-311-x86_64-linux-gnu.so + 0xbadb38)
                                                #9  0x0000780a3617d0e1 n/a (libpython3.11.so.1.0 + 0x17d0e1)
                                                #10 0x0000780a3615b0dc _PyObject_MakeTpCall (libpython3.11.so.1.0 + 0x15b0dc)
                                                #11 0x0000780a361665d3 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1665d3)
                                                #12 0x0000780a361ad613 n/a (libpython3.11.so.1.0 + 0x1ad613)
                                                #13 0x0000780a361ad02e n/a (libpython3.11.so.1.0 + 0x1ad02e)
                                                #14 0x0000780a361983dc PyObject_Call (libpython3.11.so.1.0 + 0x1983dc)
                                                #15 0x0000780a3616a64d _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x16a64d)
                                                #16 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #17 0x0000780a3615fe74 _PyObject_FastCallDictTstate (libpython3.11.so.1.0 + 0x15fe74)
                                                #18 0x0000780a36195bdd _PyObject_Call_Prepend (libpython3.11.so.1.0 + 0x195bdd)
                                                #19 0x0000780a3625a952 n/a (libpython3.11.so.1.0 + 0x25a952)
                                                #20 0x0000780a3615b0dc _PyObject_MakeTpCall (libpython3.11.so.1.0 + 0x15b0dc)
                                                #21 0x0000780a361665d3 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1665d3)
                                                #22 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #23 0x0000780a3616a64d _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x16a64d)
                                                #24 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #25 0x0000780a3615fe74 _PyObject_FastCallDictTstate (libpython3.11.so.1.0 + 0x15fe74)
                                                #26 0x0000780a36195bdd _PyObject_Call_Prepend (libpython3.11.so.1.0 + 0x195bdd)
                                                #27 0x0000780a3625a952 n/a (libpython3.11.so.1.0 + 0x25a952)
                                                #28 0x0000780a36198366 PyObject_Call (libpython3.11.so.1.0 + 0x198366)
                                                #29 0x0000780a3616a64d _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x16a64d)
                                                #30 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #31 0x0000780a3616a64d _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x16a64d)
                                                #32 0x0000780a361acf2f n/a (libpython3.11.so.1.0 + 0x1acf2f)
                                                #33 0x0000780a3616a64d _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x16a64d)
                                                #34 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #35 0x0000780a3615fe74 _PyObject_FastCallDictTstate (libpython3.11.so.1.0 + 0x15fe74)
                                                #36 0x0000780a36195bdd _PyObject_Call_Prepend (libpython3.11.so.1.0 + 0x195bdd)
                                                #37 0x0000780a3625a952 n/a (libpython3.11.so.1.0 + 0x25a952)
                                                #38 0x0000780a3615b0dc _PyObject_MakeTpCall (libpython3.11.so.1.0 + 0x15b0dc)
                                                #39 0x0000780a361665d3 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1665d3)
                                                #40 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #41 0x0000780a3616a64d _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x16a64d)
                                                #42 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #43 0x0000780a3615fe74 _PyObject_FastCallDictTstate (libpython3.11.so.1.0 + 0x15fe74)
                                                #44 0x0000780a36195bdd _PyObject_Call_Prepend (libpython3.11.so.1.0 + 0x195bdd)
                                                #45 0x0000780a3625a952 n/a (libpython3.11.so.1.0 + 0x25a952)
                                                #46 0x0000780a3615b0dc _PyObject_MakeTpCall (libpython3.11.so.1.0 + 0x15b0dc)
                                                #47 0x0000780a361665d3 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1665d3)
                                                #48 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #49 0x0000780a3616a64d _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x16a64d)
                                                #50 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #51 0x0000780a3615fe74 _PyObject_FastCallDictTstate (libpython3.11.so.1.0 + 0x15fe74)
                                                #52 0x0000780a36195bdd _PyObject_Call_Prepend (libpython3.11.so.1.0 + 0x195bdd)
                                                #53 0x0000780a3625a952 n/a (libpython3.11.so.1.0 + 0x25a952)
                                                #54 0x0000780a3615b0dc _PyObject_MakeTpCall (libpython3.11.so.1.0 + 0x15b0dc)
                                                #55 0x0000780a361665d3 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1665d3)
                                                #56 0x0000780a3621fae4 n/a (libpython3.11.so.1.0 + 0x21fae4)
                                                #57 0x0000780a3621f4cc PyEval_EvalCode (libpython3.11.so.1.0 + 0x21f4cc)
                                                #58 0x0000780a362358b2 n/a (libpython3.11.so.1.0 + 0x2358b2)
                                                #59 0x0000780a3617512a n/a (libpython3.11.so.1.0 + 0x17512a)
                                                #60 0x0000780a36174237 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x174237)
                                                #61 0x0000780a361665d3 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1665d3)
                                                #62 0x0000780a3618d9b0 _PyFunction_Vectorcall (libpython3.11.so.1.0 + 0x18d9b0)
                                                #63 0x0000780a36248557 n/a (libpython3.11.so.1.0 + 0x248557)
                                                
                                                Stack trace of thread 37905:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a118ae9b0 _Z9th_workerPv (interpreter.cpython-311-x86_64-linux-gnu.so + 0x1b9b0)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37906:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a118ae9b0 _Z9th_workerPv (interpreter.cpython-311-x86_64-linux-gnu.so + 0x1b9b0)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37911:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a118ae9b0 _Z9th_workerPv (interpreter.cpython-311-x86_64-linux-gnu.so + 0x1b9b0)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37909:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a118ae9b0 _Z9th_workerPv (interpreter.cpython-311-x86_64-linux-gnu.so + 0x1b9b0)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37907:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a118ae9b0 _Z9th_workerPv (interpreter.cpython-311-x86_64-linux-gnu.so + 0x1b9b0)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37908:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a118ae9b0 _Z9th_workerPv (interpreter.cpython-311-x86_64-linux-gnu.so + 0x1b9b0)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37904:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a118ae9b0 _Z9th_workerPv (interpreter.cpython-311-x86_64-linux-gnu.so + 0x1b9b0)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37923:
                                                #0  0x0000780a35f2488d syscall (libc.so.6 + 0x10688d)
                                                #1  0x0000780a1e6f014c n/a (libtbb.so.12 + 0xf14c)
                                                #2  0x0000780a1e709be3 n/a (libtbb.so.12 + 0x28be3)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37915:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a1d6af38d _ZN18Standard_Condition4WaitEv (libTKernel.so.7.7 + 0x8b38d)
                                                #3  0x0000780a1d6ada24 _ZN14OSD_ThreadPool16EnumeratedThread13performThreadEv (libTKernel.so.7.7 + 0x89a24)
                                                #4  0x0000780a1d6ada6e _ZN14OSD_ThreadPool16EnumeratedThread9runThreadEPv (libTKernel.so.7.7 + 0x89a6e)
                                                #5  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #6  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37910:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a118ae9b0 _Z9th_workerPv (interpreter.cpython-311-x86_64-linux-gnu.so + 0x1b9b0)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37913:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a1d6af38d _ZN18Standard_Condition4WaitEv (libTKernel.so.7.7 + 0x8b38d)
                                                #3  0x0000780a1d6ada24 _ZN14OSD_ThreadPool16EnumeratedThread13performThreadEv (libTKernel.so.7.7 + 0x89a24)
                                                #4  0x0000780a1d6ada6e _ZN14OSD_ThreadPool16EnumeratedThread9runThreadEPv (libTKernel.so.7.7 + 0x89a6e)
                                                #5  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #6  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37916:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a1d6af38d _ZN18Standard_Condition4WaitEv (libTKernel.so.7.7 + 0x8b38d)
                                                #3  0x0000780a1d6ada24 _ZN14OSD_ThreadPool16EnumeratedThread13performThreadEv (libTKernel.so.7.7 + 0x89a24)
                                                #4  0x0000780a1d6ada6e _ZN14OSD_ThreadPool16EnumeratedThread9runThreadEPv (libTKernel.so.7.7 + 0x89a6e)
                                                #5  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #6  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37917:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a1d6af38d _ZN18Standard_Condition4WaitEv (libTKernel.so.7.7 + 0x8b38d)
                                                #3  0x0000780a1d6ada24 _ZN14OSD_ThreadPool16EnumeratedThread13performThreadEv (libTKernel.so.7.7 + 0x89a24)
                                                #4  0x0000780a1d6ada6e _ZN14OSD_ThreadPool16EnumeratedThread9runThreadEPv (libTKernel.so.7.7 + 0x89a6e)
                                                #5  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #6  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37914:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a1d6af38d _ZN18Standard_Condition4WaitEv (libTKernel.so.7.7 + 0x8b38d)
                                                #3  0x0000780a1d6ada24 _ZN14OSD_ThreadPool16EnumeratedThread13performThreadEv (libTKernel.so.7.7 + 0x89a24)
                                                #4  0x0000780a1d6ada6e _ZN14OSD_ThreadPool16EnumeratedThread9runThreadEPv (libTKernel.so.7.7 + 0x89a6e)
                                                #5  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #6  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37912:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a1d6af38d _ZN18Standard_Condition4WaitEv (libTKernel.so.7.7 + 0x8b38d)
                                                #3  0x0000780a1d6ada24 _ZN14OSD_ThreadPool16EnumeratedThread13performThreadEv (libTKernel.so.7.7 + 0x89a24)
                                                #4  0x0000780a1d6ada6e _ZN14OSD_ThreadPool16EnumeratedThread9runThreadEPv (libTKernel.so.7.7 + 0x89a6e)
                                                #5  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #6  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37919:
                                                #0  0x0000780a35f2488d syscall (libc.so.6 + 0x10688d)
                                                #1  0x0000780a1e6f014c n/a (libtbb.so.12 + 0xf14c)
                                                #2  0x0000780a1e709be3 n/a (libtbb.so.12 + 0x28be3)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37925:
                                                #0  0x0000780a35f2488d syscall (libc.so.6 + 0x10688d)
                                                #1  0x0000780a1e6f014c n/a (libtbb.so.12 + 0xf14c)
                                                #2  0x0000780a1e709be3 n/a (libtbb.so.12 + 0x28be3)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37918:
                                                #0  0x0000780a35ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                #1  0x0000780a35ea8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                #2  0x0000780a1d6af38d _ZN18Standard_Condition4WaitEv (libTKernel.so.7.7 + 0x8b38d)
                                                #3  0x0000780a1d6ada24 _ZN14OSD_ThreadPool16EnumeratedThread13performThreadEv (libTKernel.so.7.7 + 0x89a24)
                                                #4  0x0000780a1d6ada6e _ZN14OSD_ThreadPool16EnumeratedThread9runThreadEPv (libTKernel.so.7.7 + 0x89a6e)
                                                #5  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #6  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37922:
                                                #0  0x0000780a35f2488d syscall (libc.so.6 + 0x10688d)
                                                #1  0x0000780a1e6f014c n/a (libtbb.so.12 + 0xf14c)
                                                #2  0x0000780a1e709be3 n/a (libtbb.so.12 + 0x28be3)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37924:
                                                #0  0x0000780a35f2488d syscall (libc.so.6 + 0x10688d)
                                                #1  0x0000780a1e6f014c n/a (libtbb.so.12 + 0xf14c)
                                                #2  0x0000780a1e709be3 n/a (libtbb.so.12 + 0x28be3)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37921:
                                                #0  0x0000780a35f2488d syscall (libc.so.6 + 0x10688d)
                                                #1  0x0000780a1e6f014c n/a (libtbb.so.12 + 0xf14c)
                                                #2  0x0000780a1e709be3 n/a (libtbb.so.12 + 0x28be3)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                
                                                Stack trace of thread 37920:
                                                #0  0x0000780a35f2488d syscall (libc.so.6 + 0x10688d)
                                                #1  0x0000780a1e6f014c n/a (libtbb.so.12 + 0xf14c)
                                                #2  0x0000780a1e709be3 n/a (libtbb.so.12 + 0x28be3)
                                                #3  0x0000780a35ea955a n/a (libc.so.6 + 0x8b55a)
                                                #4  0x0000780a35f26a3c n/a (libc.so.6 + 0x108a3c)
                                                ELF object binary architecture: AMD x86-64

Environment

OS: Arch Linux

Was CadQuery installed using Conda?: no, but via https://aur.archlinux.org/packages/python-cadquery

Using: Python interpreter

@greyltc greyltc added the bug Something isn't working label Mar 26, 2024
@greyltc greyltc changed the title segfault during extrusion test segfault during extrude() when both=True Mar 26, 2024
@adam-urbanczyk
Copy link
Member

Hm, does it work for you when installed via conda?

@jmwright
Copy link
Member

jmwright commented Apr 4, 2024

I cannot reproduce when installed via conda or pip with Python 3.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants