[Home]

Summary:ASTERISK-16457: [patch] Asterisk 1.8 beta2 crash with configured MGCP/NCS when option wcardep = aaln/* is used
Reporter:Tim Gruenberg (tgruenberg)Labels:
Date Opened:2010-07-29 02:03:38Date Closed:2010-08-04 09:05:12
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_mgcp
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20100804__issue17775.diff.txt
( 1) backtrace-DONT_OPTIMIZE.txt
( 2) valgrind.txt
Description:If I use the option "wcardep = aaln/*" in mgcp.conf asterisk will crash with an fragmentation error. This is reproduceable if there is an active MGCP endpoint which needs aaln/*, like a cable modem with eMTA PacketCable1.5 from Kathrein (DCV300).

In the moment the MGCP channel driver audits the endpoint hook state the fragmentation error occures.

This issue is reproduceable on startup or on reloading mgcp channel driver, but only if there is an endpoint reachable. If there is no endpoint reachable asterisk does not crash.
Comments:By: Paul Belanger (pabelanger) 2010-07-29 08:05:12

We need a backtrace (see below), without one we cannot triage the issue.
---
Thank you for your bug report. In order to move your issue forward, we require a backtrace from the core file produced after the crash. Please see the doc/backtrace.txt file in your Asterisk source directory.

Also, be sure you have DONT_OPTIMIZE enabled in menuselect within the Compiler Flags section, then:

make install

after enabling, reproduce the crash, and then execute the instructions in doc/backtrace.txt.

When complete, attach that file to this issue report. Thanks!

By: Leif Madsen (lmadsen) 2010-07-29 11:16:51

Actually looks like your backtrace doesn't really contain any information. This may be due to memory corruption, which means you should review the valgrind.txt file as we'll need that information to move this issue forward. Thanks!

By: Paul Belanger (pabelanger) 2010-07-29 11:29:39

Looks like the symbols did not get loaded properly.

By: Tim Gruenberg (tgruenberg) 2010-08-02 00:25:57

I hope the debug information will help, if needed I can take further debug traces for you.

By: Tilghman Lesher (tilghman) 2010-08-04 00:27:57

Patch uploaded; please verify that this fixes your crash.

By: Tim Gruenberg (tgruenberg) 2010-08-04 07:46:17

Hi,
this fix my crash, now the eMTA of the cable modem registers fine on the asterisk server.

Thanks for the patch, I hope this will help you, too.

By: Digium Subversion (svnbot) 2010-08-04 09:04:07

Repository: asterisk
Revision: 280879

U   branches/1.8/channels/chan_mgcp.c

------------------------------------------------------------------------
r280879 | tilghman | 2010-08-04 09:04:05 -0500 (Wed, 04 Aug 2010) | 14 lines

Check cur value before attempting a deref.

(closes issue ASTERISK-15726)
Reported by: svinson
Patches:
      20100804__issue17775.diff.txt uploaded by tilghman (license 14)
Tested by: svinson

(closes issue ASTERISK-16457)
Reported by: tgruenberg
Patches:
      20100804__issue17775.diff.txt uploaded by tilghman (license 14)
Tested by: tgruenberg

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

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

By: Digium Subversion (svnbot) 2010-08-04 09:05:10

Repository: asterisk
Revision: 280880

_U  trunk/
U   trunk/channels/chan_mgcp.c

------------------------------------------------------------------------
r280880 | tilghman | 2010-08-04 09:05:09 -0500 (Wed, 04 Aug 2010) | 21 lines

Merged revisions 280879 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
 r280879 | tilghman | 2010-08-04 09:04:07 -0500 (Wed, 04 Aug 2010) | 14 lines
 
 Check cur value before attempting a deref.
 
 (closes issue ASTERISK-15726)
  Reported by: svinson
  Patches:
        20100804__issue17775.diff.txt uploaded by tilghman (license 14)
  Tested by: svinson
 
 (closes issue ASTERISK-16457)
  Reported by: tgruenberg
  Patches:
        20100804__issue17775.diff.txt uploaded by tilghman (license 14)
  Tested by: tgruenberg
........

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

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