microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.52k stars 284 forks source link

Fuzz lean crashes abruptly #779

Open IrfanSyed-PSC opened 1 year ago

IrfanSyed-PSC commented 1 year ago

Description

Fuzz lean crashes abruptly while performing fuzzing

Steps to reproduce

restler/Restler fuzz-lean --host myhost.com --grammar_file $PWD/Compile/grammar.py --dictionary_file $PWD/Compile/dict.json --settings $PWD/auth_settings.json Starting task FuzzLean... Using python: 'python3' (Python 3.11.3)

ERROR: Results analyzer for logs in /Users/isyed1/authenticate_restler/FuzzLean failed.

Request coverage (successful / total): 3 / 5 Attempted requests: 5 / 5 No bugs were found. See 'coverage_failures_to_investigate.txt' to investigate API coverage. Task FuzzLean succeeded. Collecting logs...

Expected results

Fuzz-lean runs successfully

Actual results

Crashes the below error in ResultsAnalyzerStdErr.txt

str = None } at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1639.Invoke(String message) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\printf.fs:line 1639 at Microsoft.FSharp.Collections.Internal.IEnumerator.choose@171.System-Collections-IEnumerator-MoveNext() in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 179 at Microsoft.FSharp.Collections.Internal.IEnumerator.map@75.DoMoveNext(b& curr) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 77 at Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext() in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 64 at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeInner@266[T,TResult](ConcatEnumerator2 x, Unit unitVar0) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seqcore.fs:line 268 at Microsoft.FSharp.Collections.Internal.IEnumerator.map@75.DoMoveNext(b& curr) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 77 at Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext() in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 64 at Microsoft.FSharp.Collections.Internal.IEnumerator.map@75.DoMoveNext(b& curr) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 77 at Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext() in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 64 at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeInner@266[T,TResult](ConcatEnumerator2 x, Unit unitVar0) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seqcore.fs:line 268 at Microsoft.FSharp.Collections.Internal.IEnumerator.next@193[T](FSharpFunc2 f, IEnumerator1 e, FSharpRef1 started, Unit unitVar0) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 194 at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@188.System-Collections-IEnumerator-MoveNext() in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 196 at Microsoft.FSharp.Collections.SeqModule.oneStepTo@987[T](IEnumerable1 source, List1 prefix, FSharpRef1 enumeratorR, Int32 i) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 996 at Microsoft.FSharp.Collections.SeqModule.action@4164-1[T](IEnumerable1 source, List1 prefix, FSharpRef1 enumeratorR, Int32 i, Unit unitVar0) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 1011 at Microsoft.FSharp.Collections.SeqModule.result@1003.Invoke(Int32 i) at Microsoft.FSharp.Collections.Internal.IEnumerator.unfold@205.DoMoveNext(b& curr) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 207 at Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext() in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 64 at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc2 action, IEnumerable1 source) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 496 at Microsoft.FSharp.Collections.SeqModule.groupByValueType[T,TKey](FSharpFunc2 keyf, IEnumerable1 seq) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 1068 at Microsoft.FSharp.Collections.SeqModule.GroupBy@1076.Invoke(Unit unitVar0) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 1076 at Microsoft.FSharp.Collections.SeqModule.mkDelayedSeq@471.Invoke(Unit unitVar0) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 471 at Restler.ResultsAnalyzer.Analyze.Buckets.getBuckets@98.GenerateNext(IEnumerable1& next) in /Users/isyed1/fuzz/restler-fuzzer/src/ResultsAnalyzer/Analyze/Buckets.fs:line 98 at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase1.MoveNextImpl() in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seqcore.fs:line 371 at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase1.System-Collections-IEnumerator-MoveNext() in F:\workspace_work\1\s\src\fsharp\FSharp.Core\seqcore.fs:line 403 at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source) at Restler.ResultsAnalyzer.Analyze.Main.main(AnalyzeArgs args) in /Users/isyed1/fuzz/restler-fuzzer/src/ResultsAnalyzer/Analyze/Main.fs:line 86 at Restler.ResultsAnalyzer.Program.main(String[] argv) in /Users/isyed1/fuzz/restler-fuzzer/src/ResultsAnalyzer/Program.fs:line 223

Environment details

MacOS