[Home]

Summary:ASTERISK-03431: [patch] Segfault in IAX2 with music on hold
Reporter:thansen (thansen)Labels:
Date Opened:2005-02-04 09:58:46.000-0600Date Closed:2005-02-06 22:29:20.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk-cxnet-zerosamplessegfault-iax-patch.txt
Description:Modulate by zero segfault.

See bugASTERISK-3392


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

(gdb) bt
#0  0x40397a95 in calc_timestamp (p=0x427fb518, ts=0, f=0xbe5fb20c) at chan_iax2.c:2897
#1  0x4039622e in iax2_send (pvt=0x427fb518, f=0xbe5fb20c, ts=8, seqno=-1, now=0, transfer=0, final=8) at chan_iax2.c:3093
#2  0x403a8e3d in iax2_write (c=0x8, f=0xbe5fb20c) at chan_iax2.c:3553
#3  0x0805c4e3 in ast_write (chan=0x403b8a10, fr=0xbe5fb20c) at channel.c:1634
#4  0x080607c3 in ast_activate_generator (chan=0x403b8a10, gen=0x40391a50, params=0x8) at channel.c:1554
ASTERISK-1  0x4038e3c2 in ast_moh_start (chan=0x0, class=0x8 <Address 0x8 out of bounds>) at res_musiconhold.c:598
ASTERISK-2  0x405f6342 in queue_exec (chan=0x427fbb98, data=0xbe5fd76c) at app_queue.c:1625
ASTERISK-3  0x08073527 in pbx_exec (c=0x427fbb98, app=0x8606f58, data=0xbe5fd76c, newstack=1) at pbx.c:469
ASTERISK-4  0x0807b30c in pbx_extension_helper (c=0x427fbb98, context=0x427fbcf0 "cxnet-development", exten=0x427fbb98 "IAX2/gw-1@gw-1/12", priority=1, callerid=0x841a838 "\"Eksternt\" <030252302>", action=0)
   at pbx.c:1277
ASTERISK-5  0x0807558c in ast_pbx_run (c=0x427fbb98) at pbx.c:1758
ASTERISK-6 0x0807b98f in pbx_thread (data=0x8) at pbx.c:1981
ASTERISK-7 0x40023ca3 in pthread_start_thread () from /lib/libpthread.so.0
(gdb) frame
#0  0x40397a95 in calc_timestamp (p=0x427fb518, ts=0, f=0xbe5fb20c) at chan_iax2.c:2897
2897                                            int diff = ms % (f->samples / 8);
(gdb) print ms
$3 = 8
(gdb) print f->samples
$4 = 0
(gdb) quit
Comments:By: Brian West (bkw918) 2005-02-04 10:09:45.000-0600

http://bugs.digium.com/bug_view_page.php?bug_id=0003467

By: Kevin P. Fleming (kpfleming) 2005-02-04 10:12:44.000-0600

Please post your patch as an update to ASTERISK-3433467. I've reopened it so that you can post and disclaim your work. Thanks!

By: Russell Bryant (russell) 2005-02-06 22:29:20.000-0600

fixed in 1.0