Asterisk crashes with ealtime mysql configuration [was: Re: [asterisk-users] Please help me!!]

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Oct 17 07:16:23 MST 2006


On Tue, Oct 17, 2006 at 03:42:55PM +0200, flavio wrote:
> Hi to all,
> I've a segmentation fault while using asterisk relatime conf with mysql db.
> 
> I've cretate sip_buddies and extensions tables into db and edit
> res_mysql.conf, extconf.conf without any issues.
> So when I start asterisk and my phone try to register using sip user
> configured in my db, asterisk stops with Segmentation fault error.
> 
> Follow post gdb backtrace
> 
> 0 0x400337c0 in pthread_setcanceltype () from /lib/libpthread.so.0
> #21 0x0805d8de in ast_load_realtime (family=0x666d7464 <Address
> 0x666d7464 out of bounds>) at config.c:994
> #22 0x4047cdad in realtime_peer (peername=0xbe7f8891 "101", sin=0x730)
> at chan_sip.c:1696
> #23 0x4046cf67 in find_peer (peer=0xbe7f8891 "101", sin=0x0,
> realtime=1) at chan_sip.c:1776
> #24 0x40485dfd in register_verify (p=0x81944d8, sin=0xbe7fe79c,
> req=0xbe7fe7ac, uri=0xbe7fe9cd "sip:192.168.1.2", ignore=1718449252)
> at chan_sip.c:6514
> #25 0x404839b7 in handle_request (p=0x81944d8, req=0xbe7fe7ac,
> sin=0xbe7fe79c, recount=0x666d7464, nounlock=0x666d7464) at
> chan_sip.c:11083
> #26 0x4048150d in sipsock_read (id=0x813ed80, fd=15, events=1,
> ignore=0x0) at chan_sip.c:11377
> #27 0x080558dd in ast_io_wait (ioc=0x8162320, howlong=1718449252) at 
> io.c:284
> #28 0x404776a9 in do_monitor (data=0x0) at chan_sip.c:11536
> #29 0x40034cc4 in pthread_detach () from /lib/libpthread.so.0
> #30 0x40201037 in clone () from /lib/libc.so.6
> 
> Please anyone can help me with a suggestion?

Three:

1. Use a proper subject line. Something like "Asterisk crashes with
realtime mysql configuration"

2. Don't post such messages on asterisk-dev . Cross-posting them is even
worse.

3. Provide more information about the system:

- Version of Asterisk
- Operating system and special libraried used
- Did this work before?
- Is the crash reproducable? What is the minimal configuration required
  to reproduce it?

-- 
Tzafrir Cohen         sip:tzafrir at local.xorcom.com
icq#16849755          iax:tzafrir at local.xorcom.com
+972-50-7952406          jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com     http://www.xorcom.com


More information about the asterisk-users mailing list