[asterisk-bugs] [Asterisk 0011573]: segfault in devicestate.c

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Dec 17 09:21:47 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11573 
====================================================================== 
Reported By:                irroot
Assigned To:                crich
====================================================================== 
Project:                    Asterisk
Issue ID:                   11573
Category:                   Core/Channels
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.15  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-16-2007 11:48 CST
Last Modified:              12-17-2007 09:21 CST
====================================================================== 
Summary:                    segfault in devicestate.c
Description: 
not sure what conditions caused it but it did happen and here is a quick
fix to stop it happening again
====================================================================== 

---------------------------------------------------------------------- 
 irroot - 12-17-07 09:21  
---------------------------------------------------------------------- 
here we go again ... some more 

(gdb) frame 3
http://bugs.digium.com/view.php?id=3  0xb3a04941 in release_chan (bc=0xb4b322e4)
at chan_misdn.c:3636
3636    in chan_misdn.c
(gdb) print *ast
$4 = {tech = 0xb0969958, tech_pvt = 0x0, __begin_field = 0xb0969a78, name
= 0x0, language = 0x0, musicclass = 0xb0969991 "default",
  accountcode = 0xb0969999 "0119746258", call_forward = 0x8162f3c "",
uniqueid = 0xb0969970 "1197443835.1700", __end_field = 0xb0969a90,
__field_mgr = {
    pool = 0xb0969960, size = 128, space = 64, used = 64}, fds = {18, -1,
-1, -1, -1, -1, 17, -1}, music_state = 0x0, generatordata = 0x0, generator
= 0x0,
  _bridge = 0x0, masq = 0x0, masqr = 0x0, cdrflags = 0, _softhangup = 17,
whentohangup = 0, blocker = 2988231568, lock = {mutex = {__data = {__lock =
0,
        __count = 0, __owner = 0, __kind = -1, __nusers = 0, {__spins = 0,
__list = {__next = 0x0}}},
      __size = '\0' <repeats 12 times>,
"ÿÿÿÿ\000\000\000\000\000\000\000", __align = 0}, track = 1, file =
{0x81464f3 "channel.c", 0x0, 0x0, 0x0, 0x0, 0x0,
      0x0, 0x0, 0x0, 0x0}, lineno = {1241, 0, 0, 0, 0, 0, 0, 0, 0, 0},
reentrancy = 0, func = {0x81479b8 "ast_channel_free", 0x0, 0x0, 0x0, 0x0,
0x0, 0x0,
      0x0, 0x0, 0x0}, thread = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
reentr_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __kind =
-1, __nusers = 0, {
          __spins = 0, __list = {__next = 0x0}}}, __size = '\0' <repeats
12 times>, "ÿÿÿÿ\000\000\000\000\000\000\000", __align = 0}},
  blockproc = 0x81480e2 "ast_waitfor_nandfds", appl = 0x0, data = 0x0,
fdno = 0, sched = 0x0, streamid = -1, stream = 0x0, vstreamid = 0, vstream
= 0x0,
  oldwriteformat = 0, timingfd = 17, timingfunc = 0, timingdata = 0x0,
_state = AST_STATE_DOWN, rings = 1, cid = {cid_dnid = 0x0,
    cid_num = 0x8293f00 "\220\201%\bpº?\b\020", cid_name = 0x8258198
"XÑ@\bø>)\b\020", cid_ani = 0xb0969f20 "@Ù´´746258", cid_rdnis = 0x0,
cid_pres = 0,
    cid_ani2 = 0, cid_ton = 0, cid_tns = 0}, dtmfq = '\0' <repeats 79
times>, dtmff = {frametype = AST_FRAME_DTMF_END, subclass = 102, 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 = 111, seqno = 0}, context =
"fax\000attendant\000p", '\0' <repeats 64 times>,
  exten = "8600\000n", '\0' <repeats 73 times>, priority = 28,
macrocontext = "\000serout", '\0' <repeats 72 times>,
  macroexten = "\000\00000", '\0' <repeats 75 times>, macropriority = 0,
dialcontext = '\0' <repeats 79 times>, pbx = 0x0, amaflags = 3, cdr = 0x0,
  adsicpe = AST_ADSI_UNKNOWN, zone = 0x0, monitor = 0x0, insmpl = 0,
outsmpl = 0, fin = 4294, fout = 630, hangupcause = 16, varshead = {first =
0x0,
    last = 0x0}, callgroup = 0, pickupgroup = 0, flags = 0,
transfercapability = 16, readq = {first = 0x0, last = 0x0}, alertpipe =
{-1, -1},
  nativeformats = 8, readformat = 8, writeformat = 8, writetrans = 0x0,
readtrans = 0x0, rawreadformat = 8, rawwriteformat = 8, spies = 0x0,
whisper = 0x0,
  chan_list = {next = 0x0}, jb = {conf = {flags = 0, max_size = 0,
resync_threshold = 0, impl = '\0' <repeats 11 times>}, impl = 0x0, jbobj =
0x0,
    timebase = {tv_sec = 0, tv_usec = 0}, next = 0, last_format = 0,
logfile = 0x0, flags = 0}, emulate_dtmf_digit = 0 '\0',
emulate_dtmf_duration = 0,
  dtmf_tv = {tv_sec = 1197443837, tv_usec = 295645}, datastores = {first =
0x0, last = 0x4b0}} 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-17-07 09:21  irroot         Note Added: 0075560                          
======================================================================




More information about the asterisk-bugs mailing list