Summary:ASTERISK-03010: Asterisk segfaults when both res_mysql and res_odbc are configured
Reporter:Brian Jones (bjones)Labels:
Date Opened:2004-12-15 16:05:50.000-0600Date Closed:2011-06-07 14:00:25
Versions:Frequency of
Environment:Attachments:( 0) extconfig.conf
( 1) res_mysql.conf
( 2) res_odbc.conf
Description:My extconfig.conf specifies mysql as the driver for sipfriends, extensions, and voicemail.  This works fine unless the res_odbc.conf file contains valid information.  Asterisk then segfaults after a database lookup for a call.

Config files are attached...

#0  0x0088d77b in strlen () from /lib/tls/libc.so.6
#1  0x0805af8e in ast_new_variable (name=0x6c617571 <Address 0x6c617571 out of bounds>, value=0x8dc5296 "no")
   at config.c:745
#2  0x00343a13 in realtime_mysql (database=0x6862de0 "asterisk", table=0x6862ce0 "sip", ap=0x6862f10 "")
   at res_config_mysql.c:145
#3  0x0805a193 in ast_load_realtime (family=0x319f17 "sipfriends") at config.c:434
#4  0x002fa62d in realtime_peer (peername=0x0, sin=0x8dbff78) at chan_sip.c:1102
ASTERISK-1  0x002fa979 in find_peer (peer=0x0, sin=0x8dbff78) at chan_sip.c:1174
ASTERISK-2  0x0030a46f in check_user_full (p=0x8dbfe00, req=0x68647d0, cmd=0x68649e4 "INVITE",
   uri=0x68649eb "sip:2563273505@", reliable=1, sin=0x68647c0, ignore=0, mailbox=0x0, mailboxlen=0)
   at chan_sip.c:5510
ASTERISK-3  0x0030ab4d in check_user (p=0x8dbfe00, req=0x68647d0, cmd=0x68649e4 "INVITE",
   uri=0x68649eb "sip:2563273505@", reliable=1, sin=0x68647c0, ignore=0) at chan_sip.c:5601
ASTERISK-4  0x0031172e in handle_request (p=0x8dbfe00, req=0x68647d0, sin=0x68647c0, recount=0x68647ac, nounlock=0x68647b0)
   at chan_sip.c:7382
ASTERISK-5  0x00313555 in sipsock_read (id=0x8d94ab8, fd=11, events=1, ignore=0x0) at chan_sip.c:7839
ASTERISK-6 0x08053201 in ast_io_wait (ioc=0x8d92e58, howlong=1000) at io.c:267
ASTERISK-7 0x00313c98 in do_monitor (data=0x0) at chan_sip.c:7989
ASTERISK-8 0x00a6098c in start_thread () from /lib/tls/libpthread.so.0
ASTERISK-9 0x008e216a in clone () from /lib/tls/libc.so.6

Please let me know if you need anything else.
Comments:By: Brian West (bkw918) 2004-12-15 16:40:37.000-0600


Check your libs.  anthm and I spent hours on this bug.. USE ONE or the OTHER you have NO reason really to use them both... they accomplish the exact same task... and to be honest you only need res_config_odbc it can talk to MySQL via MyODBC.


By: Brian West (bkw918) 2004-12-15 16:41:12.000-0600

Furthermore  THIS COULD be related



By: Brian West (bkw918) 2004-12-15 16:41:54.000-0600