Review Board 1.7.16


core: Introduce chaos into memory allocations

Review Request #4463 - Created March 6, 2015 and submitted

Scott Griepentrog
13, trunk
Reviewers
asterisk-dev
Asterisk
Introduce chaotic (random) failures into certain critical operations to force improvements to error handling.

This patch introduces the DEBUG_CHAOS random failure mechanism and adds it to memory allocation wrappers in utils.h.  To be activated, DEBUG_CHAOS must be enabled in menuselect.

The failure rate (1 in X) is controlled by changing the define DEBUG_CHAOS_CHANCES_1IN in utils.h.
I'm unable to get Asterisk to actually start with 1 in 100,000 failure rate.
Total:
6
Open:
0
Resolved:
4
Dropped:
2
Status:
From:
Review request changed
Updated (March 17, 2015, 5:25 p.m.)
  • changed from pending to submitted
Committed in revision 433084

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.