Mystery segfault when importing from folder

Bug #75421 reported by Tristan Brindle
2
Affects Status Importance Assigned to Milestone
KungFu
New
Undecided
Unassigned

Bug Description

Not Fight Club this time, but Cruel Intentions (region 1). I have the video_ts folder for this DVD saved on my hard drive. There are 4 titles; Kung Fu often experiences a segmentation fault while scanning/thumbnailing the last title, a deleted scene.

I would imagine that it's actually GStreamer that's crashing, rather than Python, but I can't seem to put my finger on why.

The last few entries in the KF log look like this:

INFO kf_gst Title 2 has duration 97:24
INFO kf_gst Title 3 has duration 21:37
INFO kf_gst Title 4 has duration 6:32
Segmentation fault (core dumped)

I've run it with GST_DEBUG=3:python:5, which gives the last action as:
0:00:11.615822000 25166 0x1051a60 DEBUG pygst gstcaps.override:423:_wrap_gst_caps_tp_dealloc: unreffing caps video/x-raw-yuv, format=(fourcc)I420, width=(int)720, height=(int)480, pixel-aspect-ratio=(fraction)8/9, framerate=(fraction)30000/1001 at 0xfa2f40 with refcount 3
Segmentation fault (core dumped)

From what I can tell, the next step should be to pass the data to pngenc: however, this clearly isn't happening.

Significantly however, this bug only seems to trigger when Kung Fu is first run. If you stop the scanning progress and change sources, then stop again and change back, it works correctly more often than not.

I'll look into it a bit more to see if I can figure out what's going wrong, so that this can be reported upstream and/or you can put a workaround in Kung Fu :)

Revision history for this message
Tristan Brindle (tristan-brindle) wrote :

Attached is the result of running:

$ GST_DEBUG=3,pngenc:5,py*:5 kungfu

I forgot to mention that I'm running on AMD64, which might be significant.

If you need any more info, let me know :)

Revision history for this message
Tristan Brindle (tristan-brindle) wrote :

More info: I can also trigger this bug using -- yes! -- the infamous Pesky Fight Club DVD (the actual disc this time, rather than a video_ts folder).

This time however it doesn't happen straight away when running KungFu, but rather by the following steps

1) Launch KF. If it starts reading from the DVD drive, tell it to stop.
2) If necessary, change sources to a video_ts folder
3) Stop reading titles and change sources back to the DVD drive
4) Wait for KF to crash (it happens on title 6 of this DVD).

The debug info is pretty much identical to that attached above.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.