Re: [asterisk-dev] res_fax_spandsp segfaults during fax detection - FIXED?

2014-02-06 Thread Jaco Kroon
Hi All, Could this backtrace possibly be related? #0 process_rx_data (t=0x7fae54c698a8, user_data=0x2, data_type=1, field_type=optimized out, buf=0x7fae11c58cda "cng", len=0) at t38_terminal.c:314 #1 0x7fae11c22c7d in

Re: [asterisk-dev] res_fax_spandsp segfaults during fax detection - FIXED?

2014-02-06 Thread Michal Rybarik
Hi Jaco, if I understand correctly, your segfault did not happen during in T38gateway, but while receiving fax to tiff file (ReceiveFax), am I right? I haven't checked neither patched this (because my Asterisks are only relaying faxes, not

Re: [asterisk-dev] res_fax_spandsp segfaults during fax detection - FIXED?

2014-02-06 Thread Michal Rybárik
Hi Jaco, I reviewed spandsp sources at the places where your segfaults happened, and this is very different situation than mine. But I see that span_log function (spandsp logging) is called frequently from this code, you should find some more information in spandsp

Re: [asterisk-dev] res_fax_spandsp segfaults during fax detection - FIXED?

2014-01-31 Thread Michal Rybárik
Hello Pavel, On 01/31/2014 07:59 AM, Pavel Troller wrote: This code will translate non-slinear frames to slinear, just before they are sent to libspandsp for v21detection. With this patch applied, v21 detection is done also for RTP (SIP) alaw/ulaw frames, so maybe SIP/G711 - SIP/T38 gateway

Re: [asterisk-dev] res_fax_spandsp segfaults during fax detection - FIXED?

2014-01-30 Thread Michal Rybárik
Dear Pavel, On 01/30/2014 06:55 AM, Pavel Troller wrote: I probably found what causes random segfaults during fax detection with spandsp... Many thanks for your contributions and brainstorming about this, it helped a lot. If you have such issue, please test this possible fix and let me know...

Re: [asterisk-dev] res_fax_spandsp segfaults during fax detection - FIXED?

2014-01-30 Thread Pavel Troller
Hello Michal, Dear Pavel, On 01/30/2014 06:55 AM, Pavel Troller wrote: I probably found what causes random segfaults during fax detection with spandsp... Many thanks for your contributions and brainstorming about this, it helped a lot. If you have such issue, please test this possible fix

Re: [asterisk-dev] res_fax_spandsp segfaults during fax detection - FIXED?

2014-01-29 Thread Michal Rybárik
Hi folks, I probably found what causes random segfaults during fax detection with spandsp... Many thanks for your contributions and brainstorming about this, it helped a lot. If you have such issue, please test this possible fix and let me know... At res_fax.c, somewhere around line 3070,

Re: [asterisk-dev] res_fax_spandsp segfaults during fax detection - FIXED?

2014-01-29 Thread Pavel Troller
Hi! Hi folks, I probably found what causes random segfaults during fax detection with spandsp... Many thanks for your contributions and brainstorming about this, it helped a lot. If you have such issue, please test this possible fix and let me know... At res_fax.c, somewhere around