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

Fedora & Alpine build segfaults due to vapoursynth (master) #878

Open
voidastro4 opened this issue Sep 3, 2024 · 3 comments
Open

Fedora & Alpine build segfaults due to vapoursynth (master) #878

voidastro4 opened this issue Sep 3, 2024 · 3 comments

Comments

@voidastro4
Copy link

voidastro4 commented Sep 3, 2024

I build av1an master on Fedora 40 successfully.

When running the result: Segmentation fault (core dumped)

valgrind -v av1an suggests the culprit may be vapoursynth:

vapoursynth provided by Fedora repos.

==8== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)
==8== 
==8== 2 errors in context 1 of 1:
==8== Jump to the invalid address stated on the next line
==8==    at 0x0: ???
==8==    by 0x4A1B03C: vsscript_createScript (in /usr/lib64/libvapoursynth-script.so.0.0.0)
==8==    by 0x3C1BFB: vapoursynth::vsscript::environment::Environment::new (in /home/user/av1an)
==8==    by 0x1AE22B: core::ops::function::FnOnce::call_once (in /home/user/av1an)
==8==    by 0x217159: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==8==    by 0x3334F1: once_cell::imp::initialize_or_wait (in /home/user/av1an)
==8==    by 0x13FE8B: once_cell::imp::OnceCell<T>::initialize (in /home/user/av1an)
==8==    by 0x1AEC6F: core::ops::function::FnOnce::call_once (in /home/user/av1an)
==8==    by 0x216E17: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==8==    by 0x3334F1: once_cell::imp::initialize_or_wait (in /home/user/av1an)
==8==    by 0x13FEE1: once_cell::imp::OnceCell<T>::initialize (in /home/user/av1an)
==8==    by 0x170A2D: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==8==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8== 
==8== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)
@voidastro4
Copy link
Author

voidastro4 commented Sep 3, 2024

Building vapoursynth from git master and using LD_PRELOAD to force av1an to use it did not help.
note: /home/user/libvapoursynth-script.so

==4== 2 errors in context 1 of 1:
==4== Jump to the invalid address stated on the next line
==4==    at 0x0: ???
==4==    by 0x49B12B6: vsscript_createScript (in /home/user/libvapoursynth-script.so)
==4==    by 0x3C1BFB: vapoursynth::vsscript::environment::Environment::new (in /home/user/av1an)
==4==    by 0x1AE22B: core::ops::function::FnOnce::call_once (in /home/user/av1an)
==4==    by 0x217159: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==4==    by 0x3334F1: once_cell::imp::initialize_or_wait (in /home/user/av1an)
==4==    by 0x13FE8B: once_cell::imp::OnceCell<T>::initialize (in /home/user/av1an)
==4==    by 0x1AEC6F: core::ops::function::FnOnce::call_once (in /home/user/av1an)
==4==    by 0x216E17: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==4==    by 0x3334F1: once_cell::imp::initialize_or_wait (in /home/user/av1an)
==4==    by 0x13FEE1: once_cell::imp::OnceCell<T>::initialize (in /home/user/av1an)
==4==    by 0x170A2D: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==4==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

@voidastro4
Copy link
Author

voidastro4 commented Sep 3, 2024

I tried the same thing with Alpine Linux.
Alpine Linux doesn't even have libvapoursynth so I built it from master.
Compiled fine.
Same error.

Seems like av1an is extremely brittle and only Arch is supported?

==5== 2 errors in context 1 of 1:
==5== Jump to the invalid address stated on the next line
==5==    at 0x0: ???
==5==    by 0x4AE2366: vsscript_createScript (in /usr/local/lib/libvapoursynth-script.so.0.0.0)
==5==    by 0x3C2EBB: vapoursynth::vsscript::environment::Environment::new (in /home/user/av1an)
==5==    by 0x1AE29B: core::ops::function::FnOnce::call_once (in /home/user/av1an)
==5==    by 0x216AD9: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==5==    by 0x335071: once_cell::imp::initialize_or_wait (in /home/user/av1an)
==5==    by 0x13FFDB: once_cell::imp::OnceCell<T>::initialize (in /home/user/av1an)
==5==    by 0x1AEEAF: core::ops::function::FnOnce::call_once (in /home/user/av1an)
==5==    by 0x2168A7: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==5==    by 0x335071: once_cell::imp::initialize_or_wait (in /home/user/av1an)
==5==    by 0x13FCA1: once_cell::imp::OnceCell<T>::initialize (in /home/user/av1an)
==5==    by 0x170ADD: once_cell::imp::OnceCell<T>::initialize::{{closure}} (in /home/user/av1an)
==5==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5== 
==5== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)

@voidastro4 voidastro4 changed the title Fedora 40 build of av1an segfaults due to vapoursynth Fedora & Alpine build segfaults due to vapoursynth (master) Sep 3, 2024
@voidastro4
Copy link
Author

voidastro4 commented Sep 3, 2024

Av1an Release source from 2 weeks ago same result

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