[asterisk-bugs] [Asterisk 0018415]: [patch] Asterisk 1.8.1-rc1 crashes in cdr.c line 1201 after a parked call catched with parkedcall() is hungup
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Dec 9 15:26:21 CST 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18415
======================================================================
Reported By: macbrody
Assigned To: twilson
======================================================================
Project: Asterisk
Issue ID: 18415
Category: CDR/General
Reproducibility: always
Severity: crash
Priority: normal
Status: closed
Asterisk Version: 1.8.1-rc1
JIRA: SWP-2654
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2010-12-03 08:10 CST
Last Modified: 2010-12-09 15:26 CST
======================================================================
Summary: [patch] Asterisk 1.8.1-rc1 crashes in cdr.c line
1201 after a parked call catched with parkedcall() is hungup
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.
>https://issues.asterisk.org/view.php?id=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 */
======================================================================
----------------------------------------------------------------------
(0129506) svnbot (reporter) - 2010-12-09 15:26
https://issues.asterisk.org/view.php?id=18415#c129506
----------------------------------------------------------------------
Repository: asterisk
Revision: 297956
_U trunk/
U trunk/main/features.c
------------------------------------------------------------------------
r297956 | twilson | 2010-12-09 15:26:19 -0600 (Thu, 09 Dec 2010) | 17
lines
Merged revisions 297952 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r297952 | twilson | 2010-12-09 14:48:44 -0600 (Thu, 09 Dec 2010) | 10
lines
Don't crash after Set(CDR(userfield)=...) in ast_bridge_call
Instead of setting peer->cdr = NULL, set it to not post.
(closes issue https://issues.asterisk.org/view.php?id=18415)
Reported by: macbrody
Patches:
patch-18415 uploaded by jsolares (license 1167)
Tested by: jsolares, twilson
........
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=297956
Issue History
Date Modified Username Field Change
======================================================================
2010-12-09 15:26 svnbot Checkin
2010-12-09 15:26 svnbot Note Added: 0129506
======================================================================
More information about the asterisk-bugs
mailing list