On 2023/01/24 15:24, nature wrote: > > "Theo de Raadt" <dera...@openbsd.org> writes: > > > I'm very confident we can make it through this last phase, in which case > > the next release will ship with xonly. Otherwise, we'll slow the > > process down. Not going to slow it down yet. Thanks for participating > > in snapshots and helping us make a better world. > > Thank you Theo for building this wonderful system which is (also in my > opinion) a step towards a better world! I am very glad if I can be of > any help. > > > Stuart Henderson <s...@spacehopper.org> writes: > > > Very unlikely to be the problem here, but don't use -U when you're > > updating packages, it's a shortcut for when you install a new package > > and need to get the immediate dependencies updated, but might leave > > other installed packages with a broken mixture of libraries. (i.e. > > speed hack but might not always give good results). > > > > The normal way to update all packages is just "pkg_add -u". > > Okay, thank you for the explaination, I initially tried with pkg_add -u > But then I tried -Uu since I thought it was more "thorough", forcing > everything to update. > > >> (+) Video --vid=1 (*) 'Presented By EMBER' (hevc 1920x1080 23.976fps) > >> Video --vid=2 [P] 'cover.jpg' (mjpeg) > >> (+) Audio --aid=1 --alang=jpn (*) (aac 2ch 44100Hz) > >> (+) Subs --sid=1 --slang=eng (*) (ass) > >> File tags: > >> Title: S01E05-More Than a Nosebleed, but Less Than a Kiss > >> Segmentation fault (core dumped) > > > > https://www.openbsd.org/faq/ports/ports.html#Backtrace may give us some > > clues as to where the problem is. > > Okay, so to expand, I think the problem seems to be at the level of the > codec code since not only mpv segfault, but vlc and mplayer... Even more > so, each time I try to play a video in my web browser (chromium-based), > the tab crashes as well. > > So followed the FAQ that you linked, fortunately there was a debug-mpv > package in the ports, so I'll inline the little report I made with it. > I tried to play files with different video codecs (hevc and vp9) and > they both produce the following error: >
> This is the core after trying to play a video encoded in hevc: > > $ egdb mpv mpv.core > > > GNU gdb (GDB) 9.2 > Copyright (C) 2020 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-unknown-openbsd7.2". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>. > Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from mpv... > Reading symbols from /usr/local/bin/.debug/mpv.dbg... > [New process 590111] > [New process 446975] > [New process 584337] > [New process 382906] > [New process 408449] > [New process 326071] > [New process 344625] > [New process 397508] > [New process 420988] > [New process 163934] > [New process 532396] > [New process 397225] > [New process 506725] > [New process 121303] > Core was generated by `mpv'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0x00000bdcab34912c in ff_imdct_half_avx.pre () from > /usr/local/lib/libavcodec.so.25.0 > [Current thread is 1 (process 590111)] Thanks - this might be fixed by a recent commit to ports/graphics/ffmpeg (you can try updating yourself if you have the ports tree installed, or wait for the next package snapshot). But other changes may be needed too. This is being actively looked at. General hint about GDB (though I think at this point we probably don't need more): if you type "bt" at that point hopefully it will give you a list of other functions that were called prior to the one which is immediately printed (ff_imdct_half_avx.pre in this case), which can sometimes be helpful. And in the case where there are entries coming from libraries (like libavcodec in this case), installing the debug-package for the library can be helpful too (this one is from ffmpeg, and there's a "debug-ffmpeg" package). > This is the core after trying to play a video file encoded with vp9: > > $ egdb mpv mpv.core > > .. > #0 0x0000099a1ac9ff51 in ff_fft_calc_sse () from > /usr/local/lib/libavcodec.so.25.0 > [Current thread is 1 (process 308636)] I think this one in particular (fft) is very likely to be fixed by the ffmpeg commit.