[Home]

Summary:ASTERISK-25327: Annoying ERROR: lock.c:459 __ast_pthread_mutex_unlock: app_queue.c line 6445 (try_calling): mutex 'qe->chan' freed more times than we've locked!
Reporter:Jakub Włudarczyk (jwludarczyk@emakom.pl)Labels:
Date Opened:2015-08-18 01:48:57Date Closed:2020-01-14 11:14:08.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Applications/app_queue
Versions:13.5.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Asterisk 13.5.0, Debian WheezyAttachments:( 0) debug
( 1) extensions.conf
( 2) menuselect.makeopts
( 3) queues.conf
( 4) sip.conf
Description:came out after upgrading from 13.3.2

Comments:By: Asterisk Team (asteriskteam) 2015-08-18 01:48:58.762-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Jakub Włudarczyk (jwludarczyk@emakom.pl) 2015-08-18 02:18:37.663-0500

debug level 5

By: Rusty Newton (rnewton) 2015-08-18 17:35:54.479-0500

Can you describe how to reproduce this issue and provide configuration files (queues.conf, sip.conf, etc) for the reproduction?

What issue is presented to the user? That is, do calls drop or are they not delivered? Is there a practical issue associated with the error message?

By: Jakub Włudarczyk (jwludarczyk@emakom.pl) 2015-08-20 03:05:25.863-0500

config attached, to reproduce register sip accounts, and call from 100 to anywhere, you will reach queue q1, when the queue is switching to another agent, you will see :
ERROR[23231][C-00000005]: lock.c:459 __ast_pthread_mutex_unlock: app_queue.c line 6445 (try_calling): mutex 'qe->chan' freed more times than we've locked!
ERROR[23231][C-00000005]: lock.c:490 __ast_pthread_mutex_unlock: app_queue.c line 6445 (try_calling): Error releasing mutex: Operation not permitted

no issue is presented to the user, calls are delivered normally, but you have LOTS of these errors in logs,

By: Rusty Newton (rnewton) 2015-09-16 18:22:50.808-0500

Jakub I cannot reproduce the error when using your configuration and calling as you described. The calls work fine and no ERROR messages are presented during the calls or after answering.

I verified that I had ERROR log channels coming to the console and verbosity turned up...

There must be another element causing the messages that isn't represented in the configuration you provided. Let us know if you can figure out what that is.

By: Jakub Włudarczyk (jwludarczyk@emakom.pl) 2015-09-17 04:23:39.288-0500

Can you try with these CFLAGS?
MENUSELECT_CFLAGS=DONT_OPTIMIZE DEBUG_THREADS LOADABLE_MODULES BETTER_BACKTRACES MALLOC_DEBUG BUILD_NATIVE OPTIONAL_API
or with my menuselect if above doesnt reproduce this error.

By: Rusty Newton (rnewton) 2015-10-02 09:45:10.375-0500

Please test with [Asterisk 13.6.0-rc1|http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13.6.0-rc1.tar.gz] there is a fix for an issue that I feel might be relevant. Let me know if the issue still occurs in that version.



By: Asterisk Team (asteriskteam) 2015-10-16 12:00:21.680-0500

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines