Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#437 closed defect (fixed)

Stack overflow in ICE on Symbian phone target

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.9.0
Component: pjnath Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

Reduce the stack usage since it caused stack overflow on Symbian phone with default stack size (8KB).

Also reduce the pool usage (avoid to use 4000 bytes blocks) and make the pool size configurable.

Change History (3)

comment:1 Changed 17 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

In r1654:

  • create a temporary text buffer on pj_ice_sess to avoid using stack buffer for temporary stuffs (such as printing to log, acquiring error message), to reduce stack usage
  • don't start periodic check immediately on ICE session creation but schedule an immediate timer for it, to reduce stack usage again.
  • equip functions with PJ_CHECK_STACK to track stack usage.
  • make pool sizes configurable

comment:2 Changed 17 years ago by bennylp

Related to this:

  • in r1655: optimize the stack usage in pjsua-lib

comment:3 Changed 17 years ago by bennylp

Related to this ticket:

  • in r1656: reduce the stack usage of the ICE media transport
Note: See TracTickets for help on using tickets.