Segment fault when transcoding

Hello,
We are using tx2 for transcoding. When closing the encoding codec, we encounter a segment fault. The log is as follows:

<2018-12-05 08:36:33.207> [ERROR] Obtained 4 stack frames.
<2018-12-05 08:36:33.207> [ERROR] videoCodec(_Z10sigroutinei+0x44) [0x48c1bc]
<2018-12-05 08:36:33.207> [ERROR] [0x7f982614e0]
<2018-12-05 08:36:33.207> [ERROR] /lib/aarch64-linux-gnu/libc.so.6(memcpy+0x114) [0x7f97282b54]
<2018-12-05 08:36:33.207> [ERROR] /usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_video.so(+0x3ab58) [0x7f951aeb58]
<2018-12-05 08:36:33.208> [ERROR] sigroutine get signal(11) and printf the backtrace.
<2018-12-05 08:36:33.209> [ERROR] Obtained 3 stack frames.
<2018-12-05 08:36:33.209> [ERROR] videoCodec(_Z10sigroutinei+0x44) [0x48c1bc]
<2018-12-05 08:36:33.209> [ERROR] [0x7f982614e0]
<2018-12-05 08:36:33.209> [ERROR] /lib/aarch64-linux-gnu/libpthread.so.0(pthread_mutex_lock+0x10) [0x7f981f4770]
<2018-12-05 08:36:33.209> [ERROR] /lib/aarch64-linux-gnu/libpthread.so.0(pthread_mutex_lock+0x10) [0x7f981f4770]
<2018-12-05 08:36:33.218> [ERROR] deleteCodec: Session progress is no relay.

The SDK version we are using is R28.1.0.
The decoding/encoding format is H264, which turns on the twopass-cbr mode.
Please help solve it, thank you very much!

Hi,
Do you use gstreamer or tegra_multimedia_api?

Hi, DaneLLL,

We use tegra_multimedia_api.

Please share a patch on 00_video_decode or 01_video_encode so that we can reproduce your issue. Besides, can you try r28.2.1?