Skip to content

Illegal Instruction when compiling libfive with MXE and using in Windows #578

@gsohler

Description

@gsohler

Description

[Description of the issue]

I have used libfive in pythonscad ( www.pythonscad.org) and compiled it with mxe for windows.
Some users report a illegal instruction segfault which happens inside libfive
[Steps to reproduce]

last understandable trace is libfive::OracleClause::installlibfive::TransformedOracleClause (name=...) at /home/gsohler/git/openscad/submodules/libfive/libfive/src/../include/libfive/oracle/oracle_clause.hpp:70

I have no idea, what that code does and why it causes segfaults in some systems, by maybe you can share a hint with me ?

The main bad issue about that is, that it happens in a static constructor which crashes the application even though the user does not need libfive

[What did you expect to happen? What happened? All the time?]
no crash

[Are there any error messages printed to the console?]

nope, only debugger reveals the real cause, windows is very silent about that

Versions

  • Operating system:Windows10
  • libfive commit hash: b1ea998
    • Is this the latest commit to master? no
  • Qt version (if applicable): Qt5

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions