Asterisk
  1. Asterisk
  2. ASTERISK-26776

res_pjsip_pubsub: Crash when generating xpidf content

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 13.13.1
    • Target Release Version/s: 13.15.0, 14.4.0, 15.0.0
    • Security Level: None
    • Labels:
      None
    • Environment:
      FreePBX 13 SHMZ release 6.6 (Final)
      Linux freepbx 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
      Cisco 7962 using firmware SIP42.9-4-2SR2-2S
    • Frequency of Occurrence:
      Constant

      Description

      Asterisk crashes randomly when using chan_pjsip and Cisco 7962 phones. This is the first repeatable bug I found, the other crashes happened when the phone would attempt registration and do not happen after upgrading from 13.12 to 13.13.1. I have not tried other phone firmware versions but I can upon request. Server backtrace is attached.

      Actions to reproduce:
      -Register Cisco 7962 to chan_pjsip using TCP transport (see attached XML config files)
      -Dial an internal three digit extension, call completes correctly
      -After call try typing extension number again and Asterisk will crash and phone will reset indicating lost registration with SIP server.

      Note: On my phone external numbers do not cause this issue

      1. asterisk console and pjsip log.txt
        11 kB
        Andrew Green
      2. Asterisk crash on start.txt
        7 kB
        Andrew Green
      3. backtrace.core.1757 crash on start.txt
        36 kB
        Andrew Green
      4. backtrace.core.29832.txt
        32 kB
        Andrew Green
      5. crash-xpidf.txt
        52 kB
        Joshua Colp
      6. dialplan.xml
        0.6 kB
        Andrew Green
      7. extensions.conf
        0.2 kB
        Joshua Elson
      8. malloc-backtrace.txt
        5 kB
        Joshua Elson
      9. pjsip.conf
        0.7 kB
        Joshua Elson
      10. REGISTER_SUBSCRIBE_client.csv
        0.2 kB
        Joshua Elson
      11. REGISTER_SUBSCRIBE_client.xml
        7 kB
        Joshua Elson
      12. SEPmachere.cnf.xml
        8 kB
        Andrew Green
      13. softkeys.xml
        6 kB
        Andrew Green
      14. valgrind-output.txt
        5 kB
        Joshua Elson
      15. XMLDefault.cnf.xml
        2 kB
        Andrew Green

        Issue Links

          Activity

          Hide
          Sean Bright added a comment -

          Andrew Green, it will be in 13.15 & 14.4 when they are released, assuming you are using the bundled version of PJSIP. If you are using an external PJSIP you can patch it today.

          Show
          Sean Bright added a comment - Andrew Green , it will be in 13.15 & 14.4 when they are released, assuming you are using the bundled version of PJSIP. If you are using an external PJSIP you can patch it today.
          Hide
          Joshua Elson added a comment -

          George Joseph and Matthew Fredrickson. This has been accepted as an upstream patch as well.

          https://trac.pjsip.org/repos/changeset/5570

          Not sure what that means for when this will be in pjsip, but they've accepted the patch as well.

          Hope that helps!

          Show
          Joshua Elson added a comment - George Joseph and Matthew Fredrickson . This has been accepted as an upstream patch as well. https://trac.pjsip.org/repos/changeset/5570 Not sure what that means for when this will be in pjsip, but they've accepted the patch as well. Hope that helps!
          Hide
          Friendly Automation added a comment -

          Change 5171 merged by zuul:
          pjsip: prevent memory corruption on creation of xml bodies

          https://gerrit.asterisk.org/5171

          Show
          Friendly Automation added a comment - Change 5171 merged by zuul: pjsip: prevent memory corruption on creation of xml bodies https://gerrit.asterisk.org/5171
          Hide
          Friendly Automation added a comment -

          Change 5172 merged by Joshua Colp:
          pjsip: prevent memory corruption on creation of xml bodies

          https://gerrit.asterisk.org/5172

          Show
          Friendly Automation added a comment - Change 5172 merged by Joshua Colp: pjsip: prevent memory corruption on creation of xml bodies https://gerrit.asterisk.org/5172
          Hide
          Friendly Automation added a comment -

          Change 5173 merged by zuul:
          pjsip: prevent memory corruption on creation of xml bodies

          https://gerrit.asterisk.org/5173

          Show
          Friendly Automation added a comment - Change 5173 merged by zuul: pjsip: prevent memory corruption on creation of xml bodies https://gerrit.asterisk.org/5173

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development