| Summary: | wishlist intentionally fail malloc operations | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Kimmo Mustonen <kimmo.mustonen> |
| Component: | general | Assignee: | Julian Seward <jseward> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Failgrind a malloc/syscall fault injector tool
Patch for adding failgrind |
||
|
Description
Kimmo Mustonen
2008-06-05 13:45:28 UTC
Created attachment 74044 [details]
Failgrind a malloc/syscall fault injector tool
Created attachment 79727 [details]
Patch for adding failgrind
This first try is based on the none tool and I have implemented only to fail malloc, open, read, write, fopen, socket, send recv and bind functions.
Failgrind support theses options:
--failfunc for selecting which functions may fail. Example: --failfunc=malloc,open
--failclass for selecting a whole class of functions which may fail. Example --failclass=1 for failing open,read,write
--percent for choosing the percentage of function that will fail.
Example:
valgrind --tool=exp-failgrind --percent=90 --failfunc=all ls
This command will launch ls and each function call have 90% chance to fail.
|