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

Some tests segfault #2

Closed
erooke opened this issue Oct 9, 2024 · 5 comments · Fixed by #3
Closed

Some tests segfault #2

erooke opened this issue Oct 9, 2024 · 5 comments · Fixed by #3
Labels
help wanted Extra attention is needed

Comments

@erooke
Copy link
Owner

erooke commented Oct 9, 2024

For some reason the following tests segfault

disabledTests = [
# TODO: why do these segfault?
"test_colors_assy0"
"test_colors_assy1"
"test_colors_fused_assy"
"testExtrude"
"testDXF"
];

I do not know why yet.

@erooke erooke added the help wanted Extra attention is needed label Oct 9, 2024
@erooke erooke changed the title Some cadquery tests segfault Some tests segfault Oct 9, 2024
@erooke
Copy link
Owner Author

erooke commented Oct 9, 2024

It appears that build123d also has a segfaulting test. I suspect I'm doing something wrong when I build ocp.

# TODO: why does this segfault
"test_ellipse_rotation"

@erooke
Copy link
Owner Author

erooke commented Oct 10, 2024

cq-warehouse has segfaulting tests as well:

disabledTests = [
"test_five_sprocket_chain"
"test_missing_link"
"test_oblique_plane"
"test_assemble_chain_transmission"
"test_make_link"
];

I am assuming that these all share a root cause, or similar cause anyway.

All of the tests which construct a Chain object segfault while the rest don't.

@erooke
Copy link
Owner Author

erooke commented Oct 11, 2024

Both the build123d and cq-warehouse tests trigger the segfault by trying to extrude with "both". Interestingly not every call to extrude with "both" seems to trigger this segfault. build123d in particular has other tests with this function call which do not segfault.

@erooke
Copy link
Owner Author

erooke commented Oct 11, 2024

This looks like a known issue: CadQuery/OCP#149

@erooke
Copy link
Owner Author

erooke commented Oct 11, 2024

Things which have not helped:

  • switching from gcc to clang15
  • this diff for pywrap
  • the patches in occt-feedstock
  • using the pre-generated ocp source files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant