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

pthread_atfork undefined link error in permissive mode #455

Open
kkysen opened this issue Oct 28, 2024 · 0 comments
Open

pthread_atfork undefined link error in permissive mode #455

kkysen opened this issue Oct 28, 2024 · 0 comments

Comments

@kkysen
Copy link
Contributor

kkysen commented Oct 28, 2024

When compartmentalizing dav1d and building with permissive mode (run ./rewrite.py --permissive-mode from immunant/dav1d/ia2), there's a link error saying pthread_atfork is undefined. pthread_atfork is called at

pthread_atfork(NULL, NULL, IA2_IGNORE(install_permissive_mode_handler));
, and so commenting out this call allows things to compile and link, but doesn't fix the issue, and will probably break if fork is ever called. pthread_atfork is defined in libc.so, and providing libc.so as an explicit argument did not work like it did for __tls_get_addr@@GLIBC_2.3 and ld.so. Furthermore, this error used to not happen, and then all of a sudden it started happening, so I'm not sure what changed.

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

No branches or pull requests

1 participant