[asterisk-dev] URGENT - PJSIP Sorcery Locking

Ross Beer ross.beer at outlook.com
Mon May 30 10:27:26 CDT 2016


Hi,


I'm having an issue with the latest asterisk verison 13.9.1 and SVN MASTER:


=======================================================================

=== 13.9.1

=== Currently Held Locks

=======================================================================

===

=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)

===

=== Thread ID: 0x7f88fc12b700 LWP:28315 (worker_start         started at [ 1077] threadpool.c worker_thread_start())

=== ---> Lock #0 (res_pjsip.c): RDLOCK 2243 ast_sip_identify_endpoint &((&endpoint_identifiers))->lock 0x7f88edabae50 (1)

main/backtrace.c:59 __ast_bt_get_addresses() (0x468532+1D)

main/lock.c:866 __ast_rwlock_rdlock() (0x53e19e+BA)

res/res_pjsip.c:2244 ast_sip_identify_endpoint() (0x7f88ed891f10+2D)

res_pjsip/pjsip_distributor.c:382 endpoint_lookup()

:0 pjsip_endpt_process_rx_data() (0x7f88fe128d10+107)

res_pjsip/pjsip_distributor.c:461 distribute()

main/taskprocessor.c:852 ast_taskprocessor_execute() (0x5ed8b3+110)

main/threadpool.c:1320 execute_tasks()

main/taskprocessor.c:852 ast_taskprocessor_execute() (0x5ed8b3+110)

main/threadpool.c:351 threadpool_execute()

main/threadpool.c:1103 worker_active()

main/threadpool.c:1024 worker_start()

main/utils.c:1235 dummy_start()

pthread_create.c:0 start_thread()

:0 __clone() (0x7f897d36c530+6D)

=== ---> Lock #1 (sorcery.c): RDLOCK 1838 ast_sorcery_retrieve_by_id &(&object_type->wizards)->lock 0x1531a20 (1)

main/backtrace.c:59 __ast_bt_get_addresses() (0x468532+1D)

main/lock.c:866 __ast_rwlock_rdlock() (0x53e19e+BA)

main/sorcery.c:1839 ast_sorcery_retrieve_by_id() (0x5cadb8+8B)

res/res_pjsip_endpoint_identifier_user.c:74 username_identify()

res/res_pjsip.c:2246 ast_sip_identify_endpoint() (0x7f88ed891f10+52)

res_pjsip/pjsip_distributor.c:382 endpoint_lookup()

:0 pjsip_endpt_process_rx_data() (0x7f88fe128d10+107)

res_pjsip/pjsip_distributor.c:461 distribute()

main/taskprocessor.c:852 ast_taskprocessor_execute() (0x5ed8b3+110)

main/threadpool.c:1320 execute_tasks()

main/taskprocessor.c:852 ast_taskprocessor_execute() (0x5ed8b3+110)

main/threadpool.c:351 threadpool_execute()

main/threadpool.c:1103 worker_active()

main/threadpool.c:1024 worker_start()

main/utils.c:1235 dummy_start()

pthread_create.c:0 start_thread()

:0 __clone() (0x7f897d36c530+6D)


There are currently around 9 locks held and no phones are able to register. The system is using the latest unixODBC and mysql-connector-odbc drivers. This has been working well up until recently. However a change appears to have been made to the way endpoints are authenticated. I'm exploring the possibility that this may be a unixODBC issue however I would be great full if anyone could offer any assistance?

Kind regards,

Ross

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20160530/a451b4b2/attachment.html>


More information about the asterisk-dev mailing list