[asterisk-dev] segfault if res_timing_pthread.so loaded

Russell Bryant russell at digium.com
Thu Jun 17 19:23:11 CDT 2010



----- Original Message -----
> Sorry to continue this non-dev question, but I have set up a medium
> load test between two 1.6.2.9-rc3 asterisks (75-80 active SIP calls
> between them) and in less than 20 minutes one of the asterisks (the
> one that
> generates the calls) died with this segfault:
> 
> Core was generated by `/usr/sbin/asterisk -f'.
> Program terminated with signal 11, Segmentation fault.
> #0 0x00ba0cb4 in ao2_unlock at plt () from
> /usr/lib/asterisk/modules/res_timing_pthread.so (gdb) bt

Yes, this code is broken.  I have seen this crash reported by multiple people.  A number of developers have looked at it and haven't been able to figure it out.  By the way, if someone submits a patch that fixes the crashes from this module, you can have a nice dinner on me.  :-)

> How do I enable another timing module instead of
> res_timing_pthread.so? Does CentOS 5.X have the timerfd module? Or...
> this is a bug I need to report?

I don't know if the timerfd module will work on your version of CentOS.  The Asterisk configure script will detect support for it if it is there, and then it will be built and installed.  If it gets installed, it will get automatically used.  If it's not there, then you can certainly install DAHDI, and use res_timing_dahdi.

--
Russell Bryant
Digium, Inc.  |  Engineering Manager, Open Source Software
445 Jan Davis Drive NW   -    Huntsville, AL 35806  -  USA
jabber: rbryant at digium.com    -=-    skype: russell-bryant
www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org



More information about the asterisk-dev mailing list