-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ffmpeg6 segmentation fault on Marvell PJ4Bv7 Processor rev 1 (v7l) for h264 (libx264) #6176
Comments
As i understand the issue is with x264 sublibrary. will try to upgtade it and let you know about result |
it seems the github mirror for x264 is no longer in sync with the official repository. I've switched back to https://code.videolan.org/videolan/x264 using latest commit. Once test builds complete you should be able to test out the resulting ffmpeg packages at #6177 |
Builds almost complete, you'll find a package for your arch here: https://github.com/SynoCommunity/spksrc/actions/runs/10021281364 |
Sorry, @th0ma7 . It will not help :( Already checked against debug versions of latest x264 and still old ffmpeg6. Obtained the same with the stacktrace:
will continue investigation. Let's go to discord to and discuss build-related stuff.... |
The things getting worse. I debugged against eligible gdb in however our packages are compiled against So, stacktrace above is not true. I wonder, why they miss gdb. Additionally will ask community to compile gdbserver for platform. It would be even better.... |
As mentionned here #6188 (comment) we do provide our own gdb as we faced this issue a few times and ended-up building our own. Hope this helps. |
Ok, so I'm ready to explain what went wrong and how to fix it. It happens because right after step 8 (segfault) we have:
Action Items so far:
Should be for my cpu: Hope, it helps to someone if they decide to optimize them NASes |
I wonder, your NAS DS414slim runs with armada370 which is no longer supported with DSM 7.2. So related to your third point I doubt Synology will ever rework this out, further as it runs a 3.2 kernel. Still, currently your arch is being built with armv7 grouping, while clearly it is of a armv7l type from your CPU output. Two things comes to mind:
... further looking, there isn't much ARMv7 nor ARMv7l specific enablement under the |
for at least spk/ffmpeg To check against https://github.com/icegood/spksrc/tree/fix/libpng_debug_builds at it fixes png bug Applicable for issue SynoCommunity#6176 Signed-off-by: Serhii Ivanov <[email protected]>
I usually build only via:
|
Have a look at line 216 of cross/ffmpeg6/Makefile. Play with those relatively to neon and vfp. Also much earlier there is another switch for asm. Maybe you'll be able to find a working configuration that we can create proper ifeq calls later on. |
I already found a working configuration by eliminating -mthumb. And it works fine. Next, from Thumb2 Standard:
And this is what happens. So , GCC from toolchain is buggy. And if before I hesitated to leave '-mthumb' on toolchain level or not, now I know: it MUST be disabled at all. |
Is this a new Bug?
Package Name
ffmpeg6
Package Version
6.0.1-3
Device Model
DS414slim
Device Architecture
ARMv7
Firmware Version
Version: 7.1.1-42962 Update 6
What happened?
transformation fails with segmentation fault
from mpg to mp4
Reproduction steps
OK to transform to avi. Output is:
NOT OK to transform to mp4. Output is:
Install Log
Service Log
Other Logs
The text was updated successfully, but these errors were encountered: