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

Portable backtrace mechanism #59

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Portable backtrace mechanism #59

merged 1 commit into from
Jul 23, 2024

Conversation

cmnrd
Copy link
Contributor

@cmnrd cmnrd commented Jul 17, 2024

This makes the backtrace mechanism that we currently use for assertions portable. The current mechanism was implemented under the assumption, that all Linux distributions provide execinfo.h, which is not the case (e.g. Alpine has dropped libexecinfo). This PR provides a more robust implementation that uses FindBacktrace to find the correct backtrace implementation.

This change allows us to simplify the docker support in LF.

@cmnrd cmnrd added the enhancement Enhancement of existing feature label Jul 17, 2024
@cmnrd cmnrd force-pushed the cmake-execinfo branch 4 times, most recently from 027f8a0 to 63ff906 Compare July 17, 2024 12:16
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Jul 17, 2024
Alpine has dropped support for libexecinfo since version 3.17. This PR pulls in
lf-lang/reactor-cpp#59 which makes the compilation of
reactor-cpp more robust, so that it can handle if backtrace support is not
available or provided by an alternative implementation. Consequently, we can
remove the current workarounds in the LF code generator.
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Jul 17, 2024
Alpine has dropped support for libexecinfo since version 3.17. This PR pulls in
lf-lang/reactor-cpp#59 which makes the compilation of
reactor-cpp more robust, so that it can handle if backtrace support is not
available or provided by an alternative implementation. Consequently, we can
remove the current workarounds in the LF code generator.
@cmnrd cmnrd merged commit dfdac2c into master Jul 23, 2024
8 checks passed
@cmnrd cmnrd deleted the cmake-execinfo branch July 23, 2024 09:53
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Jul 23, 2024
Alpine has dropped support for libexecinfo since version 3.17. This PR pulls in
lf-lang/reactor-cpp#59 which makes the compilation of
reactor-cpp more robust, so that it can handle if backtrace support is not
available or provided by an alternative implementation. Consequently, we can
remove the current workarounds in the LF code generator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants