mstorsjo / fdk-aac

A standalone library of the Fraunhofer FDK AAC code from Android.

Home Page:https://sourceforge.net/projects/opencore-amr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segfault aacDecoder_Fill

VicLo2020 opened this issue · comments

commented

Hello.
I got a segmentation fault when called from a php.

$handle = $ffi->aacDecoder_Open(transportType::TT_MP4_ADTS,1);
...
$res = $ffi->aacDecoder_Fill($handle, \FFI::addr($inBuffer), \FFI::addr($buf_size), \FFI::addr($bytesValid));

Program received signal SIGSEGV, Segmentation fault.
__memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:383
383 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
(gdb) backtrace
#0 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:383
#1 0x00007ffff059774d in ?? () from /usr/lib/x86_64-linux-gnu/libfdk-aac.so
#2 0x00007ffff055b929 in ?? () from /usr/lib/x86_64-linux-gnu/libfdk-aac.so
#3 0x00007ffff052b03e in aacDecoder_Fill () from /usr/lib/x86_64-linux-gnu/libfdk-aac.so
#4 0x00007ffff3d748ee in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#5 0x00007ffff3d742bf in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#6 0x00007ffff3aedb25 in ?? () from /usr/lib/php/20190902/ffi.so
#7 0x00005555558799dc in execute_ex ()
#8 0x000055555587a4e1 in zend_execute ()
#9 0x00005555557f3ee3 in zend_execute_scripts ()
#10 0x00005555557936b0 in php_execute_script ()
#11 0x000055555587c5f6 in ?? ()
#12 0x000055555565b91b in ?? ()
#13 0x00007ffff743909b in __libc_start_main (main=0x55555565b4d0, argc=2, argv=0x7fffffffeba8, init=,
fini=, rtld_fini=, stack_end=0x7fffffffeb98) at ../csu/libc-start.c:308
#14 0x000055555565ba7a in _start ()

To be able to act on this, I need the input files that trigger it, and some way to reproduce it.