Asterisk
  1. Asterisk
  2. ASTERISK-17058

[patch] Asterisk 1.8.1-rc1 crashes in cdr.c line 1201 after a parked call catched with parkedcall() is hungup

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: CDR/General
    • Labels:
      None
    • Mantis ID:
      18415
    • Regression:
      No

      Description

      The following combination makes asterisk-1.8.1-rc1 crash in cdr.c no matter if
      there is any config file for cdr or not:

      call gets parked:
      exten => _*81ZXX,n,Park(120000,CTX_ParkTimeout,s,1,s)

      other person picks up the call:
      exten => _*82ZXX,n,Set(CDR(userfield)=$

      {USERFIELD}

      )
      exten => _*82ZXX,n,ParkedCall($

      {EXTEN:3}

      )

      either party hangs up:
      asterisk crashes creating a core dump.

      The output of the core dump in gdb:
      >Core was generated by `/opt/asterisk/sbin/asterisk -f -vvvg -c'.
      >Program terminated with signal 11, Segmentation fault.
      >#0 ast_cdr_specialized_reset (cdr=0x0, _flags=0x0) at cdr.c:1201
      >1201 if (ast_test_flag(cdr, AST_CDR_FLAG_POST_DISABLED)) { /* But do NOT lose the NoCDR() setting */

      1. 20101209__issue18415.diff.txt
        1 kB
        Tilghman Lesher
      2. backtrace.txt
        25 kB
      3. backtrace-18415-1.8.0.txt
        28 kB
      4. backtrace-18415-1.8.1-rc1.txt
        26 kB
      5. backtrace-18415-1.8.1-rc1-park.txt
        27 kB
      6. extensions.conf
        0.1 kB
      7. patch-18415
        0.5 kB
        jsolares

        Issue Links

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development