-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
Segfault in libde265
in gst-discoverer-1.0
#425
Comments
Thanks. Since dec265 apparently works, my uninformed guess is that this is an issue in the libde265dec gstreamer plugin. I'll have a closer look later. |
I tried with a slightly different gstreamer version, but could not reproduce it.
your command line gives:
Ubuntu 22.04, libde265 v1.0.12 |
I'll check some older NixOS commits and report back soon. If it's reproducible on older NixOS versions I'll check some other distros in containers in case it's a weird Nix-related build bug. |
As your Ubuntu seems to work I tried a simple debian container, but both bookworm and buster segfault. I started off from the official dockerhub
Then I installed gstreamer using:
Here's the buster segfault:
Here's the bookworm segfault:
The coredumps in my host's log suggest it's the same kind of crash (at least it's in libde265):
All these tests have been made on my It seems to be happening irrespective of what package I use. @farindk Should I move to a different bug tracker? Can you give me tips on where to start debugging? |
I can't reproduce on Arch Linux... Weird...
So an issue on the packaging side might be warranted. But I'm concerned about that this also happened in containers. |
Guys, I'm not sure if it's related but I've run hdrcopy by mistake today (instead of another command in bash) and just found out what it is (a part of libde265). This command just gives me a 'Segmentation fault' message. I dunno if it's ok. Just decided to report. I'm running Arch Linux and libde265 is 1.0.12. |
Not related. |
@farindk Thank you. So it's not actully used and segfault is normal? |
It's only development tool. It segfaults when the parameters are not correct. There is no input validation of any kind. It should not be installed as it is pretty useless for a normal user. I've opened #428 to make sure it is removed from any distributions. |
@farindk Got it. Thank you. |
Problem
Running
gst-discoverer-1.0 Dune_trunc.h265
causes a segfault inlibde265.so
.Dune_trunc.h265
contains the first 10 seconds of the 4K h265 bitstream for the movie Dune.Running
dec265
didn't have any problems with this file.Dune_trunc.zip
Debugging
I decided to post an issue on
libde265
because I think that the issue boils down to a double free inlibde265
.If
gstreamer
itself is the more likely culprit I'll repost this issue there.gdb backtrace
Here is the actual frame where a
delete
seems to cause the segfault.My first guess would be a double free in the
image_unit
data structure, though I haven't dug intolibde265
code yet.System
The text was updated successfully, but these errors were encountered: