Skip to content

[StackOverFlowException] Limit the retry routines using numbers or boolean flags #32

@pavly-gerges

Description

@pavly-gerges

It's noticed that whenever running jSnapLoader's NativeBinaryLoader with an enabled default retry criteria, two possible events could take place:

  • A Finite-machine that terminates with extraction and loading of the native binary, with the predicate that the Jar and library should exist and are not corrupted.
  • A Finite-machine that stalls with recursive calls to the loading machine leading to StackOverFlow exceptions and potential memory leaks could take place at this stage.

The proposed fix:

  • Control the number of the recursive machines via an atomic integer.
  • Provide the appropriate conditional predicates to test the filesystem archive before starting the extraction and loading automata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreCore API related stuffdefectA defect in the system (not a bug!).good first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions