Segmentation fault at avio_accept in accept_thread
iChenwin opened this issue · 1 comments
iChenwin commented
Environment:
Ubuntu 16.04
Ffmpeg latest
Gdb debug info:
Checking clients, thread: 0
Checking clients, thread: 1
Checking clients, thread: 3
Checking clients, thread: 2
279 if ((ret = avio_accept(server, &client)) < 0) {
Checking clients, thread: 2
Checking clients, thread: 1
Checking clients, thread: 3
Checking clients, thread:
Finding video stream.
Checking stream 0
Got stream
Got params
Got type
startlng new segment
Initializing segment
Thread 2 "server" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff4120700 (LWP 1781)]
_memcpy_avx_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:238
238 ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: No such file or directory.
(gdb) bt
_memcpy_avx_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:238
0x00007ffff692cb24 in avcodec_parameters_to_context () from /usr/local/lib/libavcodec.so.58
0x0000000000401f21 in segment_init (seg_p=0x7ffff411fe50, fmt=0x607040) at segment.c:138
0x00000000004033d5 in read_thread (arg=0x7fffffffe410) at server2.c:126
0x00007ffff5c3d6ba in start_thread (arg=0x7ffff 4120700) at pthread_create.c:333
0x00007ffff597341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
iChenwin commented
Solved after recompile ffmpeg without option “—enable-version3”