[asterisk-bugs] [Asterisk 0015915]: crash when calling ao2_unlock inside pthread_timer_disable_continuous

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 18 03:57:09 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15915 
====================================================================== 
Reported By:                keiron
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15915
Category:                   Resources/res_timing_pthread
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           Older 1.6.1 
JIRA:                       SWP-307 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-09-18 01:03 CDT
Last Modified:              2009-11-18 03:57 CST
====================================================================== 
Summary:                    crash when calling ao2_unlock inside
pthread_timer_disable_continuous
Description: 
When under heavy load we have experienced random crashes (6 times in a day)
at the same point in the code. The load is with about 200 channels, 70
users and making a lot of calls. It was very stable until we started
reaching a certain level of usage.
====================================================================== 

---------------------------------------------------------------------- 
 (0113916) Shivam Agarwal (reporter) - 2009-11-18 03:57
 https://issues.asterisk.org/view.php?id=15915#c113916 
---------------------------------------------------------------------- 
Hi All,
 I am using releaase "asterisk-1.6.1.7-rc2" and when I run heavy load
somewhere around 200 calls on this release, I also witness this issue.
Kindly find the backtrace for the same as below:

received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1248740464 (LWP 8951)]
0x00d88cbc in ao2_unlock at plt () from
/usr/lib/asterisk/modules/res_timing_pthread.so
(gdb) bt
https://issues.asterisk.org/view.php?id=0  0x00d88cbc in ao2_unlock at plt () from
/usr/lib/asterisk/modules/res_timing_pthread.so
https://issues.asterisk.org/view.php?id=1  0x00d899b6 in
pthread_timer_disable_continuous (handle=1123) at
res_timing_pthread.c:240
https://issues.asterisk.org/view.php?id=2  0x08097b7f in __ast_read
(chan=0x9454ef0, dropaudio=0) at
channel.c:2898
https://issues.asterisk.org/view.php?id=3  0x0809bb52 in __ast_request_and_dial
(type=0xb4cf6298 "SIP",
format=64, data=0xb4cf6398, timeout=59995, outstate=0xb591b358,
    cid_num=0xb4cf673c "9838079257", cid_name=0xb4cf683c "",
oh=0xb591b2b4) at channel.c:3279
https://issues.asterisk.org/view.php?id=4  0x08108219 in ast_pbx_outgoing_exten
(type=0xb4cf6298 "SIP",
format=64, data=0xb4cf6398, timeout=60000, context=0xb4cf66e8 "voice",
    exten=0xb4cf6698 "s", priority=1, reason=0xb591b358, synchronous=2,
cid_num=0xb4cf673c "9838079257", cid_name=0xb4cf683c "", vars=0xb4cf6960,
    account=0xb4cf693c "", channel=0x0) at pbx.c:7429
https://issues.asterisk.org/view.php?id=5  0x007ec6a3 in attempt_thread
(data=0xb4cf6180) at pbx_spool.c:341
https://issues.asterisk.org/view.php?id=6  0x0814858b in dummy_start
(data=0xb7302858) at utils.c:986
https://issues.asterisk.org/view.php?id=7  0x00c062db in start_thread () from
/lib/libpthread.so.0
https://issues.asterisk.org/view.php?id=8  0x001dd14e in clone () from
/lib/libc.so.6

However in issue having id "16156" it is mentioned that @plt" string in
gdb indicates that the PLT in the linker is at fault. Quite simply, the
linker cannot find the ao2_unlock function. So could you throw more light
on this. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-18 03:57 Shivam Agarwal Note Added: 0113916                          
======================================================================




More information about the asterisk-bugs mailing list