GNOME Bugzilla – Bug 743910
videocrop: crash when launching with different properties
Last modified: 2015-04-23 19:15:56 UTC
When the top/left/right/bottom values are anything more than video width/height, then the pipeline crashes. Sample pipeline is as follows. gst-launch-1.0 videotestsrc num-buffers=20 ! videcrop bottom=214748364 ! videoconvert ! autovideosink The values should be handled properly as per video height/width
Confirmed.
I get no crash with latest master, I get a buffer pool error and the pipeline stops properly. No uninitialized reports from valgrind.
There was a leak on the error path triggered by this test case, fixed by: commit 84fdf50b2f98951a32fa14802b62621f1105cd35 Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> Date: Tue Apr 7 11:38:31 2015 +0100 basesrc: fix pool leak on allocation query error path It could be triggered by: gst-launch-1.0 videotestsrc num-buffers=20 ! videcrop bottom=214748364 ! videoconvert ! autovideosink Spotted while testing: https://bugzilla.gnome.org/show_bug.cgi?id=743910 Nicolas, were you using latest master when you reproduced the crash ?
I just tried again, and I'm getting the crash now. Debugging.
The leak above got fixed twice - by myself, and by someone else - leading to a double free after the merge did not conflict. Fixed. So I'm still not getting the original reported crash.
Hi Vincent, The crash is same as videobox crash in 743909. I have updated the stack in that bug. Funny part is, it crashes when bottom=1677722, but does not when it is bottom=1677721. So there is some logic which needs to be checked.
Let's merge those two bugs then if they're virtually identical.. *** This bug has been marked as a duplicate of bug 743909 ***