Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giuseppe/memtroll
memtroll uses LD_PRELOAD to load a modified version of malloc' before launch a program. It runs the program different times forcing malloc to fail after a specified number of calls.
https://github.com/giuseppe/memtroll
Last synced: 24 days ago
JSON representation
memtroll uses LD_PRELOAD to load a modified version of malloc' before launch a program. It runs the program different times forcing malloc to fail after a specified number of calls.
- Host: GitHub
- URL: https://github.com/giuseppe/memtroll
- Owner: giuseppe
- License: other
- Created: 2013-01-29T10:41:38.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-20T16:00:23.000Z (about 11 years ago)
- Last Synced: 2023-03-31T04:04:09.107Z (over 1 year ago)
- Language: C
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
memtroll -- malloc failures generator(TM)
memtroll uses LD_PRELOAD to load a modified version of `malloc' before
launch a program. It runs the program different times forcing malloc
to fail after a specified number of calls.The following command for example will iteratively check the first 100
malloc calls, executing "ls -l" 100 times and forcing malloc to fail
at different iterations:./memtroll -f0 -t100 -- ls -l
It is also possible to specify a different log file where write
memtroll errors:./memtroll -l log.txt -f0 -t100 -- ls -l