Asterisk
  1. Asterisk
  2. ASTERISK-26668

core: Malformed pattern matching extension (various factors) results in crash

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: 13.13.1
    • Target Release Version/s: 13.15.0, 14.4.0, 15.0.0
    • Component/s: General
    • Security Level: None
    • Labels:
      None
    • Environment:
      FreePBX 13
    • Frequency of Occurrence:
      Constant

      Description

      The extensions_additional.conf file (sent via email, as it contains confidential information) causes asterisk to crash when read.

      There are syntax errors in it (matches don't start with _, starting at line 6861), and when they were fixed, asterisk stopped crashing.

      However, when they were removed AGAIN, asterisk STILL wasn't crashing. At this point we managed to dig up a COPY of the exact file that was causing the crash, and confirmed that it crashes on another machine.

        Issue Links

          Activity

          Hide
          Asterisk Team added a comment -

          Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

          A good first step is for you to review the Asterisk Issue Guidelines if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

          Then, if you are submitting a patch, please review the Patch Contribution Process.

          Show
          Asterisk Team added a comment - Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the Asterisk Issue Guidelines if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the Patch Contribution Process .
          Hide
          George Joseph added a comment -

          Completely reproduceable...

          exten => 999999999[2-5],1(123456789012),Noop(Some Message)

          will do it. If not at startup, do a "dialplan reload" a few times.

          The missing leading '_' in the pattern, the length of the pattern, and the length of the label are all factors.

          Show
          George Joseph added a comment - Completely reproduceable... exten => 999999999 [2-5] ,1(123456789012),Noop(Some Message) will do it. If not at startup, do a "dialplan reload" a few times. The missing leading '_' in the pattern, the length of the pattern, and the length of the label are all factors.
          Hide
          xrobau added a comment -

          Still an issue in 13.14.0, still causing crashes.

          Show
          xrobau added a comment - Still an issue in 13.14.0, still causing crashes.
          Hide
          Friendly Automation added a comment -

          Change 5208 merged by zuul:
          pbx.c: Fix crash from malformed exten pattern.

          https://gerrit.asterisk.org/5208

          Show
          Friendly Automation added a comment - Change 5208 merged by zuul: pbx.c: Fix crash from malformed exten pattern. https://gerrit.asterisk.org/5208
          Hide
          Friendly Automation added a comment -

          Change 5207 merged by zuul:
          pbx.c: Fix crash from malformed exten pattern.

          https://gerrit.asterisk.org/5207

          Show
          Friendly Automation added a comment - Change 5207 merged by zuul: pbx.c: Fix crash from malformed exten pattern. https://gerrit.asterisk.org/5207
          Hide
          Friendly Automation added a comment -

          Change 5206 merged by zuul:
          pbx.c: Fix crash from malformed exten pattern.

          https://gerrit.asterisk.org/5206

          Show
          Friendly Automation added a comment - Change 5206 merged by zuul: pbx.c: Fix crash from malformed exten pattern. https://gerrit.asterisk.org/5206

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development