Changes between Initial Version and Version 2 of Ticket #1258


Ignore:
Timestamp:
May 18, 2011 9:42:50 AM (10 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1258

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #1258 – Description

    initial v2  
    11There is bug in jb prefetching mechanism, the prefetch condition may cause unexpected JB state switches that will disturb burst level calculation, i.e: when JB empty condition occurs in initializing state, the state will be immediately switched to prefetching, and after the prefetch processing done, the state will be directly set to processing (instead of initializing). The expected behaviour is that JB state switch from initializing to processing is only done by  jb_update(). 
     2 
     3This causes the following division by zero exception: 
     4 
     5{{{ 
     6Program received signal SIGFPE, Arithmetic exception. 
     7[Switching to Thread 0xb73a5b90 (LWP 7148)] 
     80x08184372 in pjmedia_jbuf_put_frame2 (jb=0x8323cf8, frame=0x826f86c, frame_size=80, bit_info=0, frame_seq=21, discarded=0xb73a502c) 
     9   at ../src/pjmedia/jbuf.c:763 
     10763                 burst_factor = cur_size / burst_level; 
     11(gdb) 
     12}}}