Segfault on select Titles

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
Tolonus
Posts: 14
Joined: Sat Dec 26, 2009 8:08 pm

Segfault on select Titles

Post by Tolonus »

Please describe the problem in as much detail as possible:
Certain Titles (likely with some degree of error in them by the looks of the logs) cause segfaults where prior versions did not. It wouldn't be surprising if there are flaws in the final video (earlier versions produce a seemingly fine output but I'm guessing they were more forgiving/ignored errors so later versions have a more correct behaviour), but Handbrake isn't exiting gracefully due to segfaults.

What are the steps to reproduce this problem:
Command line encodes (logs below)

What version of HandBrake you are running:
Tested Git versions 879a1512, foefd99. Compiled from source with gcc.

What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Debian Jessie.

If there was any exception or error displayed, please copy it and paste it here:
See Logs.

Please include the scan or encode log:

Successful encode with 879a1512, May 21. It breaks between here and version 4ca82bd (June 28)

Code: Select all

  Handbrake Automated Encoding Log - Script parameters for Title 5
Input Directory set to /home/tolonus/TestInput/Test/
Output Directory set to /home/tolonus/TestOutput/Title-5
Selected Title is 5
Numeric List of Subtitle Tracks is 
Numeric List of Audio Tracks is 
Audio Input Codec List is 
Audio Output Codec List is 
Fps of title detected as 23.976, interlaced count is 0, enable interlaced processing is 0, enable detelecine is 0, setting option to --rate=23.976
Duration reported as 00:00:12
Estimated Frame Count is 287.712
Preview Count fixed at 120
Source pixel aspect is 1/1
Source aspect ratio is 1.78
Autocrop is 94/132/370/366. Top:94, Bottom:132, Left:370, Right:366
Source size (before crop) is 1920x1080
Command:
/archive/tolonus/HandBrake/HandBrakeCLI --input=/home/tolonus/TestInput/Test/ 
--title=5 --output=/home/tolonus/TestOutput/Title-5/Title-5.mkv --previews=120:0 
--format=av_mkv --markers --verbose=2 --encoder=x264 --x264-preset=veryfast 
--h264-profile=high --h264-level=auto --quality=18 --cfr --keep-display-aspect 
--modulus=2 --rate=23.976
End Command
[11:41:43] hb_init: starting libhb thread
[11:41:43] thread 7ffb85861700 started ("libhb")
HandBrake 20160521000000-deadbea-unknown (2016052701) - Linux x86_64 - https://handbrake.fr
8 CPUs detected
Opening /home/tolonus/TestInput/Test/...
[11:41:43] CPU: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz
[11:41:43]  - Intel microarchitecture Haswell
[11:41:43]  - logical processor count: 8
[11:41:43] OpenCL: library not available
[11:41:43] hb_scan: path=/home/tolonus/TestInput/Test/, title_index=5
[11:41:43] thread 7ffb85060700 started ("scan")
[11:41:43] scan: BD has 33 title(s)
[11:41:43] bd: scanning title 5
[11:41:43] bd: playlist 00018.MPLS
[11:41:43] bd: duration is 00:00:12 (12012 ms)
[11:41:43] bd: video id=0x1011, stream type=MPEG2, format 1080i
[11:41:43] bd: aspect = 16:9
[11:41:43] bd: chap 1 packet=768, 12012 ms
[11:41:43] bd: title 5 has 1 chapters
[11:41:43] scan: decoding previews for title 5
[11:41:43] scan: title angle(s) 1
[11:41:43] scan: preview 1
[11:41:43] scan: preview 2
[11:41:43] Broken timestamps detected.  Reordering.
[11:41:43] scan: preview 3
[mpeg2video @ 0x7ffb8001a780] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb8001a780] MVs not available, ER not possible.
[11:41:43] scan: preview 4
[mpeg2video @ 0x7ffb8001a780] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb8001a780] MVs not available, ER not possible.
[11:41:43] scan: preview 5
[mpeg2video @ 0x7ffb8001a780] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb8001a780] MVs not available, ER not possible.
[11:41:43] scan: preview 6
[mpeg2video @ 0x7ffb8001a780] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb8001a780] MVs not available, ER not possible.
[11:41:43] scan: preview 7
[11:41:43] scan: preview 8
[11:41:43] scan: preview 9
[11:41:43] scan: preview 10
[11:41:43] scan: preview 11

Scanning title 1 of 1, preview 11, 9.17 %[11:41:43] scan: preview 12
[11:41:43] scan: preview 13
[11:41:43] scan: preview 14
[11:41:43] scan: preview 15
[11:41:43] scan: preview 16
[11:41:43] scan: preview 17
[11:41:43] scan: preview 18
[11:41:43] scan: preview 19
[11:41:43] scan: preview 20
[11:41:43] scan: preview 21
[11:41:43] scan: preview 22

Scanning title 1 of 1, preview 22, 18.33 %[11:41:43] scan: preview 23
[11:41:43] scan: preview 24
[11:41:43] scan: preview 25
[11:41:43] scan: preview 26
[11:41:43] scan: preview 27
[11:41:43] scan: preview 28
[11:41:44] scan: preview 29
[11:41:44] scan: preview 30
[11:41:44] scan: preview 31
[11:41:44] scan: preview 32
[11:41:44] scan: preview 33
[11:41:44] scan: preview 34

Scanning title 1 of 1, preview 34, 28.33 %[11:41:44] scan: preview 35
[11:41:44] scan: preview 36
[11:41:44] scan: preview 37
[11:41:44] scan: preview 38
[11:41:44] scan: preview 39
[11:41:44] scan: preview 40
[11:41:44] scan: preview 41
[11:41:44] scan: preview 42
[11:41:44] scan: preview 43
[11:41:44] scan: preview 44
[11:41:44] scan: preview 45

Scanning title 1 of 1, preview 45, 37.50 %[11:41:44] scan: preview 46
[11:41:44] scan: preview 47
[11:41:44] scan: preview 48
[11:41:44] scan: preview 49
[11:41:44] scan: preview 50
[11:41:44] scan: preview 51
[11:41:44] scan: preview 52
[11:41:44] scan: preview 53
[11:41:44] scan: preview 54
[11:41:44] scan: preview 55
[11:41:44] scan: preview 56
[11:41:44] scan: preview 57

Scanning title 1 of 1, preview 57, 47.50 %[11:41:44] scan: preview 58
[mpeg2video @ 0x7ffb800292a0] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb800292a0] MVs not available, ER not possible.
[11:41:44] scan: preview 59
[11:41:44] scan: preview 60
[11:41:44] scan: preview 61
[11:41:44] scan: preview 62
[11:41:44] scan: preview 63
[11:41:44] scan: preview 64
[mpeg2video @ 0x7ffb800292a0] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb800292a0] MVs not available, ER not possible.
[11:41:44] scan: preview 65
[mpeg2video @ 0x7ffb800292a0] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb800292a0] MVs not available, ER not possible.
[11:41:44] scan: preview 66
[mpeg2video @ 0x7ffb800292a0] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb800292a0] MVs not available, ER not possible.
[11:41:44] scan: preview 67
[mpeg2video @ 0x7ffb800292a0] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb800292a0] MVs not available, ER not possible.
[11:41:44] scan: preview 68
[11:41:45] scan: preview 69

Scanning title 1 of 1, preview 69, 57.50 %[11:41:45] scan: preview 70
[11:41:45] scan: preview 71
[11:41:45] scan: preview 72
[11:41:45] scan: preview 73
[11:41:45] scan: preview 74
[11:41:45] scan: preview 75
[11:41:45] scan: preview 76
[11:41:45] scan: preview 77
[11:41:45] scan: preview 78
[11:41:45] scan: preview 79

Scanning title 1 of 1, preview 79, 65.83 %[11:41:45] scan: preview 80
[11:41:45] scan: preview 81
[11:41:45] scan: preview 82
[11:41:45] scan: preview 83
[11:41:45] scan: preview 84
[11:41:45] scan: preview 85
[11:41:45] scan: preview 86
[11:41:45] scan: preview 87
[11:41:45] scan: preview 88

Scanning title 1 of 1, preview 88, 73.33 %[11:41:45] scan: preview 89
[11:41:45] scan: preview 90
[11:41:45] scan: preview 91
[11:41:45] scan: preview 92
[11:41:45] scan: preview 93
[11:41:45] scan: preview 94
[11:41:45] scan: preview 95
[11:41:45] scan: preview 96
[11:41:45] scan: preview 97
[11:41:45] scan: preview 98

Scanning title 1 of 1, preview 98, 81.67 %[11:41:45] scan: preview 99
[11:41:46] scan: preview 100
[11:41:46] scan: preview 101
[11:41:46] scan: preview 102
[11:41:46] scan: preview 103
[11:41:46] scan: preview 104
[11:41:46] scan: preview 105
[11:41:46] scan: preview 106
[11:41:46] scan: preview 107

Scanning title 1 of 1, preview 107, 89.17 %[11:41:46] scan: preview 108
[11:41:46] scan: preview 109
[11:41:46] scan: preview 110
[11:41:46] scan: preview 111
[11:41:46] scan: preview 112
[11:41:46] scan: preview 113
[11:41:46] scan: preview 114
[11:41:46] scan: preview 115
[11:41:46] scan: preview 116
[11:41:46] scan: preview 117

Scanning title 1 of 1, preview 117, 97.50 %[11:41:46] scan: preview 118
[mpeg2video @ 0x7ffb800292a0] ac-tex damaged at 80 67
[mpeg2video @ 0x7ffb800292a0] MVs not available, ER not possible.
[11:41:46] scan: preview 119
[11:41:46] scan: preview 120
[11:41:46] Pulldown detected, setting fps to 23.976
[11:41:46] scan: 120 previews, 1920x1080, 23.976 fps, autocrop = 94/132/370/366, aspect 16:9, PAR 1:1
[11:41:46] stream: 4 good frames, 0 errors (0%)
[11:41:46] Freed 1 buffers of size 1024
[11:41:46] Freed 1 buffers of size 2048
[11:41:46] Freed 1 buffers of size 32768
[11:41:46] Freed 1 buffers of size 65536
[11:41:46] Freed 1 buffers of size 131072
[11:41:46] Freed 1 buffers of size 262144
[11:41:46] Freed 1 buffers of size 524288
[11:41:46] Freed 2 buffers of size 1048576
[11:41:46] Freed 1 buffers of size 4194304
[11:41:46] Allocated 7310336 bytes of buffers on this pass and Freed 7310336 bytes, 0 bytes leaked
[11:41:46] thread 7ffb85060700 exited ("scan")
[11:41:46] thread 7ffb85060700 joined ("scan")
[11:41:46] libhb: scan thread found 1 valid title(s)
+ Using preset: Normal
+ title 5:
  + playlist: 00018.MPLS
  + duration: 00:00:12
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 94/132/370/366
  + support opencl: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:12
  + audio tracks:
  + subtitle tracks:
[11:41:46] thread 7ffb85060700 started ("work")
[11:41:46] 1 job(s) to process
[11:41:46] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [],
        "FallbackEncoder": 0
    },
    "Destination": {
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/tolonus/TestOutput/Title-5/Title-5.mkv",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 1,
                    "rate": "27000000/1126125"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 132,
                    "crop-left": 370,
                    "crop-right": 366,
                    "crop-top": 94,
                    "height": 854,
                    "width": 1184
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/tolonus/TestInput/Test/",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 5
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "auto",
        "OpenCL": false,
        "Options": "",
        "Preset": "veryfast",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 18.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[11:41:46] starting job
[11:41:46] job configuration:
[11:41:46]  * source
[11:41:46]    + /home/tolonus/TestInput/Test/
[11:41:46]    + title 5, chapter(s) 1 to 1
[11:41:46]  * destination
[11:41:46]    + /home/tolonus/TestOutput/Title-5/Title-5.mkv
[11:41:46]    + container: Matroska (libavformat)
[11:41:46]  * video track
[11:41:46]    + decoder: mpeg2video
[11:41:46]      + bitrate 29000 kbps
[11:41:46]    + filters
[11:41:46]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[11:41:46]        + frame rate: 23.976 fps -> constant 23.976 fps
[11:41:46]      + Crop and Scale (width=1184:height=854:crop-top=94:crop-bottom=132:crop-left=370:crop-right=366)
[11:41:46]        + source: 1920 * 1080, crop (94/132/370/366): 1184 * 854, scale: 1184 * 854
[11:41:46]    + Output geometry
[11:41:46]      + storage dimensions: 1184 x 854
[11:41:46]      + pixel aspect ratio: 1 : 1
[11:41:46]      + display dimensions: 1184 x 854
[11:41:46]    + encoder: H.264 (libx264)
[11:41:46]      + preset:  veryfast
[11:41:46]      + profile: high
[11:41:46]      + level:   auto
[11:41:46]      + quality: 18.00 (RF)
[11:41:46] sync: expecting 288 video frames
[11:41:46] encx264: min-keyint: 24, keyint: 240
[11:41:46] encx264: encoding at constant RF 18.000000
[11:41:46] encx264: unparsed options: rc-lookahead=10:mixed-refs=0:weightp=1:ref=1:subme=2:trellis=0
[11:41:46] encx264: opening libx264 (pass 0)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x264 [info]: profile High, level 3.2
[11:41:46] Writing Metadata to output file...
[11:41:46] thread 7ffb6ab76700 started ("Reader")
[11:41:46] thread 7ffb6a375700 started ("Video decoder (libavcodec)")
[11:41:46] thread 7ffb69b74700 started ("Video Synchronization")
[11:41:46] thread 7ffb65373700 started ("H.264/AVC encoder (libx264)")
[11:41:46] thread 7ffb69373700 started ("Muxer")
[11:41:46] reader: first SCR 1045557 id 0x1011 DTS 1045557
[11:41:46] thread 7ffb68b72700 started ("Framerate Shaper")
[11:41:46] thread 7ffb68371700 started ("Crop and Scale")
[11:41:46] sync: first pts video is 0
[11:41:46] sync: "Chapter 1" (1) at frame 1 time 0
[11:41:47] reader: done. 3 scr changes
[11:41:47] thread 7ffb6ab76700 exited ("Reader")
[11:41:48] thread 7ffb69373700 exited ("Muxer")
[11:41:48] thread 7ffb69373700 joined ("Muxer")
[11:41:48] work: average encoding speed for job is 0.000000 fps
[11:41:48] thread 7ffb69b74700 exited ("Video Synchronization")
[11:41:48] thread 7ffb6a375700 exited ("Video decoder (libavcodec)")
[11:41:48] thread 7ffb68b72700 exited ("Framerate Shaper")
[11:41:48] thread 7ffb68b72700 joined ("Framerate Shaper")
[11:41:48] render: 287 frames output, 0 dropped and 0 duped for CFR/PFR
[11:41:48] render: lost time: 0 (0 frames)
[11:41:48] render: gained time: 0 (0 frames) (0 not accounted for)
[11:41:48] fifo_close: trashing 0 buffer(s)
[11:41:48] thread 7ffb68371700 exited ("Crop and Scale")
[11:41:48] thread 7ffb68371700 joined ("Crop and Scale")
[11:41:48] thread 7ffb6ab76700 joined ("Reader")
[11:41:48] stream: 288 good frames, 0 errors (0%)
[11:41:48] thread 7ffb6a375700 joined ("Video decoder (libavcodec)")
[11:41:48] mpeg2video-decoder done: 288 frames, 0 decoder errors, 0 drops
[11:41:48] thread 7ffb69b74700 joined ("Video Synchronization")
[11:41:48] sync: got 288 frames, 288 expected
[11:41:48] sync: framerate min 23.981 fps, max 23.981 fps, avg 24.060 fps
[11:41:48] thread 7ffb65373700 exited ("H.264/AVC encoder (libx264)")
[11:41:48] thread 7ffb65373700 joined ("H.264/AVC encoder (libx264)")
x264 [info]: frame I:3     Avg QP: 7.57  size:147807
x264 [info]: frame P:77    Avg QP:15.18  size: 15060
x264 [info]: frame B:207   Avg QP:15.72  size:   515
x264 [info]: consecutive B-frames:  2.1%  4.2%  3.1% 90.6%
x264 [info]: mb I  I16..4: 50.3%  2.9% 46.8%
x264 [info]: mb P  I16..4:  4.6%  0.4%  0.3%  P16..4: 17.4%  1.7%  1.6%  0.0%  0.0%    skip:74.1%
x264 [info]: mb B  I16..4:  0.2%  0.0%  0.0%  B16..8:  1.1%  0.2%  0.0%  direct: 2.7%  skip:95.8%  L0:33.8% L1:52.9% BI:13.4%
x264 [info]: 8x8 transform intra:6.1% inter:21.8%
x264 [info]: coded y,uvDC,uvAC intra: 38.0% 40.0% 33.1% inter: 3.5% 4.0% 1.4%
x264 [info]: i16 v,h,dc,p: 71% 18% 11%  1%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 22% 39%  4%  3%  3%  4%  2%  4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 21% 14%  6%  6%  7%  6%  6%  7%
x264 [info]: i8c dc,h,v,p: 72% 15% 10%  3%
x264 [info]: Weighted P-Frames: Y:27.3% UV:14.3%
x264 [info]: kb/s:1142.52
[11:41:48] mux: file size, 1712115 bytes
[11:41:48] mux: track 0, 287 frames, 1709457 bytes, 1142.47 kbps, fifo 512
[11:41:48] mux: overhead, 9.26 bytes per frame
[11:41:48] fifo_close: trashing 0 buffer(s)
[11:41:48] fifo_close: trashing 0 buffer(s)
[11:41:48] fifo_close: trashing 0 buffer(s)
[11:41:48] fifo_close: trashing 0 buffer(s)
[11:41:48] fifo_close: trashing 0 buffer(s)
[11:41:48] fifo_close: trashing 0 buffer(s)
[11:41:48] Freed 218 buffers of size 1024
[11:41:48] Freed 15 buffers of size 2048
[11:41:48] Freed 16 buffers of size 4096
[11:41:48] Freed 12 buffers of size 8192
[11:41:48] Freed 5 buffers of size 16384
[11:41:48] Freed 9 buffers of size 32768
[11:41:48] Freed 13 buffers of size 65536
[11:41:48] Freed 12 buffers of size 131072
[11:41:48] Freed 5 buffers of size 262144
[11:41:48] Freed 4 buffers of size 524288
[11:41:48] Freed 26 buffers of size 2097152
[11:41:48] Freed 32 buffers of size 4194304
[11:41:48] Allocated 195371008 bytes of buffers on this pass and Freed 195371008 bytes, 0 bytes leaked
[11:41:48] thread 7ffb85060700 exited ("work")
[11:41:48] thread 7ffb85060700 joined ("work")
[11:41:48] libhb: work result = 0

Encode done!
[11:41:48] thread 7ffb85861700 exited ("libhb")
[11:41:48] thread 7ffb85861700 joined ("libhb")
HandBrake has exited.
 
Failed Encode with Version foefd99, September 3rd. Incomplete due to the segfault:

Code: Select all

 Handbrake Automated Encoding Log - Script parameters for Title 5
Input Directory set to /home/tolonus/TestInput/Test/
Output Directory set to /home/tolonus/TestOutput/Title-5
Selected Title is 5
Numeric List of Subtitle Tracks is 
Numeric List of Audio Tracks is 
Audio Input Codec List is 
Audio Output Codec List is 
Fps of title detected as 23.976, interlaced count is 0, enable interlaced processing is 0, enable detelecine is 0, setting option to --rate=23.976
Duration reported as 00:00:12
Estimated Frame Count is 287.712
Preview Count fixed at 120
Source pixel aspect is 1/1
Source aspect ratio is 1.78
Autocrop is 94/132/370/366. Top:94, Bottom:132, Left:370, Right:366
Source size (before crop) is 1920x1080
Command:
/archive/tolonus/HandBrake/HandBrakeCLI --input=/home/tolonus/TestInput/Test/ 
--title=5 --output=/home/tolonus/TestOutput/Title-5/Title-5.mkv --previews=120:0 
--format=av_mkv --markers --verbose=2 --encoder=x264 --x264-preset=veryfast 
--h264-profile=high --h264-level=auto --quality=18 --cfr --keep-display-aspect 
--modulus=2 --rate=23.976
End Command
[11:34:55] hb_init: starting libhb thread
[11:34:55] thread 7fa62c4c3700 started ("libhb")
HandBrake 20160903000000-deadbea-unknown (2016091101) - Linux x86_64 - https://handbrake.fr
8 CPUs detected
Opening /home/tolonus/TestInput/Test/...
[11:34:55] CPU: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz
[11:34:55]  - Intel microarchitecture Haswell
[11:34:55]  - logical processor count: 8
[11:34:55] OpenCL: library not available
[11:34:55] hb_scan: path=/home/tolonus/TestInput/Test/, title_index=5
[11:34:55] thread 7fa62bcc2700 started ("scan")
[11:34:55] scan: BD has 33 title(s)
[11:34:55] bd: scanning title 5
[11:34:55] bd: playlist 00018.MPLS
[11:34:55] bd: duration is 00:00:12 (12012 ms)
[11:34:55] bd:		00021.M2TS -- Duration: 00:00:12
[11:34:55] bd: video id=0x1011, stream type=MPEG2, format 1080i
[11:34:55] bd: aspect = 16:9
[11:34:55] bd: chap 1 packet=768, 12012 ms
[11:34:55] bd: title 5 has 1 chapters
[11:34:55] scan: decoding previews for title 5
[11:34:55] scan: title angle(s) 1
[11:34:55] scan: preview 1
[11:34:55] scan: preview 2
[11:34:55] scan: preview 3
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:55] scan: preview 4
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:55] scan: preview 5
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:55] scan: preview 6
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:55] scan: preview 7
[11:34:55] scan: preview 8
[11:34:55] scan: preview 9
[11:34:56] scan: preview 10

Scanning title 1 of 1, preview 10, 8.33 %[11:34:56] scan: preview 11
[11:34:56] scan: preview 12
[11:34:56] scan: preview 13
[11:34:56] scan: preview 14
[11:34:56] scan: preview 15
[11:34:56] scan: preview 16
[11:34:56] scan: preview 17
[11:34:56] scan: preview 18
[11:34:56] scan: preview 19
[11:34:56] scan: preview 20
[11:34:56] scan: preview 21
[11:34:56] scan: preview 22

Scanning title 1 of 1, preview 22, 18.33 %[11:34:56] scan: preview 23
[11:34:56] scan: preview 24
[11:34:56] scan: preview 25
[11:34:56] scan: preview 26
[11:34:56] scan: preview 27
[11:34:56] scan: preview 28
[11:34:56] scan: preview 29
[11:34:56] scan: preview 30
[11:34:56] scan: preview 31
[11:34:56] scan: preview 32
[11:34:56] scan: preview 33

Scanning title 1 of 1, preview 33, 27.50 %[11:34:56] scan: preview 34
[11:34:56] scan: preview 35
[11:34:56] scan: preview 36
[11:34:56] scan: preview 37
[11:34:56] scan: preview 38
[11:34:56] scan: preview 39
[11:34:56] scan: preview 40
[11:34:56] scan: preview 41
[11:34:56] scan: preview 42
[11:34:56] scan: preview 43
[11:34:56] scan: preview 44
[11:34:56] scan: preview 45

Scanning title 1 of 1, preview 45, 37.50 %[11:34:56] scan: preview 46
[11:34:56] scan: preview 47
[11:34:56] scan: preview 48
[11:34:57] scan: preview 49
[11:34:57] scan: preview 50
[11:34:57] scan: preview 51
[11:34:57] scan: preview 52
[11:34:57] scan: preview 53
[11:34:57] scan: preview 54
[11:34:57] scan: preview 55
[11:34:57] scan: preview 56
[11:34:57] scan: preview 57

Scanning title 1 of 1, preview 57, 47.50 %[11:34:57] scan: preview 58
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:57] scan: preview 59
[11:34:57] scan: preview 60
[11:34:57] scan: preview 61
[11:34:57] scan: preview 62
[11:34:57] scan: preview 63
[11:34:57] scan: preview 64
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:57] scan: preview 65
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:57] scan: preview 66
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:57] scan: preview 67
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:57] scan: preview 68
[11:34:57] scan: preview 69

Scanning title 1 of 1, preview 69, 57.50 %[11:34:57] scan: preview 70
[11:34:57] scan: preview 71
[11:34:57] scan: preview 72
[11:34:57] scan: preview 73
[11:34:57] scan: preview 74
[11:34:57] scan: preview 75
[11:34:57] scan: preview 76
[11:34:57] scan: preview 77
[11:34:57] scan: preview 78
[11:34:57] scan: preview 79

Scanning title 1 of 1, preview 79, 65.83 %[11:34:57] scan: preview 80
[11:34:57] scan: preview 81
[11:34:57] scan: preview 82
[11:34:57] scan: preview 83
[11:34:57] scan: preview 84
[11:34:58] scan: preview 85
[11:34:58] scan: preview 86
[11:34:58] scan: preview 87
[11:34:58] scan: preview 88

Scanning title 1 of 1, preview 88, 73.33 %[11:34:58] scan: preview 89
[11:34:58] scan: preview 90
[11:34:58] scan: preview 91
[11:34:58] scan: preview 92
[11:34:58] scan: preview 93
[11:34:58] scan: preview 94
[11:34:58] scan: preview 95
[11:34:58] scan: preview 96
[11:34:58] scan: preview 97

Scanning title 1 of 1, preview 97, 80.83 %[11:34:58] scan: preview 98
[11:34:58] scan: preview 99
[11:34:58] scan: preview 100
[11:34:58] scan: preview 101
[11:34:58] scan: preview 102
[11:34:58] scan: preview 103
[11:34:58] scan: preview 104
[11:34:58] scan: preview 105
[11:34:58] scan: preview 106
[11:34:58] scan: preview 107

Scanning title 1 of 1, preview 107, 89.17 %[11:34:58] scan: preview 108
[11:34:58] scan: preview 109
[11:34:58] scan: preview 110
[11:34:58] scan: preview 111
[11:34:58] scan: preview 112
[11:34:58] scan: preview 113
[11:34:58] scan: preview 114
[11:34:58] scan: preview 115
[11:34:58] scan: preview 116
[11:34:59] scan: preview 117

Scanning title 1 of 1, preview 117, 97.50 %[11:34:59] scan: preview 118
[mpeg2video @ 0x7fa624036ce0] ac-tex damaged at 80 67
[mpeg2video @ 0x7fa624036ce0] MVs not available, ER not possible.
[11:34:59] scan: preview 119
[11:34:59] scan: preview 120
[11:34:59] Pulldown detected, setting fps to 23.976
[11:34:59] scan: 120 previews, 1920x1080, 23.976 fps, autocrop = 94/132/370/366, aspect 16:9, PAR 1:1
[11:34:59] stream: 4 good frames, 0 errors (0%)
[11:34:59] Freed 1 buffers of size 1024
[11:34:59] Freed 1 buffers of size 2048
[11:34:59] Freed 1 buffers of size 32768
[11:34:59] Freed 1 buffers of size 65536
[11:34:59] Freed 1 buffers of size 131072
[11:34:59] Freed 1 buffers of size 262144
[11:34:59] Freed 1 buffers of size 524288
[11:34:59] Freed 2 buffers of size 1048576
[11:34:59] Freed 1 buffers of size 4194304
[11:34:59] Allocated 7310336 bytes of buffers on this pass and Freed 7310336 bytes, 0 bytes leaked
[11:34:59] thread 7fa62bcc2700 exited ("scan")
[11:34:59] thread 7fa62bcc2700 joined ("scan")
[11:34:59] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 5:
  + playlist: 00018.MPLS
  + duration: 00:00:12
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 94/132/370/366
  + support opencl: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:12
  + audio tracks:
  + subtitle tracks:
[11:34:59] thread 7fa62bcc2700 started ("work")
[11:34:59] 1 job(s) to process
[11:34:59] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [],
        "FallbackEncoder": 0
    },
    "Destination": {
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/tolonus/TestOutput/Title-5/Title-5.mkv",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 1,
                    "rate": "27000000/1126125"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 132,
                    "crop-left": 370,
                    "crop-right": 366,
                    "crop-top": 94,
                    "height": 854,
                    "width": 1184
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/tolonus/TestInput/Test/",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 5
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "auto",
        "OpenCL": false,
        "Options": "",
        "Preset": "veryfast",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 18.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[11:34:59] starting job
[11:34:59] job configuration:
[11:34:59]  * source
[11:34:59]    + /home/tolonus/TestInput/Test/
[11:34:59]    + title 5, chapter(s) 1 to 1
[11:34:59]  * destination
[11:34:59]    + /home/tolonus/TestOutput/Title-5/Title-5.mkv
[11:34:59]    + container: Matroska (libavformat)
[11:34:59]  * video track
[11:34:59]    + decoder: mpeg2video
[11:34:59]      + bitrate 29000 kbps
[11:34:59]    + filters
[11:34:59]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[11:34:59]        + frame rate: 23.976 fps -> constant 23.976 fps
[11:34:59]      + Crop and Scale (width=1184:height=854:crop-top=94:crop-bottom=132:crop-left=370:crop-right=366)
[11:34:59]        + source: 1920 * 1080, crop (94/132/370/366): 1184 * 854, scale: 1184 * 854
[11:34:59]    + Output geometry
[11:34:59]      + storage dimensions: 1184 x 854
[11:34:59]      + pixel aspect ratio: 1 : 1
[11:34:59]      + display dimensions: 1184 x 854
[11:34:59]    + encoder: H.264 (libx264)
[11:34:59]      + preset:  veryfast
[11:34:59]      + profile: high
[11:34:59]      + level:   auto
[11:34:59]      + quality: 18.00 (RF)
[11:34:59] sync: expecting 288 video frames
[11:34:59] encx264: min-keyint: 24, keyint: 240
[11:34:59] encx264: encoding at constant RF 18.000000
[11:34:59] encx264: unparsed options: trellis=0:ref=1:weightp=1:mixed-refs=0:subme=2:rc-lookahead=10
[11:34:59] encx264: opening libx264 (pass 0)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x264 [info]: profile High, level 3.2
[11:34:59] Writing Metadata to output file...
[11:34:59] thread 7fa6117a1700 started ("Reader")
[11:34:59] thread 7fa610fa0700 started ("Video decoder (libavcodec)")
[11:34:59] thread 7fa61079f700 started ("Video Synchronization")
[11:34:59] thread 7fa60ff9e700 started ("H.264/AVC encoder (libx264)")
[11:34:59] thread 7fa60f79d700 started ("Muxer")
[11:34:59] thread 7fa60af9c700 started ("Framerate Shaper")
[11:34:59] thread 7fa60ef9c700 started ("Crop and Scale")
[11:34:59] sync: first pts video is 0
[11:34:59] sync: "Chapter 1" (1) at frame 1 time 0
[11:34:59] sync: video time went backwards 41 ms, dropped 1 frames. PTS 142553
  
Additional gdb backtrace. From what I can tell with a few quick printf lines, it seems like b is NULL despite f-> size being 1 or greater (so presumably by extension f->first is also NULL for some reason).

Code: Select all

  Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd5b74700 (LWP 27695)]
hb_fifo_get (f=0x7fffe400fe40) at ../libhb/fifo.c:1033
1033	    f->first  = b->next;
(gdb) bt
#0  hb_fifo_get (f=0x7fffe400fe40) at ../libhb/fifo.c:1033
#1  0x00000000004ce1e9 in hb_vfr_work (filter=<optimized out>, buf_in=<optimized out>, 
    buf_out=0x7fffd5b73ef8) at ../libhb/vfr.c:571
#2  0x00000000004b6393 in filter_loop (_f=0x7fffe4000be0) at ../libhb/work.c:1954
#3  0x000000000045eb7b in hb_thread_func (_t=0x7fffe4053c90) at ../libhb/ports.c:855
#4  0x00007ffff4fad0a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007ffff42bc87d in clone () from /lib/x86_64-linux-gnu/libc.so.6
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Segfault on select Titles

Post by s55 »

Thanks for the detailed but report. That is very much appreciated!

We'll try get this looked into :)
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Segfault on select Titles

Post by s55 »

Are you able to provide a sample or point us to a source that triggers this?
Tolonus
Posts: 14
Joined: Sat Dec 26, 2009 8:08 pm

Re: Segfault on select Titles

Post by Tolonus »

Whoops, apologies. If you have access to it, I believe Titles 116, 118 and 119 of the Bluray for Moon trigger this segfault.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Segfault on select Titles

Post by JohnAStebbins »

Tolonus wrote:Whoops, apologies. If you have access to it, I believe Titles 116, 118 and 119 of the Bluray for Moon trigger this segfault.
Thanks, reproduced.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Segfault on select Titles

Post by JohnAStebbins »

Should be fixed in the next nightly build
https://github.com/HandBrake/HandBrake/ ... a36c9a52cf
Post Reply