[asterisk-users] Segmentation fault on Asterisk startup: res_config_mysql.so problem?

Michiel van Baak michiel at vanbaak.info
Sun Sep 24 01:46:03 MST 2006


On 16:04, Sun 24 Sep 06, kjcsb wrote:
> When Asterisk starts I get a Segmentation fault
> /usr/sbin/safe_asterisk: line 40: 30548 Segmentation fault      (core 
> dumped) asterisk ${CLIARGS} ${ASTARGS} >&/dev/${TTY} </dev/${TTY}
> Asterisk ended with exit status 139
> Asterisk exited on signal 11.
> 
> If I remove /usr/lib/asterisk/modules/res_config_mysql.so Asterisk starts 
> normally.
> 
> tail /var/log/asterisk/full.log
> Sep 24 15:46:05 VERBOSE[30608] logger.c:   == Parsing 
> '/etc/asterisk/res_mysql.conf': Sep 24 15:46:05 VERBOSE[30608] logger.c: 
> == Parsing '/etc/asterisk/res_mysql.conf': Found
> Sep 24 15:46:05 WARNING[30608] res_config_mysql.c: MySQL RealTime: No 
> database socket found, using '/tmp/mysql.sock' as default.
> Sep 24 15:46:05 DEBUG[30608] res_config_mysql.c: MySQL RealTime Host: 
> 127.0.0.1
> Sep 24 15:46:05 DEBUG[30608] res_config_mysql.c: MySQL RealTime Port: 3306
> Sep 24 15:46:05 DEBUG[30608] res_config_mysql.c: MySQL RealTime User: root
> Sep 24 15:46:05 DEBUG[30608] res_config_mysql.c: MySQL RealTime Password: 
> password
> 
> vi /etc/asterisk/res_mysql.conf
> [general]
> dbhost = 127.0.0.1
> dbname = asterisk
> dbuser = root
> dbpass = password
> dbport = 3306
> ;dbsock = /var/lib/mysql/mysql.sock
> 
> If I uncomment the dbsock line I get the same result (although the database 
> socket warning is not displayed in the log file).
> 
> I am using MySQL for CDR logging so I don't think it's a MySQL problem.
> 
> Asterisk 1.2.12.1
> Asterisk addon 1.2.4
> 
> When I install Asterisk I receive a warning:
> Your Asterisk modules directory, located at /usr/lib/asterisk/modules 
> contains modules that were not installed by this version of Asterisk.
> 
> However I cleared out the /usr/lib/asterisk/modules directory before make 
> clean && make && make install for both add-ons and asterisk so I'm a bit 
> mystified by that.
> 
Did you do a make && make install for add-ons BEFORE doing
so for asterisk?
If so try asterisk first and when all is installed install
add-ons.

-- 

Michiel van Baak
michiel at vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer afficionados are both called users?"



More information about the asterisk-users mailing list