[Asterisk-Dev] Deadlock ? app_queue / chan_agent

NRB nrb at dantronic-engineering.dk
Tue Feb 22 15:35:36 MST 2005


Unfortunately we're still kind of stuck with this bug.
- Michael, Have you been able to generate a coredump within the last 14 days? - Or maybe a sollution to the problem? :-)
We've only had problem with agents unable to login/logout in a testsetup when we were stressing * with logins/logoffs

/NRB





----- Original Message ----- 
  From: Michael Rose 
  To: nrb at dantronic-engineering.dk 
  Sent: Tuesday, February 08, 2005 2:04 AM
  Subject: Re: [Asterisk-Dev] Deadlock ? app_queue / chan_agent


  NRB, I'm having the same issue. However I was not able to generate a core file to run gdb. We've also seen a problem where agents can't login/logoff. I'm willing to pay a bounty to get these bugs resolved.

  Thanks
  Michael

  NRB wrote: 
update:


Another incident: same symptomps - Queue seems to be dead until * is restarted

According til gdb dump2 (attached file), * is hanging in app_queue line 939

>From app_queue.c: 

static int update_queue(struct ast_call_queue *q, struct member *member)
{
 struct member *cur;
 /* Since a reload could have taken place, we have to traverse the list to
  be sure it's still valid */
 ast_mutex_lock(&q->lock);             <-----------------line 939
 cur = q->members;
 while(cur) {
  if (member == cur) {
   time(&cur->lastcall);
   cur->calls++;
   break;
  }
  cur = cur->next;
 }
 q->callscompleted++;
 ast_mutex_unlock(&q->lock);
 return 0;
}



I´ve tried to compile with the -DDEBUG_THREADS option (to be able to trace who isn't unlockin properly) but it does not seem go give me extra debugentries in the log - have I missed something?

By the way: what does this message fom gdb tell me?:
"Previous frame identical to this frame (corrupt stack?)"

/NRB----------------------------------------------------------------------------
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20050222/61824c18/attachment.htm


More information about the asterisk-dev mailing list