Yep, JIRA <br><div class="gmail_quote"><div dir="ltr">Em qua, 7 de dez de 2016 às 11:27, Sebastian Kemper <<a href="mailto:sebastian_ml@gmx.net">sebastian_ml@gmx.net</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list,<br class="gmail_msg">
<br class="gmail_msg">
I was testing tone2wav and it basically just segfaulted. I put the<br class="gmail_msg">
following line into file itu.tone:<br class="gmail_msg">
<br class="gmail_msg">
v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)<br class="gmail_msg">
<br class="gmail_msg">
Then I ran:<br class="gmail_msg">
<br class="gmail_msg">
# tone2wav itu.wav itu.tone<br class="gmail_msg">
File: itu.wav generated...<br class="gmail_msg">
<br class="gmail_msg">
Please support:<br class="gmail_msg">
FreeSWITCH <a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
ClueCon <a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
Segmentation fault<br class="gmail_msg">
# echo $?<br class="gmail_msg">
139<br class="gmail_msg">
#<br class="gmail_msg">
<br class="gmail_msg">
The WAV file is rather small (44 Bytes) and there's nothing audible.<br class="gmail_msg">
<br class="gmail_msg">
In dmesg I see:<br class="gmail_msg">
<br class="gmail_msg">
[ 9511.288341] tone2wav[28766]: segfault at 8 ip 00007f5566bc5fe5 sp 00007fff7b662d40 error 4 in libfreeswitch.so.1.0.0[7f556680a000+4a7000]<br class="gmail_msg">
<br class="gmail_msg">
I was initially testing tone2wav on a mips router with musl toolchain.<br class="gmail_msg">
Then I went to x86_64 with musl and had a segfault as well. Then I tried<br class="gmail_msg">
on a x86_64 laptop with glibc toolchain and it segfaulted also.<br class="gmail_msg">
<br class="gmail_msg">
I recompiled FS 1.6.13 with debug enabled and got the backtrace below.<br class="gmail_msg">
Should I file a JIRA for this?<br class="gmail_msg">
<br class="gmail_msg">
# gdb tone2wav<br class="gmail_msg">
GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1<br class="gmail_msg">
Copyright (C) 2015 Free Software Foundation, Inc.<br class="gmail_msg">
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" rel="noreferrer" class="gmail_msg" target="_blank">http://gnu.org/licenses/gpl.html</a>><br class="gmail_msg">
This is free software: you are free to change and redistribute it.<br class="gmail_msg">
There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br class="gmail_msg">
and "show warranty" for details.<br class="gmail_msg">
This GDB was configured as "x86_64-pc-linux-gnu".<br class="gmail_msg">
Type "show configuration" for configuration details.<br class="gmail_msg">
For bug reporting instructions, please see:<br class="gmail_msg">
<<a href="https://bugs.gentoo.org/" rel="noreferrer" class="gmail_msg" target="_blank">https://bugs.gentoo.org/</a>>.<br class="gmail_msg">
Find the GDB manual and other documentation resources online at:<br class="gmail_msg">
<<a href="http://www.gnu.org/software/gdb/documentation/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.gnu.org/software/gdb/documentation/</a>>.<br class="gmail_msg">
For help, type "help".<br class="gmail_msg">
Type "apropos word" to search for commands related to "word"...<br class="gmail_msg">
Reading symbols from tone2wav...Reading symbols from /usr/lib64/debug//usr/bin/tone2wav.debug...done.<br class="gmail_msg">
done.<br class="gmail_msg">
(gdb) run itu.wav itu.tone<br class="gmail_msg">
Starting program: /usr/bin/tone2wav itu.wav itu.tone<br class="gmail_msg">
[Thread debugging using libthread_db enabled]<br class="gmail_msg">
Using host libthread_db library "/lib64/libthread_db.so.1".<br class="gmail_msg">
[New Thread 0x7ffff7f0f700 (LWP 28707)]<br class="gmail_msg">
[New Thread 0x7ffff410b700 (LWP 28710)]<br class="gmail_msg">
File: itu.wav generated...<br class="gmail_msg">
<br class="gmail_msg">
Please support:<br class="gmail_msg">
FreeSWITCH <a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
ClueCon <a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
[Thread 0x7ffff410b700 (LWP 28710) exited]<br class="gmail_msg">
[Thread 0x7ffff7f0f700 (LWP 28707) exited]<br class="gmail_msg">
<br class="gmail_msg">
Program received signal SIGSEGV, Segmentation fault.<br class="gmail_msg">
0x00007ffff7ab5fe5 in apr_pool_destroy (pool=0x0) at memory/unix/apr_pools.c:748<br class="gmail_msg">
748 while (pool->child)<br class="gmail_msg">
(gdb) set logging on<br class="gmail_msg">
Copying output to gdb.txt.<br class="gmail_msg">
(gdb) thread apply all backtrace full<br class="gmail_msg">
<br class="gmail_msg">
Thread 1 (Thread 0x7ffff7fd7780 (LWP 28703)):<br class="gmail_msg">
#0 0x00007ffff7ab5fe5 in apr_pool_destroy (pool=0x0) at memory/unix/apr_pools.c:748<br class="gmail_msg">
active = 0x7ffff7db1ae8 <runtime+40><br class="gmail_msg">
allocator = 0x0<br class="gmail_msg">
#1 0x00007ffff777ead4 in switch_core_perform_destroy_memory_pool (pool=0x7ffff7db21e8 <video_globals+8>,<br class="gmail_msg">
file=0x7ffff7b08243 "src/switch_core_media.c", func=0x7ffff7b0d7f0 <__func__.42791> "switch_core_media_deinit", line=11051)<br class="gmail_msg">
at src/switch_core_memory.c:439<br class="gmail_msg">
__PRETTY_FUNCTION__ = "switch_core_perform_destroy_memory_pool"<br class="gmail_msg">
#2 0x00007ffff77dfdd6 in switch_core_media_deinit () at src/switch_core_media.c:11051<br class="gmail_msg">
__func__ = "switch_core_media_deinit"<br class="gmail_msg">
#3 0x00007ffff77b3b11 in switch_core_destroy () at src/switch_core.c:2962<br class="gmail_msg">
event = 0x0<br class="gmail_msg">
__func__ = "switch_core_destroy"<br class="gmail_msg">
#4 0x0000000000401343 in main (argc=3, argv=0x7fffffffe278) at src/tone2wav.c:175<br class="gmail_msg">
ts = {TONES = {{freqs = {0 <repeats 18 times>}} <repeats 35 times>, {freqs = {941, 1477, 0 <repeats 16 times>}}, {freqs = {<br class="gmail_msg">
0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {<br class="gmail_msg">
freqs = {0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {941, 1209, 0 <repeats 16 times>}}, {freqs = {<br class="gmail_msg">
0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {<br class="gmail_msg">
freqs = {0 <repeats 18 times>}}, {freqs = {941, 1336, 0 <repeats 16 times>}}, {freqs = {697, 1209, 0 <repeats 16 times>}}, {freqs = {<br class="gmail_msg">
697, 1336, 0 <repeats 16 times>}}, {freqs = {697, 1477, 0 <repeats 16 times>}}, {freqs = {770, 1209, 0 <repeats 16 times>}}, {<br class="gmail_msg">
freqs = {770, 1336, 0 <repeats 16 times>}}, {freqs = {770, 1477, 0 <repeats 16 times>}}, {freqs = {859, 1209, 0 <repeats 16 times>}}, {<br class="gmail_msg">
freqs = {859, 1336, 0 <repeats 16 times>}}, {freqs = {859, 1477, 0 <repeats 16 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {<br class="gmail_msg">
0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {<br class="gmail_msg">
freqs = {0 <repeats 18 times>}}, {freqs = {0 <repeats 18 times>}}, {freqs = {697, 1633, 0 <repeats 16 times>}}, {freqs = {770, 1633,<br class="gmail_msg">
0 <repeats 16 times>}}, {freqs = {859, 1633, 0 <repeats 16 times>}}, {freqs = {941, 1633, 0 <repeats 16 times>}}, {freqs = {<br class="gmail_msg">
0 <repeats 18 times>}} <repeats 58 times>}, channels = 1, rate = 8000, duration = 2000, wait = 400, tmp_duration = -1,<br class="gmail_msg">
tmp_wait = -1, loops = 0, LOOPS = 0, decay_factor = 1, decay_direction = 0, decay_step = 0, volume = -7, debug = 0, debug_stream = 0x0,<br class="gmail_msg">
user_data = 0x7fffffff9820, buffer = 0x0, datalen = 0, samples = 0, dynamic = 1024, handler = 0x400d46 <teletone_handler>}<br class="gmail_msg">
file_flags = 10<br class="gmail_msg">
r = 0<br class="gmail_msg">
rate = 8000<br class="gmail_msg">
file = 0x7fffffffe523 "itu.wav"<br class="gmail_msg">
script = 0x7fffffffe52b "itu.tone"<br class="gmail_msg">
fh = {file_interface = 0x0, flags = 14, fd = 0x0, samples = 0, samplerate = 8000, native_rate = 8000, channels = 1, real_channels = 1,<br class="gmail_msg">
format = 65538, sections = 0, seekable = 0, sample_count = 0, speed = 0, memory_pool = 0x0, prebuf = 0, interval = 0,<br class="gmail_msg">
private_info = 0x7ff1a0, handler = 0x0, pos = 0, audio_buffer = 0x0, sp_audio_buffer = 0x0, thresh = 0, silence_hits = 0, offset_pos = 0,<br class="gmail_msg">
samples_in = 0, samples_out = 0, vol = 0, resampler = 0x0, buffer = 0x0, dbuf = 0x0, dbuflen = 0, pre_buffer = 0x0, pre_buffer_data = 0x0,<br class="gmail_msg">
pre_buffer_datalen = 0, file = 0x40158b "src/tone2wav.c", func = 0x40161c <__func__.17033> "main", line = 153,<br class="gmail_msg">
file_path = 0x7ff190 "itu.wav", spool_path = 0x0, prefix = 0x0, max_samples = 0, params = 0x0, cur_channels = 0, cur_samplerate = 0,<br class="gmail_msg">
stream_name = 0x0, modname = 0x0, mm = {samplerate = 44100, channels = 1, keyint = 60, ab = 128, vb = 0, vw = 0, vh = 0, cbr = 0, fps = 0,<br class="gmail_msg">
source_fps = 0, vbuf = 0, vprofile = SWITCH_VIDEO_PROFILE_BASELINE, vencspd = SWITCH_VIDEO_ENCODE_SPEED_DEFAULT,<br class="gmail_msg">
try_hardware_encoder = 1 '\001'}, flag_mutex = 0x7ff140, duration = 0, vpos = 0}<br class="gmail_msg">
err = 0x7ffff7b0f7e5 ""<br class="gmail_msg">
verbose = SWITCH_FALSE<br class="gmail_msg">
i = 1<br class="gmail_msg">
c = 1<br class="gmail_msg">
help = 0<br class="gmail_msg">
__func__ = "main"<br class="gmail_msg">
quit<br class="gmail_msg">
<br class="gmail_msg">
Kind regards,<br class="gmail_msg">
Sebastian<br class="gmail_msg">
<br class="gmail_msg">
_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
</blockquote></div>