FreeSWITCH, собранный с нашим liblame, падает так: Core was generated by `/usr/sbin/freeswitch -c -waste -nonat'. Program terminated with signal 8, Arithmetic exception. #0 0x00007fb3e1ebd038 in lame_encode_flush (gfp=0x19307b0, mp3buffer=0x7fb3e07b7a10 "", mp3buffer_size=20480) at lame.c:1964 1964 end_padding = gfp->framesize - (samples_to_encode % gfp->framesize); (gdb) backtrace #0 0x00007fb3e1ebd038 in lame_encode_flush (gfp=0x19307b0, mp3buffer=0x7fb3e07b7a10 "", mp3buffer_size=20480) at lame.c:1964 #1 0x00007fb3e233ff74 in free_context (context=0x1b5bb18) at /usr/src/debug/freeswitch-1.0.7/src/mod/formats/mod_shout/mod_shout.c:193 #2 0x00007fb3e234007d in shout_file_close (handle=<value optimized out>) at /usr/src/debug/freeswitch-1.0.7/src/mod/formats/mod_shout/mod_shout.c:839 #3 0x00007fb3ef839434 in switch_core_file_close (fh=0x1b10c48) at src/switch_core_file.c:558 #4 0x00007fb3ef87d129 in record_callback (bug=0x1b90108, user_data=0x1b10e38, type=<value optimized out>) at src/switch_ivr_async.c:960 #5 0x00007fb3ef831fb7 in switch_core_media_bug_remove_all (session=0x7fb3dc429ef8) at src/switch_core_media_bug.c:477 #6 0x00007fb3ef8453a2 in switch_core_session_hangup_state (session=0x7fb3dc429ef8, force=<value optimized out>) at src/switch_core_state_machine.c:570 #7 0x00007fb3ef84641f in switch_core_session_run (session=0x7fb3dc429ef8) at src/switch_core_state_machine.c:360 #8 0x00007fb3ef8420de in switch_core_session_thread (thread=<value optimized out>, obj=0x7fb3dc429ef8) at src/switch_core_session.c:1311 #9 0x00007fb3eef7c9aa in start_thread (arg=0x7fb3e07be700) at pthread_create.c:297 #10 0x00007fb3ee28346d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #11 0x0000000000000000 in ?? ()
У меня не получилось воспроизвести.