[Home]

Summary:ASTERISK-04297: Missing argument in pri_error
Reporter:Ezio Vernacotola (ezio)Labels:
Date Opened:2005-05-29 06:29:19Date Closed:2011-06-07 14:00:21
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) q931patch.txt
Description:In q931.c, function q931_hangup(), a missing argument calling pri_error() causes asterisk to crash

****** ADDITIONAL INFORMATION ******

backtrace

#0  0xb7ebb97b in strlen () from /lib/i686/libc.so.6
No symbol table info available.
#1  0xb7e8fc02 in vfprintf () from /lib/i686/libc.so.6
No symbol table info available.
#2  0xb7ead526 in vsnprintf () from /lib/i686/libc.so.6
No symbol table info available.
#3  0xb7bee311 in pri_error (pri=0x822f860,
   fmt=0xb7c025ac "We're not yet handling hanging up when our state is %d, contact support@digium.com, ourstate %s, peerstate %s\n") at pri.c:689
       tmp = "We're not yet handling hanging up when our state is -1212156115, contact support@digium.com, ourstate Unknown, peerstate ", '\0' <repeats 23 times>, "è³ö·\000\000\000\000\000\000\000\000\f", '\0' <repeats 27 times>, "õÿÿÿ", '\0' <repeats 12 times>, "TDë·\000\000\000\000\001\000\000\000\000\000\000\000>\207ú·\001\t\000\000\000\000\000\000\000\000\000\000"...
       ap = 0xb7b860b8 "-÷¿·-÷¿·\003"
#4  0xb7bf75b5 in q931_hangup (pri=0x822f860, c=0x81c2040, cause=16) at q931.c:3080
       disconnect = 1
       release_compl = 0
ASTERISK-1  0xb7bedd32 in pri_hangup (pri=0x822f860, call=0x81c2040, cause=16) at pri.c:518
No locals.
ASTERISK-2  0xb7c39d4f in pri_dchannel (vpri=0xb7c4f1d8) at chan_zap.c:7864
       law = 2
       e = (pri_event *) 0x8230164
       fds = {{fd = 107, events = 3, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0,
   revents = 0}, {fd = -1212649752, events = 13188, revents = -18457}}
       res = 3
       chanpos = 29
       x = 0
       haveidles = 0
       activeidles = 0
       nextidle = 0
       c = (struct ast_channel *) 0x3
       tv = {tv_sec = 0, tv_usec = 999996}
       lowest = {tv_sec = 0, tv_usec = 999996}
       next = (struct timeval *) 0x3
       lastidle = {tv_sec = 1117298941, tv_usec = 7603}
       doidling = 0
       idlen = '\0' <repeats 79 times>
       idle = (struct ast_channel *) 0x3
       p = 0
       t = 1117318268
       i = 0
       which = 3
       numdchans = 1
       cause = 0
       crv = (struct zt_pvt *) 0x0
       threadid = 3948560
       attr = {__detachstate = 1, __schedpolicy = 0, __schedparam = {__sched_priority = 0}, __inheritsched = 1,
 __scope = 0, __guardsize = 4096, __stackaddr_set = 0, __stackaddr = 0x0, __stacksize = 262144}
       ani2str = "0\000\000\000\000"
       plancallingnum = "0931856127", '\0' <repeats 245 times>
       calledtonstr = "33\000\000\000\000\000\000\000"
       __PRETTY_FUNCTION__ = "pri_dchannel"
ASTERISK-3  0xb7fa3ce1 in pthread_start_thread () from /lib/i686/libpthread.so.0
No symbol table info available.
ASTERISK-4  0xb7f1861a in clone () from /lib/i686/libc.so.6
Comments:By: Russell Bryant (russell) 2005-05-29 11:08:15

fixed in CVS HEAD and v1-0

Now, the real question is, what caused you to find this error?  :)