Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-10117

Duplicate value across multiple signal-types within the same CPA detector causes segfault

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.15
    • Fix Version/s: 1.8
    • Component/s: mod_rayo
    • Labels:
      None
    • Environment:
      Fedora 25
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • uname:
      Linux red 4.9.13-200.fc25.x86_64 #1 SMP Mon Feb 27 16:48:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Fedora
    • lsb_release:
      Hide
      LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
      Distributor ID: Fedora
      Description: Fedora release 25 (Twenty Five)
      Release: 25
      Codename: TwentyFive
      Show
      LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: Fedora Description: Fedora release 25 (Twenty Five) Release: 25 Codename: TwentyFive
    • Compiler:
      gcc
    • Compiler Version:
      gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC)
    • FreeSWITCH GIT Revision:
      FreeSWITCH Version 1.6.15~64bit ( 64bit)
    • GIT Master Revision hash::
      8e08124a756d8dd32ae1debabbbfd2ca4396d20c

      Description

      For example, this will cause a crash:

      {code:xml}
        <cpa>
          <detector name="speech">
            <start application="simpleamd_start" data=""/>
            <stop application="simpleamd_stop" data=""/>

            <event class="CUSTOM" subclass="simpleamd::amd" type-header="Value">
              <signal-type header-value="AMD NO VOICE" value="notsure"/>
              <signal-type header-value="AMD MACHINE VOICE" value="machine"/>
              <signal-type header-value="AMD MACHINE SILENCE" value="machine"/>
              <signal-type header-value="AMD MACHINE BEEP" value="machine"/>
              <signal-type header-value="AMD HUMAN VOICE" value="human"/>
              <signal-type header-value="AMD HUMAN SILENCE" value="human"/>
            </event>
          </detector>
        </cpa>
      {code}

      And this won't:

      {code:xml}
        <cpa>
          <detector name="speech">
            <start application="simpleamd_start" data=""/>
            <stop application="simpleamd_stop" data=""/>

            <event class="CUSTOM" subclass="simpleamd::amd" type-header="Value">
              <signal-type header-value="AMD NO VOICE" value="notsure"/>
              <signal-type header-value="AMD MACHINE VOICE" value="machine"/>
              <signal-type header-value="AMD HUMAN VOICE" value="human"/>
            </event>
          </detector>
        </cpa>
      {code}

      I have a patch that stops the crash but I need to verify that it hasn't otherwise broken the feature. More tomorrow.

        Attachments

          Activity

            People

            • Assignee:
              crienzo Christopher Rienzo
              Reporter:
              chewi James Le Cuirot
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: