[Asterisk-Users] iax / realtime problems

Paul P. Pongco paulp at mozcom.com
Mon Apr 11 01:14:49 MST 2005


Hi Mat,

Did the following:
1. Upgraded to new CVS HEAD version CVS-NHEAD-04/11/05-16:08:03 

On the Makefile, enabled the ff:

# Optional debugging parameters
DEBUG_THREADS = -DDEBUG_THREADS -DDO_CRASH -DDETECT_DEADLOCKS
                                                                                                        MALLOC_DEBUG = -include $(PWD)/include/asterisk/astmm.h

I cannot seem to enable pg on this line in Makefile
#Include debug symbols in the executables (-g) and profiling info (-pg)
DEBUG=-g #-pg

I get error below when I do make valgrind
gcc: -pg and -fomit-frame-pointer are incompatible

I skip enabling pg and continue with make clean and make valgrind.

gdb backtrace still gives vague output:

(gdb) bt
#0  0x00beeec0 in vfprintf () from /lib/tls/libc.so.6
#1  0x00c0f286 in vsnprintf () from /lib/tls/libc.so.6
#2  0x00bf7622 in snprintf () from /lib/tls/libc.so.6
#3  0x0048087a in ?? () from
/usr/lib/asterisk/modules/res_config_mysql.so
#4  0x00304420 in ?? ()
#5  0x00000100 in ?? ()
#6  0x0049f900 in ?? () from
/usr/lib/asterisk/modules/res_config_mysql.so
#7  0x00304580 in ?? ()
#8  0x00599605 in ?? () from /usr/lib/asterisk/modules/chan_iax2.so
#9  0x0049f8fc in ?? () from
/usr/lib/asterisk/modules/res_config_mysql.so
#10 0x00304840 in ?? ()
#11 0x0048074c in ?? () from
/usr/lib/asterisk/modules/res_config_mysql.so

Still not clear, any pointers to make the backtrace more verbose?


On Mon, 2005-04-11 at 00:05, Matthew Boehm wrote:
> In order for this to be helpful, you need to recompile with "make valgrind"
> and edit your Makefile and turn on all the debugging stuff.
> 
> -Matthew
> 
> 
> > From: "Paul P. Pongco" <paul.pongco at gmail.com>
> > Reply-To: <paulp at mozcom.com>, Asterisk Users Mailing List - Non-Commercial
> > Discussion <asterisk-users at lists.digium.com>
> > Date: Sat, 9 Apr 2005 15:13:55 +0800
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > <asterisk-users at lists.digium.com>
> > Subject: Re: [Asterisk-Users] iax / realtime problems
> > 
> > Hi Mat,
> > 
> > I can easily replicate the problem. I just put an entry on the iax
> > table for mysql, fire up iax soft client and BOOM .. asterisk core
> > dumps.  What's weird is sip is working fine using realtime. Here is a
> > gdb backtrace. Not really a programmer. Hope someone helps. Thanks.
> > 
> > #0  0x00beeec0 in vfprintf () from /lib/tls/libc.so.6
> > (gdb) bt
> > #0  0x00beeec0 in vfprintf () from /lib/tls/libc.so.6
> > #1  0x00c0f286 in vsnprintf () from /lib/tls/libc.so.6
> > #2  0x00bf7622 in snprintf () from /lib/tls/libc.so.6
> > #3  0x0031187a in ?? () from /usr/lib/asterisk/modules/res_config_mysql.so
> > #4  0x00b19340 in ?? ()
> > #5  0x00000100 in ?? ()
> > #6  0x00330900 in ?? () from /usr/lib/asterisk/modules/res_config_mysql.so
> > #7  0x00b19480 in ?? ()
> > #8  0x0082d5d6 in ?? () from /usr/lib/asterisk/modules/chan_iax2.so
> > #9  0x003308fc in ?? () from /usr/lib/asterisk/modules/res_config_mysql.so
> > #10 0x00b19720 in ?? ()
> > #11 0x0031174c in ?? () from /usr/lib/asterisk/modules/res_config_mysql.so
> > #12 0x00000000 in ?? ()
> > 
> > 
> > On Apr 8, 2005 8:53 PM, Matt Schulte <mschulte at netlogic.net> wrote:
> >> I've never actually core dumped but I *have* been able to hang asterisk
> >> a couple times, I believed my problem was when I lost my mysql
> >> connection. Why it lost connection is a mystery, the servers are on the
> >> same testswitch. :/
> >> 
> >> I forgot which head ver it was, a couple weeks ago.
> >> 
> >> -----Original Message-----
> >> From: Paul P. Pongco [mailto:paulp at mozcom.com]
> >> Sent: Friday, April 08, 2005 1:44 AM
> >> To: Asterisk Users Mailing List - Non-Commercial Discussion
> >> Subject: [Asterisk-Users] iax / realtime problems
> >> 
> >> Hello,
> >> 
> >> I am using CVS-NHEAD-03/29/05-15:51:16 and testing iax realtime. I have
> >> configured a test account on iax.conf:
> >> 
> >> [test]
> >> type=friend
> >> context=test
> >> username=test
> >> auth=md5
> >> secret=testing
> >> host=dynamic
> >> disallow=all
> >> allow=ilbc
> >> allow=gsm
> >> callerid=1010
> >> trunk=no
> >> qualify=no
> >> 
> >> Then I insert an entry on mysql for testing realtime (btw realtime on
> >> the asterisk box works well for sip on both the flatfile and mysql). It
> >> has the same config as that on the flatfile but with different username
> >> and password (iaxtest). Asterisk crashes with the following error:
> >> 
> >> Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass:
> >> REGREQ
> >>    Timestamp: 00003ms  SCall: 03403  DCall: 00000 [x.x.0.93:4569]
> >>    USERNAME        : iaxtest
> >>    REFRESH         : 300
> >> 
> >> Tx-Frame Retry[-01] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
> >> ACK
> >>    Timestamp: 00003ms  SCall: 00003  DCall: 03403 [x.x.0.93:4569]
> >>     -- Seeding 'iaxtest' at x.x.0.93:4569 for 60
> >>     -- Seeding 'iaxtest' at x.x.0.93:4569 for 60
> >>     -- Seeding 'iaxtest' at x.x.0.93:4569 for 60
> >> --snip, above lines just repeat here--
> >>     -- Seeding 'iaxtest' at x.x.0.93:4569 for 60
> >> Ouch ... error while writing audio data: : Broken pipe Segmentation
> >> fault (core dumped)
> >> 
> >> On iax.conf
> >> rtcachefriends=yes
> >> rtnoupdate=yes
> >> rtautoclear=yes
> >> 
> >> What could be causing this? Anyone seen this problem before? Help would
> >> be appreciated. Thanks.
> >> 
> >> --
> >> Cheers,
> >> 
> >> Paul P. Pongco
> >> Mosaic Communications Inc.
> >> 
> >> _______________________________________________
> >> Asterisk-Users mailing list
> >> Asterisk-Users at lists.digium.com
> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >> To UNSUBSCRIBE or update options visit:
> >>    http://lists.digium.com/mailman/listinfo/asterisk-users
> >> _______________________________________________
> >> Asterisk-Users mailing list
> >> Asterisk-Users at lists.digium.com
> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >> To UNSUBSCRIBE or update options visit:
> >>    http://lists.digium.com/mailman/listinfo/asterisk-users
> >> 
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Cheers,

Paul P. Pongco
Mosaic Communications Inc.






More information about the asterisk-users mailing list