[Home]

Summary:ASTERISK-14674: [patch] crash: "chan_sip.c", lineno=1934
Reporter:Jens von Bülow (jensvb)Labels:
Date Opened:2009-08-18 09:17:51Date Closed:2011-06-07 14:00:52
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20090819__issue15737.diff.txt
( 1) gdb_bt_full.txt
Description:Random crash experienced today

<snip>
#0  0x00002aaab86d698b in __ast_pthread_mutex_lock (filename=0x2aaab8733514 "chan_sip.c", lineno=1934, func=0x2aaab8733ab5 "retrans_pkt",
   mutex_name=0x2aaab8733ac1 "&pkt->owner->lock", t=0x0) at /root/_ast14/asterisk-1.4.26/include/asterisk/lock.h:354
       res = 0
       canlog = 0
       __PRETTY_FUNCTION__ = "__ast_pthread_mutex_lock"
</snip>

Notice that t=0x0 (null) ...
Comments:By: Tilghman Lesher (tilghman) 2009-08-18 11:16:05

In gdb, what is the output of the following:

p pkt->owner

By: Jens von Bülow (jensvb) 2009-08-18 11:32:23

(gdb) p pkt->owner
No symbol "pkt" in current context.
(gdb) p t
$1 = (ast_mutex_t *) 0x0
(gdb) quit

By: Tilghman Lesher (tilghman) 2009-08-18 12:21:36

You may need to do:

frame 1
p pkt->owner

By: Jens von Bülow (jensvb) 2009-08-18 12:25:37

#0  0x00002aaab86d698b in __ast_pthread_mutex_lock (filename=0x2aaab8733514 "chan_sip.c", lineno=1934,
   func=0x2aaab8733ab5 "retrans_pkt", mutex_name=0x2aaab8733ac1 "&pkt->owner->lock", t=0x0)
   at /root/_ast14/asterisk-1.4.26/include/asterisk/lock.h:354
354             int canlog = strcmp(filename, "logger.c") & t->track;
(gdb) frame 1
#1  0x00002aaab86d5d25 in retrans_pkt (data=0x2aab640e4c60) at chan_sip.c:1934
1934            ast_mutex_lock(&pkt->owner->lock);
(gdb) p pkt->owner
$1 = (struct sip_pvt *) 0x0
(gdb)

By: Jens von Bülow (jensvb) 2009-08-19 10:14:59

Thank You.... I will apply tonight.

By: Leif Madsen (lmadsen) 2009-09-15 12:17:05

This issue is ready for testing.

If the reporter could report back their findings on the attached patch, it would be most helpful in resolving this issue.

Thanks!

By: Leif Madsen (lmadsen) 2009-11-05 09:05:47.000-0600

Pinging the reporter. Anything you can report back on please?

By: Jens von Bülow (jensvb) 2009-11-12 04:32:43.000-0600

Hi,

I never did get around to applying the patch and the call centre has never again experienced the same crash.

Sorry.

Regards
Jens

PS: If what you need is for me to apply the patch to the latest 1.4 release and confirm that we didn't crash in 1 week, then I can do that... I just don't know if there is any value in doing that?

By: Leif Madsen (lmadsen) 2009-11-17 07:19:28.000-0600

I'm going to close this issue for now. If you happen to experience the crashes again, then please commit the patch and report back. You'll need to reopen the issue at that point.

Thanks!

By: Leif Madsen (lmadsen) 2009-11-17 07:19:48.000-0600

Closed due to lack of crashing.