OS: Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)
GCC: gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
SVT CommitID: 228d8ef
Verify SVT-HEVC sample binary SvtHevcEncApp with Commit ID 228d8ef, with an 1 frame input yuv stream, then segmentation fault (core dumped) occurred.
-
Input stream:
Please ref the attachment file 'input_stream.zip' below, target input "car_output.yuv" is generated from the other one 'car-detection_3840_2160_16s_1frame.mp4' by pure decode.
Tips: only one frame in the video.
input_stream.zip
-
Command line:
./SvtHevcEncApp -i ./car_output.yuv -w 3840 -h 2160 -fps-num 25 -fps-denom 1 -tbr 5000000 -rc 1 -intra-period 29 -tune 1 -encMode 1 -profile -hierarchical-levels 0 -irefresh-type 2 -n 1 -b output.bin
Tips: using deprecated param "tune" and with a blank value for param "profile".
-
Captures with different version:
Problem occurred (228d8ef):

Problem occurred (tag v1.4.1 02fd126):

No problem (tag v1.4.0 ca499c9):

No problem (tag v1.3.0 60076f7):

GDB information as below:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./SvtHevcEncApp -i ./car_output.yuv -w 3840 -h 2160 -fps-num 25 -fps-denom 1 -t'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f2fef58ab24 in ApplySaoOffsetsPicture (contextPtr=contextPtr@entry=0x5621fd1ddd20, sequenceControlSetPtr=sequenceControlSetPtr@entry=0x5621404cf7b0,
pictureControlSetPtr=pictureControlSetPtr@entry=0x5621b1400bd0) at /home/berta/sgc/SVT-HEVC/Source/Lib/Codec/EbEncDecProcess.c:569
569 tbOriginX = lcuParams->originX;
[Current thread is 1 (Thread 0x7f2d94872700 (LWP 74179))]
(gdb)
L569~L573, originX / originY / width / height may use invalid pointer.
GCC: gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
SVT CommitID: 228d8ef
Verify SVT-HEVC sample binary SvtHevcEncApp with Commit ID 228d8ef, with an 1 frame input yuv stream, then segmentation fault (core dumped) occurred.
Input stream:
Please ref the attachment file 'input_stream.zip' below, target input "car_output.yuv" is generated from the other one 'car-detection_3840_2160_16s_1frame.mp4' by pure decode.
Tips: only one frame in the video.
input_stream.zip
Command line:
./SvtHevcEncApp -i ./car_output.yuv -w 3840 -h 2160 -fps-num 25 -fps-denom 1 -tbr 5000000 -rc 1 -intra-period 29 -tune 1 -encMode 1 -profile -hierarchical-levels 0 -irefresh-type 2 -n 1 -b output.bin
Tips: using deprecated param "tune" and with a blank value for param "profile".
Captures with different version:
Problem occurred (228d8ef):

Problem occurred (tag v1.4.1 02fd126):

No problem (tag v1.4.0 ca499c9):

No problem (tag v1.3.0 60076f7):

GDB information as below:
L569~L573, originX / originY / width / height may use invalid pointer.