[Home]

Summary:ASTERISK-10772: crash ast_queue_hangup (chan=0x0)
Reporter:Bing Li(enst) (enst)Labels:
Date Opened:2007-11-15 04:23:36.000-0600Date Closed:2007-12-14 15:07:34.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:#0  0x0000000000448361 in __ast_pthread_mutex_trylock (filename=0x51b973 "channel.c", lineno=5041, func=0x51f650 "ast_channel_trylock",
   mutex_name=0x51d283 "&chan->lock", t=0xc8) at /usr/src/asterisk/include/asterisk/lock.h:349
       res = 1195112954
       canlog = -1
       __PRETTY_FUNCTION__ = "__ast_pthread_mutex_trylock"
#1  0x0000000000451b50 in ast_channel_trylock (chan=0x0) at channel.c:5041
       res = -737182658
       __PRETTY_FUNCTION__ = "ast_channel_trylock"
#2  0x0000000000441cd5 in ast_queue_hangup (chan=0x0) at channel.c:955
       f = {frametype = AST_FRAME_CONTROL, subclass = 1, datalen = 0, samples = 0, mallocd = 0, mallocd_hdr_len = 0, offset = 0, src = 0x0,
 data = 0x0, delivery = {tv_sec = 0, tv_usec = 0}, frame_list = {next = 0x0}, has_timing_info = 0, ts = 0, len = 0, seqno = 0}
#3  0x00002aaac0834c69 in __sip_autodestruct (data=0x2aaad4103b10) at chan_sip.c:2108
       p = (struct sip_pvt *) 0x2aaad4103b10
       __PRETTY_FUNCTION__ = "__sip_autodestruct"
#4  0x00000000004cbc6c in ast_sched_runq (con=0x2aaab004ca30) at sched.c:359
       current = (struct sched *) 0x2aaadc0a2e00
       tv = {tv_sec = 1195112955, tv_usec = 7745}
       numevents = 0
       res = 0
       __PRETTY_FUNCTION__ = "ast_sched_runq"
ASTERISK-1  0x00002aaac087afc9 in do_monitor (data=0x0) at chan_sip.c:15416
       res = 1
       sip = (struct sip_pvt *) 0x2aaacc1b4830
       peer = (struct sip_peer *) 0x0
       t = 1195112955
       fastrestart = 1
       lastpeernum = 116
       curpeernum = 117
       reloading = 0
       __PRETTY_FUNCTION__ = "do_monitor"
ASTERISK-2  0x00000000004deaae in dummy_start (data=0x2aaab0056820) at utils.c:806
       __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, -68017707629103782, 0, 0, 3, 1076445184, -68017707629104102,
       -68017708705223228}, __mask_was_saved = 0}}, __pad = {0x402931c0, 0x0, 0x0, 0x0}}
       __cancel_routine = (void (*)(void *)) 0x429baa <ast_unregister_thread>
       __cancel_arg = (void *) 0x40293940
       not_first_call = 0
       ret = (void *) 0x0
       a = {start_routine = 0x2aaac087a90d <do_monitor>, data = 0x0,
 name = 0x2aaab0197540 "do_monitor", ' ' <repeats 11 times>, "started at [15470] chan_sip.c restart_monitor()"}
       lock_info = (struct thr_lock_info *) 0x7cf620
ASTERISK-3  0x00002b47937e12a5 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
ASTERISK-4  0x00002b47941b961d in clone () from /lib/libc.so.6
No symbol table info available.
ASTERISK-5  0x0000000000000000 in ?? ()
No symbol table info available.


chan_sip.c
p->owner == 0x0;

if (p->owner) {
ast_log(LOG_WARNING, "Autodestruct on dialog '%s' with owner in place (Method: %s)\n", p->callid, sip_methods[p->method].text);
ast_queue_hangup(p->owner);
}

Comments:By: Olle Johansson (oej) 2007-11-15 04:43:14.000-0600

Moving this issue away from SIP to app_queue

By: Jason Parker (jparker) 2007-11-15 12:15:48.000-0600

I don't think this should have been moved..  ast_queue_hangup isn't an app_queue thing - it's to queue a hangup

By: Tilghman Lesher (tilghman) 2007-11-15 12:17:46.000-0600

Please update to SVN 1.4 and try again.  I believe this issue has already been fixed.

By: Jason Parker (jparker) 2007-12-14 15:07:33.000-0600

No response from reporter.

Closing.  Please reopen if you are able to reproduce after upgrading to the latest svn.