Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

[SVT-HEVC] SvtHevcEncApp v1.4.1 core-dump occurred when encode #413

@xiajin-2007

Description

@xiajin-2007
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):
CoreDump_v1 4 1_228d8ef

Problem occurred (tag v1.4.1 02fd126):
CoreDump_v1 4 1_release

No problem (tag v1.4.0 ca499c9):
Safe_v1 4 0_release

No problem (tag v1.3.0 60076f7):
Safe_v1 3 0_release

  • Bug basic analysis:

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions