[Home]

Summary:ASTERISK-13952: [patch] Asterisk crashes when extenpatternmatchnew=yes
Reporter:Chris Maciejewski (chris-mac)Labels:
Date Opened:2009-04-14 11:27:36Date Closed:2009-04-23 15:44:29
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/PBX
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20090423__bug14895__2.diff.txt
( 1) 20090423__bug14895.diff.txt
( 2) backtrace.txt
( 3) debug.log
( 4) extensions.conf
( 5) gdb.txt
( 6) modules.conf
( 7) sip.conf
( 8) verbose.log
Description:Asterisk crashes (see gdb.txt) under the following circumstances:

1. extenpatternmatchnew is set to 'yes' in extensions.conf
2. Bridge application is used to "Pickup" ringing channel
3. GotoIf is used in 'h' extension

How to reproduce:
Use modules.conf, extensions.conf and sip.conf attached.
Dial 123456 into Asterisk with phone A, so phone B will start ringing.
Dial ** with phone C to pickup ringing channel. Asterisk crashes here.

Regards,
Chris
Comments:By: Leif Madsen (lmadsen) 2009-04-23 09:46:16

I have confirmed this crash with the latest 1.6.1 branch (rev 190095) and the issue is present. I have attached a new backtrace.txt file which has DONT_OPTIMIZE enabled on it.

By: Leif Madsen (lmadsen) 2009-04-23 13:40:11

Uploaded a new backtrace.txt file (after deleting the old one). Still getting a segfault with the patch, however sometimes it doesn't segfault, but rather Bridge() just tells me it can't find the channel.

By: Leif Madsen (lmadsen) 2009-04-23 15:04:43

Works for me!

By: Digium Subversion (svnbot) 2009-04-23 15:42:12

Repository: asterisk
Revision: 190352

U   trunk/main/pbx.c

------------------------------------------------------------------------
r190352 | tilghman | 2009-04-23 15:42:11 -0500 (Thu, 23 Apr 2009) | 7 lines

Labels are sometimes (most of the time?) NULL for extensions.
(closes issue ASTERISK-13952)
Reported by: chris-mac
Patches:
      20090423__bug14895__2.diff.txt uploaded by tilghman (license 14)
Tested by: lmadsen

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=190352

By: Digium Subversion (svnbot) 2009-04-23 15:42:59

Repository: asterisk
Revision: 190353

_U  branches/1.6.0/
U   branches/1.6.0/main/pbx.c

------------------------------------------------------------------------
r190353 | tilghman | 2009-04-23 15:42:58 -0500 (Thu, 23 Apr 2009) | 14 lines

Merged revisions 190352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r190352 | tilghman | 2009-04-23 15:42:11 -0500 (Thu, 23 Apr 2009) | 7 lines
 
 Labels are sometimes (most of the time?) NULL for extensions.
 (closes issue ASTERISK-13952)
  Reported by: chris-mac
  Patches:
        20090423__bug14895__2.diff.txt uploaded by tilghman (license 14)
  Tested by: lmadsen
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=190353

By: Digium Subversion (svnbot) 2009-04-23 15:43:44

Repository: asterisk
Revision: 190354

_U  branches/1.6.1/
U   branches/1.6.1/main/pbx.c

------------------------------------------------------------------------
r190354 | tilghman | 2009-04-23 15:43:44 -0500 (Thu, 23 Apr 2009) | 14 lines

Merged revisions 190352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r190352 | tilghman | 2009-04-23 15:42:11 -0500 (Thu, 23 Apr 2009) | 7 lines
 
 Labels are sometimes (most of the time?) NULL for extensions.
 (closes issue ASTERISK-13952)
  Reported by: chris-mac
  Patches:
        20090423__bug14895__2.diff.txt uploaded by tilghman (license 14)
  Tested by: lmadsen
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=190354

By: Digium Subversion (svnbot) 2009-04-23 15:44:28

Repository: asterisk
Revision: 190355

_U  branches/1.6.2/
U   branches/1.6.2/main/pbx.c

------------------------------------------------------------------------
r190355 | tilghman | 2009-04-23 15:44:28 -0500 (Thu, 23 Apr 2009) | 14 lines

Merged revisions 190352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r190352 | tilghman | 2009-04-23 15:42:11 -0500 (Thu, 23 Apr 2009) | 7 lines
 
 Labels are sometimes (most of the time?) NULL for extensions.
 (closes issue ASTERISK-13952)
  Reported by: chris-mac
  Patches:
        20090423__bug14895__2.diff.txt uploaded by tilghman (license 14)
  Tested by: lmadsen
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=190355