Opened 15 years ago

Last modified 15 years ago

#683 closed defect

Crash/segfault on pjmedia_wsola_create() on ARM9 platform with GCC optimizations — at Version 1

Reported by: bennylp Owned by: nanang
Priority: normal Milestone: Known-Issues
Component: pjmedia Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp)

gcc-4.2.1, arm926ej-s, Linux-2.6.23

Crash on pjmedia_wsola_create() function, specificly in the fixed-point version of create_win() function. The symptom is the "i" variable value in the "for(i=0; i<count; ++i)" loop goes beyond the range and possibly writes data to some random memory location, causing the segmentation fault.

The segfault occurs when the library is compiled with -O2/-O3 (and possibly higher). It does not happen when the optimization is turned off. So we suspect that this is due to some gcc optimization bug.

The workaround that we used now is to force WSOLA to use linear window when floating point is disabled. If you wish to disable this workaround, declare this in your config_site.h:

 #define PJMEDIA_WSOLA_LINEAR_WIN  0

Change History (1)

comment:1 Changed 15 years ago by bennylp

  • Component changed from applications to pjmedia
  • Description modified (diff)
  • Owner changed from bennylp to nanang
Note: See TracTickets for help on using tickets.