[asterisk-bugs] [Asterisk 0014243]: core dump on pri_schedule_event

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 4 14:15:09 CST 2009


The following issue has been set as RELATED TO issue 0014335. 
====================================================================== 
http://bugs.digium.com/view.php?id=14243 
====================================================================== 
Reported By:                ricvil
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14243
Category:                   Channels/chan_dahdi
Reproducibility:            unable to reproduce
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-14 17:14 CST
Last Modified:              2009-03-04 14:15 CST
====================================================================== 
Summary:                    core dump on pri_schedule_event
Description: 
This is the 3rd time in a week that this Asterisk has core dumped.  Always
on the same pri_schedule_event.  I have recompiled with DONT_OPTIMZE,
DEBUG_CHANNEL_LOCK, and DEBUG_THREADS.  
Version is 1.4.22 and libpri is 1.4.7.

Here is the 'bt' and 'bt full'.  I can also attach the 'thread apply all
bt' if necessary.

# gdb asterisk /tmp/core.xxx.net-2009-01-14T10:31:51-0500
GNU gdb Red Hat Linux (6.5-37.el5rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host
libthread_db library "/lib/libthread_db.so.1".
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcap.so.1...done.
Loaded symbols for /lib/libcap.so.1
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
.
.
.
Reading symbols from
/usr/lib/asterisk/modules/app_settransfercapability.so...done.
Loaded symbols for /usr/lib/asterisk/modules/app_settransfercapability.so
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
http://bugs.digium.com/view.php?id=0  0x00f5061e in pri_schedule_event
(pri=0x15, ms=0, function=0xf4e0e6
<t200_expire>, data=0x86729b8) at prisched.c:44
44              while (pri->master)

(gdb) bt
http://bugs.digium.com/view.php?id=0  0x00f5061e in pri_schedule_event
(pri=0x15, ms=0, function=0xf4e0e6
<t200_expire>, data=0x86729b8) at prisched.c:44
http://bugs.digium.com/view.php?id=1  0x00f4e8c2 in q921_transmit_iframe
(pri=0x86729b8, buf=0x48e8880,
len=14, cr=1) at q921.c:513
http://bugs.digium.com/view.php?id=2  0x00f56d62 in q931_xmit (pri=0x86729b8,
h=0x48e8880, len=14, cr=1) at
q931.c:2606
http://bugs.digium.com/view.php?id=3  0x00f56f5b in send_message (pri=0x83e8bd0,
c=0x84f0130, msgtype=7,
ies=0xf6d6ac) at q931.c:2649
http://bugs.digium.com/view.php?id=4  0x00f57c89 in q931_connect (pri=0x83e8bd0,
c=0x84f0130, channel=0,
nonisdn=1) at q931.c:2918
http://bugs.digium.com/view.php?id=5  0x00f4c2f6 in pri_answer (pri=0x83e8bd0,
call=0x84f0130, channel=0,
nonisdn=1) at pri.c:533
http://bugs.digium.com/view.php?id=6  0x06c2b56e in dahdi_answer (ast=0x87f8b58)
at chan_dahdi.c:2906
http://bugs.digium.com/view.php?id=7  0x08087db2 in ast_answer (chan=0x87f8b58)
at channel.c:1557
http://bugs.digium.com/view.php?id=8  0x00736f6b in ast_bridge_call
(chan=0x87f8b58, peer=0x851df48,
config=0x48e9200) at res_features.c:1448
http://bugs.digium.com/view.php?id=9  0x00960057 in dial_exec_full
(chan=0x87f8b58, data=0x48ebf48,
peerflags=0x48e9e14, continue_exec=0x0) at app_dial.c:1780
http://bugs.digium.com/view.php?id=10 0x00960ada in dial_exec (chan=0x87f8b58,
data=0x48ebf48) at
app_dial.c:1834
http://bugs.digium.com/view.php?id=11 0x080d01ca in pbx_exec (c=0x87f8b58,
app=0xb7d20b60, data=0x48ebf48)
at pbx.c:537
http://bugs.digium.com/view.php?id=12 0x080d3f25 in pbx_extension_helper
(c=0x87f8b58, con=0x0,
context=0x87f8d98 "arbinet_value2", exten=0x87f8de8 "012124274450",
priority=1, label=0x0, 
    callerid=0x85674b8 "7186849117", action=E_SPAWN) at pbx.c:1862
http://bugs.digium.com/view.php?id=13 0x080d526a in ast_spawn_extension
(c=0x87f8b58, context=0x87f8d98
"arbinet_value2", exten=0x87f8de8 "012124274450", priority=1, 
    callerid=0x85674b8 "7186849117") at pbx.c:2317
http://bugs.digium.com/view.php?id=14 0x080d569a in __ast_pbx_run (c=0x87f8b58)
at pbx.c:2406
http://bugs.digium.com/view.php?id=15 0x080d6495 in pbx_thread (data=0x87f8b58)
at pbx.c:2621
http://bugs.digium.com/view.php?id=16 0x08119e13 in dummy_start (data=0x83f0310)
at utils.c:912
http://bugs.digium.com/view.php?id=17 0x0067946b in start_thread () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=18 0x005d0dbe in clone () from /lib/libc.so.6

(gdb) bt full
http://bugs.digium.com/view.php?id=0  0x00f5061e in pri_schedule_event
(pri=0x15, ms=0, function=0xf4e0e6
<t200_expire>, data=0x86729b8) at prisched.c:44
        x = 133504
        tv = {tv_sec = 142624384, tv_usec = 36}
http://bugs.digium.com/view.php?id=1  0x00f4e8c2 in q921_transmit_iframe
(pri=0x86729b8, buf=0x48e8880,
len=14, cr=1) at q921.c:513
        f = (q921_frame *) 0x8645148
        prev = (q921_frame *) 0x0
http://bugs.digium.com/view.php?id=2  0x00f56d62 in q931_xmit (pri=0x86729b8,
h=0x48e8880, len=14, cr=1) at
q931.c:2606
No locals.
http://bugs.digium.com/view.php?id=3  0x00f56f5b in send_message (pri=0x83e8bd0,
c=0x84f0130, msgtype=7,
ies=0xf6d6ac) at q931.c:2649
        buf = "\b\002\204h\a\030\003©\203\224\036\002\201\202\036", '\0'
<repeats 1008 times>
        h = (q931_h *) 0x48e8880
        mh = (q931_mh *) 0x48e8884
        len = 14
        res = 4
        offset = 9
        x = 2
        codeset = 0
http://bugs.digium.com/view.php?id=4  0x00f57c89 in q931_connect (pri=0x83e8bd0,
c=0x84f0130, channel=0,
nonisdn=1) at q931.c:2918
        __PRETTY_FUNCTION__ = "q931_connect"
http://bugs.digium.com/view.php?id=5  0x00f4c2f6 in pri_answer (pri=0x83e8bd0,
call=0x84f0130, channel=0,
nonisdn=1) at pri.c:533
No locals.
http://bugs.digium.com/view.php?id=6  0x06c2b56e in dahdi_answer (ast=0x87f8b58)
at chan_dahdi.c:2906
        p = (struct dahdi_pvt *) 0x83df638
        res = 0
        index = 0
        oldstate = 4
        __PRETTY_FUNCTION__ = "dahdi_answer"
http://bugs.digium.com/view.php?id=7  0x08087db2 in ast_answer (chan=0x87f8b58)
at channel.c:1557
        res = 0
        __PRETTY_FUNCTION__ = "ast_answer"
http://bugs.digium.com/view.php?id=8  0x00736f6b in ast_bridge_call
(chan=0x87f8b58, peer=0x851df48,
config=0x48e9200) at res_features.c:1448
        f = (struct ast_frame *) 0x48e9234
        who = (struct ast_channel *) 0x87f8de8
        chan_featurecode = '\0' <repeats 11 times>
        peer_featurecode = '\0' <repeats 11 times>
        orig_channame =
"5}\024\b\201\210\024\bØ\216\216\004\220Èg\0008\217\216\004~=\b\bÐ\213\177\b(­u\bH\217\216\004\2309\b\bÐ\213\177\b4}\024\b%\006\000\000Ì\225\024\b\000ýH\bÐ\213\177\bH\217\216\004Y\"\t\b\t\000\000\000\200\210\024\b"
        orig_peername =
"¨\216\216\004j|\021\b\234Äg\000\217\222\021\b¸\216\216\004\001\000\000\000\000\000\000\000\220ë\216\0045}\024\b\201\210\024\b¨\216\216\004\220Èg\000Ø\216\216\004\221\230\021\b\234Äg\000(\b\000\0005}\024\b\001\000\000\000È\216\216\004\220ë\216\004"
        res = 76451704
        diff = 134816345
        hasfeatures = 0
        hadfeatures = 0
        aoh = (struct ast_option_header *) 0x11fd
        backup_config = {features_caller = {flags = 0}, features_callee =
{flags = 0}, start_time = {tv_sec = 0, tv_usec = 0}, feature_timer = 0, 
  timelimit = 0, play_warning = 0, warning_freq = 0, warning_sound = 0x0,
end_sound = 0x0, start_sound = 0x0, firstpass = 0, flags = 0}
        bridge_cdr = (struct ast_cdr *) 0x0
        orig_peer_cdr = (struct ast_cdr *) 0x0
        __PRETTY_FUNCTION__ = "ast_bridge_call"
http://bugs.digium.com/view.php?id=9  0x00960057 in dial_exec_full
(chan=0x87f8b58, data=0x48ebf48,
peerflags=0x48e9e14, continue_exec=0x0) at app_dial.c:1780
        config = {features_caller = {flags = 1}, features_callee = {flags
= 0}, start_time = {tv_sec = 1231947111, tv_usec = 279084}, feature_timer =
0, 
  timelimit = 7180000, play_warning = 60000, warning_freq = 30000,
warning_sound = 0x84047eb "1", end_sound = 0x84e12f3 "1", start_sound =
0x0, 
  firstpass = 1, flags = 0}
        number = 0x846afc1 "550512124274450 at arbinet_B"
        end_time = 76454336
        answer_time = 1231947111
        res = 0
        u = (struct ast_module_user *) 0x84bd9f0
        rest = 0x0
        cur = 0x0
        outgoing = (struct dial_localuser *) 0x0
        peer = (struct ast_channel *) 0x851df48
        to = 57269
        numbusy = 0
        numcongestion = 0
        numnochan = 0
        cause = 0
        numsubst =
"550512124274450 at arbinet_B\000\216\004C\235\216\004ô\234\216\004C\235\216\004",
'\0' <repeats 20 times>,
"?\000\000\000\000\000\000\000ôïc1\000\000\000\000\000\000\000\000d\233\216\004\237(V\000ÿÿÿ1\210\233\216\004\000\000\000\000ÿÿÿÿ\024PV\000ÿÿÿÿ\000\000\000\000ôïc\000\000\000\000\000\000\000\000\000½bV\000\024\235\216\004Jan
14
10:31:27\000@éc\000\000\000\000\000\001\000\000\000\000Pö·@\000\000\000Àôc\000Àôc\000è\233\216\004\024PV\000Àôc\000\000Pö·ôïc\000\000\000\000\000\000\000\000\000½b"...
        cidname = '\0' <repeats 79 times>
        privdb_val = 0
        calldurationlimit = 0
        timelimit = 7180000
        play_warning = 60000
        warning_freq = 30000
        warning_sound = 0x84047eb "1"
        end_sound = 0x84e12f3 "1"
        start_sound = 0x0
        dtmfcalled = 0x0
        dtmfcalling = 0x0
        status = "ANSWER\000R\000GS", '\0' <repeats 244 times>
        play_to_caller = 1
        play_to_callee = 0
        sentringing = 0
        moh = 0
        outbound_group = 0x0
        result = 0
        start_time = 1231947087
        privintro = "\000\000\000\000
\027F\b¨\236\216\004K\000\000\000\000\000\000\000\237\235\216d\a\000\000\000\000\000\000\000ôïc\000\236\235\216\004\001\000\000\000ø\233\216\004±¾S\000\034\234\216\004ô\225\216\004ôïc\000d\226\216\004C\004\\\000ôïc\000\b\227\216\004\2205X\000\003\000\000\000\231Jb\000d\226\216\004(\226\216\004d\233\216\004\237»S\000sQV\000q\235\216\004!\214V\000.\000\000\000\236iU\000þ«\025\b\001\000\000\000q\235\216\004\000\000\000\000\033\000\000\000\001\000\000\000H\234\216\004\000\000\000\000\200\234\216\004\001\000\000\000\000\000\000\000m:\026\bsQV\000\030\000\000\000L\001d\000\000ý\000\000\000\000\000\000\000\000\000\000"...
        privcid =
"\000\000\000\000m:\026\b\000\000\000\000\017\235\216\004ôïc\000l:\026\b\001\000\000\000è\232\216\004±¾S\000\f\233\216\004l:\026\b\001\000\000\000\000\000\000\000\2163\025\b\a\000\000\000P\233\216\004ôïc\000¦\234\216\004À\232\216\004\030\233\216\004±¾S\000T\232\216\004\237»S\000ôïc\000\000\000\000\000\000\000\000\000+\000\000\000W:\026\bì\231\216\004\000\000\000\000\000\000\000\000ÿÿÿÿ\000\000\000\000\2163\025\b\002\232\216\004 \233\216\004",
'\0' <repeats 36 times>, "ÿÿÿÿk:\026\bW:\026\b\006\000\000\000\035",
'\0' <repeats 15 times>, "\n\000\000\000R\232\216\004", '\0' <repeats 35
times>
        parse = 0x48e9010 "SIP"
        opermode = 0
        args = {argc = 3, argv = 0x48e9498, peers = 0x48e9010 "SIP",
timeout = 0x48e902e "80", options = 0x48e9031 "L(7180000", url = 0x0}
        opts = {flags = 512}
        opt_args = {0x0, 0x0, 0x0, 0x48e9033 "7180000", 0x0, 0x0, 0x20
<Address 0x20 out of bounds>, 0x0, 0x1d <Address 0x1d out of bounds>}
        datastore = (struct ast_datastore *) 0x83655f0
        ds_caller_features = (struct ast_datastore *) 0x8568aa8
        ds_callee_features = (struct ast_datastore *) 0x85b3800
        caller_features = (struct ast_dial_features *) 0x8461818
        fulldial = 0
        num_dialed = 1
        __PRETTY_FUNCTION__ = "dial_exec_full"
http://bugs.digium.com/view.php?id=10 0x00960ada in dial_exec (chan=0x87f8b58,
data=0x48ebf48) at
app_dial.c:1834
        peerflags = {flags = 0}
http://bugs.digium.com/view.php?id=11 0x080d01ca in pbx_exec (c=0x87f8b58,
app=0xb7d20b60, data=0x48ebf48)
at pbx.c:537
        res = 76463944
        saved_c_appl = 0x0
        saved_c_data = 0x0
http://bugs.digium.com/view.php?id=12 0x080d3f25 in pbx_extension_helper
(c=0x87f8b58, con=0x0,
context=0x87f8d98 "arbinet_value2", exten=0x87f8de8 "012124274450",
priority=1, label=0x0, 
    callerid=0x85674b8 "7186849117", action=E_SPAWN) at pbx.c:1862
        e = (struct ast_exten *) 0xb7dc7730
        app = (struct ast_app *) 0xb7d20b60
        res = 76475280
        q = {incstack = {0x0 <repeats 128 times>}, stacklen = 0, status =
5, swo = 0x0, data = 0x0, foundcontext = 0x87f8d98 "arbinet_value2"}
        passdata =
"SIP/550512124274450 at arbinet_B|80|L(7180000:60000:30000)", '\0' <repeats
8136 times>
        matching_action = 0
        __PRETTY_FUNCTION__ = "pbx_extension_helper"
http://bugs.digium.com/view.php?id=13 0x080d526a in ast_spawn_extension
(c=0x87f8b58, context=0x87f8d98
"arbinet_value2", exten=0x87f8de8 "012124274450", priority=1, 
    callerid=0x85674b8 "7186849117") at pbx.c:2317
No locals.
http://bugs.digium.com/view.php?id=14 0x080d569a in __ast_pbx_run (c=0x87f8b58)
at pbx.c:2406
        dst_exten =
"(­u\bÌ¡V\000(­u\b\000\000\000\000,\b\000\000@\001d\000\200F\200\b(\b\000\000\200\t\002\000ô\177h\000u/\024\bÍ/\024\bXâ\216\004<z\021\b\001\000\000\000(\b",
'\0' <repeats 18 times>,
"\020\000\000\000ÚÞg\000\000\000\000\000\000\000\000\000Pã\216\004UÞg\000\220ë\216\004¡³g\000\210â\216\004!\214V\000\234Äg\000\217\222\021\b\230â\216\004\001\000\000\000\234Äg\000\220ë\216\004u/\024\bÍ/\024\b\210â\216\004\220Èg\000¸â\216\004\221\230\021\bp\001d\000(\b\000\000u/\024\bH\000\000\000d\001d\000\220ë\216\004u/\024\bÍ/\024\b¸â\216\004\220Èg\000"...
        pos = 0
        digit = 0
        found = 1
        res = 0
        autoloopflag = 0
        error = 0
        __PRETTY_FUNCTION__ = "__ast_pbx_run"
http://bugs.digium.com/view.php?id=15 0x080d6495 in pbx_thread (data=0x87f8b58)
at pbx.c:2621
        c = (struct ast_channel *) 0x87f8b58
http://bugs.digium.com/view.php?id=16 0x08119e13 in dummy_start (data=0x83f0310)
at utils.c:912
        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {6848500,
0, 76475280, 76473288, -1091513198, -1301304621}, __mask_was_saved = 0}}, 
  __pad = {0x48ee480, 0x0, 0x8461ac8, 0x87e88b0}}
        __cancel_routine = (void (*)(void *)) 0x806ab43
<ast_unregister_thread>
        __cancel_arg = (void *) 0x48eeb90
        not_first_call = 0
        ret = (void *) 0x678b8c
        a = {start_routine = 0x80d647e <pbx_thread>, data = 0x87f8b58, 
  name = 0x8712378 "pbx_thread", ' ' <repeats 11 times>, "started at [
2645] pbx.c ast_pbx_start()"}
        lock_info = (struct thr_lock_info *) 0x875ad28
        mutex_attr = {__size = "\001\000\000", __align = 1}
http://bugs.digium.com/view.php?id=17 0x0067946b in start_thread () from
/lib/libpthread.so.0
No symbol table info available.
http://bugs.digium.com/view.php?id=18 0x005d0dbe in clone () from /lib/libc.so.6
No symbol table info available.
(gdb) 

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014335 Crash on pri_schedule_event - t200_expire
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-04 14:15 file           Relationship added       related to 0014335  
======================================================================




More information about the asterisk-bugs mailing list