I have a working asterisk test box that I'm rebuilding with mysql support so that I can test cdr stats (http://www.cdr-stats.org/). When I run 'make memuselect', I select res_config_mysql, app_mysql, cdr_mysql, and app_saycountpl components. The build/install process goes fine i.e. no errors. However, I'm getting a seg fault error when starting asterisk. # /usr/sbin/safe_asterisk: line 145: 27014 Segmentation fault (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS}> /dev/${TTY} 2>&1 < /dev/${TTY}CentOS release 5.7 asterisk-1.8.9.2 dahdi-linux-complete-2.6.0 libpri-1.4.12 What am I missing? -- Ron Bergin Network Operations Administrator Fry's Electronics, Inc.
Paul Belanger
2012-Mar-06 17:16 UTC
[asterisk-users] Compiling asterisk with mysql support
On 12-03-06 12:05 PM, Ron Bergin wrote:> I have a working asterisk test box that I'm rebuilding with mysql support > so that I can test cdr stats (http://www.cdr-stats.org/). > > When I run 'make memuselect', I select res_config_mysql, app_mysql, > cdr_mysql, and app_saycountpl components. The build/install process goes > fine i.e. no errors. However, I'm getting a seg fault error when starting > asterisk. > > # /usr/sbin/safe_asterisk: line 145: 27014 Segmentation fault (core > dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >> /dev/${TTY} 2>&1< /dev/${TTY} > > CentOS release 5.7 > asterisk-1.8.9.2 > dahdi-linux-complete-2.6.0 > libpri-1.4.12 > > What am I missing? >For what ever reason, asterisk is crashing. You'll need to generate a backtrace[1]. [1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace -- Paul Belanger Digium, Inc. | Software Developer twitter: pabelanger | IRC: pabelanger (Freenode) Check us out at: http://digium.com & http://asterisk.org
Matthew Jordan
2012-Mar-06 17:29 UTC
[asterisk-users] Compiling asterisk with mysql support
----- Original Message -----> From: "Ron Bergin" <rkb at i.frys.com> > To: asterisk-users at lists.digium.com > Sent: Tuesday, March 6, 2012 11:05:35 AM > Subject: [asterisk-users] Compiling asterisk with mysql support > > I have a working asterisk test box that I'm rebuilding with mysql > support > so that I can test cdr stats (http://www.cdr-stats.org/). > > When I run 'make memuselect', I select res_config_mysql, app_mysql, > cdr_mysql, and app_saycountpl components. The build/install process > goes > fine i.e. no errors. However, I'm getting a seg fault error when > starting > asterisk.Please also note that app_saycountpl, res_config_mysql, app_mysql, and cdr_mysql are all either extended support modules or deprecated: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Module+Support+States Note that if the segmentation fault is occurring in an extended support module, development support typically comes from the Asterisk community. In the case of deprecated modules, your mileage will vary considerably. You may want to consider using an ODBC connection instead of interfacing directly with the MySQL database, using the following: * app_mysql => func_odbc * cdr_mysql => cdr_adaptive_odbc * res_config_mysql => res_odbc * app_saycountpl => say.conf> # /usr/sbin/safe_asterisk: line 145: 27014 Segmentation fault > (core > dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} > ${ASTARGS} > > /dev/${TTY} 2>&1 < /dev/${TTY} > > CentOS release 5.7 > asterisk-1.8.9.2 > dahdi-linux-complete-2.6.0 > libpri-1.4.12 > > What am I missing? > > -- > Ron Bergin > Network Operations Administrator > Fry's Electronics, Inc. >Matthew Jordan Digium, Inc. | Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.org