Guest User

Untitled

a guest
Nov 13th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. Testing an Application
  2. ======================
  3. ## No Arguments
  4. ```
  5. crashsim test "<command>"
  6. ```
  7.  
  8. This command would record command and test it with default set of checkers and mutators that would be useful on most applications. The _UnusualFileType_ mutator, _CloseFails_ and _ReverseTime_ mutator's would probably be included in this set.
  9.  
  10. ## Selecting an Operation
  11. ```
  12. crashsim test --operation=<operation> "<command">
  13. ```
  14. This command would record and test the command with a set of checkers and mutators that make sense for an application that performs the specified operation. Maybe there's a _FileMove_ operation that uses the _UnusualFileType_ mutator and the _RenameFailsWithEXDEV_ mutator.
  15.  
  16. ## Selecting a specific mutator
  17. ```
  18. crashsim test --mutator=<mutator> "<command">
  19. ```
  20.  
  21. example: ```crashsim test "<command>:``
  22.  
  23.  
  24. ```
  25. Possible Bug (syscall 120): Application did not divert when S_IFCHR was injected into fstat() st_mode field call
  26. Possible Bug (syscall 124): Application did not divert when S_IFCHR was injected into lstat() st_mode field call
  27. Possible Bug (syscall 150: Application diverted when failing return value -1 with errno EIO was injected into close() call
  28. Possible Bug (syscall 175): Application did not divert when time() call's result was decreased by 1000 seconds
  29. ...
  30. ```
  31.  
  32. Analyzing a Trace with a Checker
  33. ===============================
  34.  
  35. ```
  36. crashsim analyze --operation=<operation> --trace=<trace>
  37.  
  38. ```
  39. e.g. ```crashsim analyze --operation=FileMove --trace=mytrace.strace```
  40.  
  41.  
  42. output
  43. ```
  44. Analyzing FileMove operation started with rename() call on line 150
  45. Possible Bug: Application truncates destination file before successfully opening source file
  46. Bug: Application does not check file properties with fstat() after open()'ing it
  47. Bug: Application failed to copy extended file attributes from source file to destination file
  48. Bug: Application failed to copy permission from source file to destination file
  49. Bug: Application does not close source file before exiting
  50. ```
Add Comment
Please, Sign In to add comment