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

Use GNU/Linux frame registration code for FreeBSD too #3439

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

MalloryA
Copy link
Contributor

@MalloryA MalloryA commented Dec 20, 2022

Description

This change prevents a long hang when a program exits.

FreeBSD's __deregister_frame and __register_frame implementations are ported from GCC, which is why we should be using the same frame registration code for FreeBSD and GNU/Linux.

Link: https://github.com/freebsd/freebsd-src/blob/release/13.1.0/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c#L241-L299
Fixes: #3373

Review

  • Add a short description of the change to the CHANGELOG.md file

This change prevents a long hang when a program exits.

FreeBSD's `__deregister_frame` and `__register_frame` implementations
are ported from GCC, which is why we should be using the same frame
registration code for FreeBSD and GNU/Linux.

Link: https://github.com/freebsd/freebsd-src/blob/release/13.1.0/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c#L241-L299
Fixes: wasmerio#3373
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Merging!

@syrusakbary syrusakbary merged commit b90fb24 into wasmerio:master Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FreeBSD: wasmer hangs after running WASM file
2 participants